Tag Elements to Use When Generating Persistent and Transient Changes
Table 10 describes the data that you can include in the <change> tag element in a commit script. To see how data values are supplied within a script, see Examples: Generating Persistent and Transient Changes and Commit Script Examples. (For detailed information about element hierarchy, see Summary of Junos XML and XSLT Tag Elements Used in Commit Scripts.)
Table 10: Tags and Attributes for Creating Configuration Changes
Data Item, XML Element, or Attribute | Description |
|---|---|
| Container Tags | |
<change> | Request that the Junos XML protocol server load configuration data into the candidate configuration. |
<change [action="action"]> | Set the action attribute to merge, override, replace, or update. By default, the action is merge for persistent changes and update for transient changes. The data enclosed in the <change> tag must be Junos XML tag elements only. |
<change rollback="index"/> | Set the rollback attribute to the numerical index of a previous configuration. The switch, router, or security device stores a copy of the most recently committed configuration and up to 49 previous configurations. The specified previous configuration completely replaces the current configuration. |
<change url="url" [action="action"]> | Set the url attribute to the pathname of a file that resides on the device and contains the configuration data to load. The action can be merge, override, replace, or update. By default, the action is merge for persistent changes and update for transient changes. The data must be Junos XML tag elements only. |
<configuration> | Enclose Junos XML and Junos XML protocol tag elements in a <configuration> tag element. You do not explicitly include this tag element in your scripts, because it is implicitly inserted by the script boilerplate. For more information, see Required Boilerplate for Commit Scripts. |
<transient-change> | Request that the Junos XML protocol server load configuration data into the configuration. |
| Content Tags | |
<jcs:emit-change> | This is a template in the file |
<xsl:with-param name="content"> | You use the content parameter with the <jcs:emit-change> template. It allows you to include the content of the change, relative to dot. |
<xsl:with-param name="tag" select="'transient-change'"/> | Convert the contents of the content parameter into a <transient-change> request. You use the tag parameter with the <jcs:emit-change> template. By default, the <jcs:emit-change> template converts the contents of the content parameter into a <change> (persistent change) request. |
Hide Navigation Pane
Show Navigation Pane
Download
SHA1