[Contents] [Prev] [Next] [Index] [Report an Error]

Persistent and Transient Change Tags

Table 12 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 XSLT Change Tag Elements.)

Table 12: Tags and Attributes for Creating Configuration Changes

Data Item, XML Element, or Attribute

Description

Container Tags

<change>

Request that the JUNOScript 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 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.

<change url="url" [action="action"]>

Set the url attribute to the pathname of a file that resides on the routing platform 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 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.

<transient-change>

Request that the JUNOScript server load configuration data into the configuration.

Content Tags

<jcs:emit-change>

This is a template in the file junos.xsl. This template converts the contents of the <xsl:with-param> element into a <change> request.

<xsl:with-param name="content">

You use the content parameter with the <jcs:emit-change> template. 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.


[Contents] [Prev] [Next] [Index] [Report an Error]