Example: Replacing An Object And Deactivating It - 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

Example: Replacing an Object and Deactivating It

130
</object>
<!-- closing tag for each parent of the object -->
</configuration>
If the object has multiple identifiers and only one is changing, the syntax is as follows
(the opening tag appears on multiple lines for legibility only):
<configuration>
<!-- opening tag for each parent of the object -->
<object rename="rename"changing-identifier="new-name" \
unchanging-identifier="current-name" \
(inactive="inactive" | active="active")>
<changing-identifier>current-name</changing-identifier>
<unchanging-identifier>current-name</unchanging-identifier>
</object>
<!-- closing tag for each parent of the object -->
</configuration>
The renaming operation is not available when formatted ASCII text is used to represent
the configuration data. For complete information about renaming elements, see
"Renaming a Configuration Object" on page 123.
The following example shows how to replace the information at the
hierarchy level in the candidate configuration for the group called
the group so that it is not used in the actual configuration when the candidate is
committed:
Client Application
<rpc>
<load-configuration action="replace">
<configuration>
<protocols>
<bgp>
<group replace="replace" inactive="inactive">
<name>G3</name>
<type>external</type>
<peer-as>58</peer-as>
<neighbor>
<name>10.0.20.1</name>
</neighbor>
</group>
</bgp>
</protocols>
</configuration>
</load-configuration>
</rpc>
The following example shows how to use formatted ASCII text to make the same changes:
[edit protocols bgp]
, and also deactivate
G3
Junos XML Protocol Server
<rpc-reply xmlns:junos="URL ">
<load-configuration-results>
<load-success/>
</load-configuration-results>
</rpc-reply>
Copyright © 2010, Juniper Networks, Inc.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos os

Table of Contents