Replacing Configuration Elements - 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

Copyright © 2010, Juniper Networks, Inc.
To replace individual configuration elements (hierarchy levels or configuration objects),
a client application emits the
attribute in an
tag element:
<rpc>
<rpc>
<!-- For a file -->
<load-configuration action="replace" url="file" [format="text"]/>
<!-- For a data stream -->
<load-configuration action="replace" [format="text"]>
<!-- configuration data -->
</load-configuration>
</rpc>
For more information about the
Data in a File" on page 105.
To use Junos XML tag elements to represent the replacement, the application includes
the basic tag elements described in "Creating, Modifying, or Deleting Configuration
Elements" on page 109. Within the container tag, it includes the same child tag elements
as for a new element: each of the replacement's identifier tag elements (if it has them)
and all child tag elements being defined for the replacement element. In the following,
the identifier tag element is called
"replace"
attribute in the opening container tag:
<configuration>
<!-- opening tag for each parent of the element -->
<container-tag replace="replace">
<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 the
complete statement path described in "Creating, Modifying, or Deleting Configuration
Elements" on page 109. As for a new element, it 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 replacement. It places the
container statement.
<configuration-text>
/* statements for parent levels of the element */
replace:
element identifier {
/* child statements if any */
}
/* closing braces for parent levels for the element */
</configuration-text>
The following example shows how to grant new permissions for the object named
at the
[edit system login class]
XML-tagged format (the default).
Chapter 5: Changing Configuration Information
tag element with the
<load-configuration>
url
and
format
attributes, see "Providing Configuration
. The application also includes the
<name>
replace:
statement above the element's
hierarchy level. The information is provided in Junos
action="replace"
replace=
operator
113

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos os

Table of Contents