Persistent and Transient Change Tags
Table 10 describes the data that you can include in a commit script
<change>tag. To see how data values are supplied within a script, see Examples: Generating a Persistent or Transient Change and the sample scripts in Commit Script Examples. (For detailed information about element hierarchy, see Summary of Change Tag Elements.)
Request that the JUNOScript server load configuration data into the candidate configuration.
Set the
actionattribute tomerge,override,replace, orupdate. By default, the action ismergefor persistent changes andupdatefor transient changes. The data enclosed in the<change>tag must be JUNOS XML tag elements only.Set the
rollbackattribute to the numerical index of a previous configuration. The routing platform stores a copy of the most recently committed configuration and up to 49 previous configurations. The specified previous configuration completely replaces the current configuration.Set the
urlattribute to the pathname of a file that resides on the routing platform and contains the configuration data to load. The action can bemerge,override,replace, orupdate. By default, the action ismergefor persistent changes andupdatefor transient changes. The data must be JUNOS XML tag elements only.Enclose JUNOS XML and JUNOScript 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 Boilerplate for Commit Scripts.
Request that the JUNOScript server load configuration data into the configuration.
This is a template in the file
junos.xsl. This template converts the contents of the<xsl:with-param>element into a<change>request.You use the
contentparameter with the<jcs:emit-change>template. Allows you to include the content of the change, relative todot.Convert the contents of the
contentparameter into a<transient-change>request.You use the
tagparameter with the<jcs:emit-change>template.By default, the
<jcs:emit-change>template converts the contents of thecontentparameter into a<change>(persistent change) request.