Replacing Configuration Elements Only If They Have Changed - Juniper JUNOS OS 10.3 - XML MANAGEMENT PROTOCOL GUIDE 6-30-2010 Manual

Junos xml management protocol guide
Hide thumbs Also See for JUNOS OS 10.3 - XML MANAGEMENT PROTOCOL GUIDE 6-30-2010:
Table of Contents

Advertisement

Replacing Configuration Elements Only If They Have Changed

Copyright © 2010, Juniper Networks, Inc.
To use Junos XML tag elements to represent the element, the application includes each
of the replacement's identifier tag elements (if it has them) and all child tag elements
being defined for the element. In the following, the identifier tag element is called
The application does not need to include any attributes in the opening container tag for
the new element:
<configuration>
<!-- opening tag for each parent of the element -->
<container-tag>
<name>identifier</name>
<!-- tag elements for other children, if any -->
</container-tag>
<!-- closing tag for each parent of the element -->
</configuration>
To use formatted ASCII text to represent the element, the application includes each of
the replacement's identifiers (if it has them) and all child statements (with values if
appropriate) that it is defining for the element. It does not need to include an operator
before the new element:
<configuration-text>
/* statements for parent levels of the element */
element identifier {
/* child statements if any */
}
/* closing braces for parent levels for the element */
</configuration-text>
To replace configuration elements (hierarchy levels and configuration objects) only if
they differ in the loaded configuration and the candidate configuration or private copy,
the application emits the
<load-configuration>
attribute in an
tag element:
<rpc>
<rpc>
<!-- For a file -->
<load-configuration action="update" url="file" [format="text"]/>
<!-- For a data stream -->
<load-configuration action="update" [format="text"]>
<!-- configuration data -->
</load-configuration>
</rpc>
For more information about the
Format of New Configuration Data" on page 105.
This operation is equivalent to the Junos OS CLI
command. The Junos configuration management software compares the two
configurations. Each configuration element that is different in the loaded configuration
replaces its corresponding element in the existing configuration. Elements that are the
same in both configurations, or exist only in the existing configuration, remain unchanged.
When the configuration is later committed, only system processes that are affected by
the changed configuration elements parse the new configuration.
Chapter 5: Changing Configuration Information
tag element with the
and
attributes, see "Specifying the Source and
url
format
load update
<name>
action="update"
configuration mode
115
.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos os

Table of Contents