Replacing An Element And Setting Its Activation State; Using Junos Xml Tag Elements For The Replacement Element; Using Formatted Ascii Text For The Replacement Element - 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

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/>

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos os

Table of Contents