ON THIS PAGE
jcs:load-configuration Template
SLAX Syntax
call jcs:load-configuration( $action="(merge | override | replace)", $commit-options=node-set, $configuration=configuration-data, $connection=connection-handle, $rescue="rescue", $rollback=number);
XSLT Syntax
<xsl:call-template name="jcs:load-configuration"> <xsl:with-param name="action" select="(merge | override | replace)"/> <xsl:with-param name="commit-options" select="node-set"/> <xsl:with-param name="configuration" select="configuration-data"/> <xsl:with-param name="connection" select="connection-handle"/> <xsl:with-param name="rescue" select=""rescue""/> <xsl:with-param name="rollback" select="number"/> </xsl:call-template>
Description
Make structured changes to the Junos OS configuration using an op script or event script. When called, the template locks the configuration database, loads the configuration changes, commits the configuration, and then unlocks the configuration database.
The jcs:load-configuration
template
makes changes to the configuration in configure exclusive
mode. In this mode, Junos OS locks the candidate global configuration for as long as the script accesses the shared database
and makes changes to the configuration without interference from other
users.
Parameters
action |
Specifies how to load the configuration changes with respect to the candidate configuration. The following options are supported:
|
commit-options |
Node set defining options that customize the commit operation. The default value is null. Supported commit options are:
|
configuration |
XML configuration changes. The configuration changes
are incorporated into the candidate configuration as specified by
the |
connection |
Connection handle generated by a call to the |
rescue |
Load and commit the rescue configuration, if one exists.
The only acceptable value for this parameter is |
rollback |
Revert to a previously committed configuration. Specify
the rollback number of the configuration. The |