Renaming a Configuration Object
Copyright © 2010, Juniper Networks, Inc.
user@host# insert virtual-link neighbor-id 192.168.0.3 transit-area 1.1.1.1 \
before virtual-link neighbor-id 192.168.0.5 transit-area 1.1.1.2
Client Application
<rpc>
<load-configuration>
<configuration>
<protocols>
<ospf>
<area>
<filter insert="before" neighbor-id="192.168.0.5" transit-area="1.1.1.2">
<neighbor-id>192.168.0.3</neighbor-id>
<transit-area>1.1.1.1</transit-area>
</filter>
</area>
</ospf>
</protocols>
</configuration>
</load-configuration>
</rpc>
To change the name of one or more of a configuration object's identifiers, a client
application includes the tag elements described in "Creating, Modifying, or Deleting
Configuration Elements" on page 109. In the object's opening tag, it includes the
attribute and an attribute named after the identifier keyword. The
rename="rename"
value of the attribute is the new identifier value. The application includes the identifier
tag element to specify the current name. In the following, the identifier tag element is
called
:
<name>
<configuration>
<!-- opening tag for each parent of the object -->
<object rename="rename" name="new-name">
<name>current-name</name>
</object>
<!-- closing tag for each parent of the object -->
</configuration>
If the object has multiple identifiers, for each one the application includes both an attribute
in the opening tag and an identifier tag element. If one or more of the identifiers is not
changing, the attribute value for it is set to its current name. The opening tag appears on
two lines for legibility only:
<configuration>
<!-- opening tag for each parent of the object -->
<object rename="rename" changing-identifier="new-name" \
unchanging-identifier="current-name">
<changing-identifier>current-name</changing-identifier>
<unchanging-identifier>current-name</unchanging-identifier>
</object>
<!-- closing tag for each parent of the object -->
</configuration>
Chapter 5: Changing Configuration Information
Junos XML Protocol Server
<rpc-reply xmlns:junos="URL ">
<load-configuration-results>
<load-success/>
</load-configuration-results>
</rpc-reply>
123
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