Junos 10.3 Junos XML Management Protocol Guide
Replacing an Element and Setting Its Activation State
128
To replace (completely reconfigure) an element and simultaneously deactivate or activate
it, a client application includes the tag elements or statements that represent all of the
element's characteristics (for complete information about the syntax for defining
elements, see "Replacing Configuration Elements" on page 113). The client application
uses the attributes and operators discussed in the following sections to indicate which
element is being replaced and activated or deactivated:
Using Junos XML Tag Elements for the Replacement Element on page 128
Using Formatted ASCII Text for the Replacement Element on page 128
Using Junos XML Tag Elements for the Replacement Element
If using Junos XML tag elements to represent the element, a client application includes
the
attribute in the
action="replace"
<rpc>
<!-- For a file -->
<load-configuration action="replace" url="file"/>
<!-- For a data stream -->
<load-configuration action="replace">
<!-- Junos XML tag elements -->
</load-configuration>
</rpc>
In the opening tag for the replacement element, the application includes two
attributes—the
replace="replace"
active="active"
attribute. It includes tag elements for all children being defined for the
element. In the following, the identifier tag element is called
<configuration>
<!-- opening tag for each parent of the element -->
<element replace="replace" (inactive="inactive" | active="active")>
<name>identifier</name> <!-- if the element has an identifier -->
<!-- tag elements for each child of the element -->
</element>
<!-- closing tag for each parent of the element -->
</configuration>
Using Formatted ASCII Text for the Replacement Element
If using formatted ASCII text to represent the element, a client application includes
the
and
action="replace"
format="text"
opening
<load-configuration>
<rpc>
<!-- For a file -->
<load-configuration action="replace" format="text" url="file"/>
<!-- For a data stream -->
<load-configuration action="replace" format="text">
<!-- formatted ASCII configuration statements -->
</load-configuration>
</rpc>
<load-configuration>
attribute and either the
attributes in the
tag:
Copyright © 2010, Juniper Networks, Inc.
tag element:
or
inactive="inactive"
<name>
:
tag or
<load-configuration/>
Need help?
Do you have a question about the JUNOS OS 10.3 - XML MANAGEMENT PROTOCOL GUIDE 6-30-2010 and is the answer not in the manual?
Questions and answers