Reordering Elements In Configuration Objects - 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

Reordering Elements in Configuration Objects

Copyright © 2010, Juniper Networks, Inc.
Client Application
<rpc>
<load-configuration>
<configuration>
<system>
<login>
<class>
<name>user-accounts</name>
<permissions delete="delete">configure</permissions>
<permissions delete="delete">control</permissions>
</class>
</login>
</system>
</configuration>
</load-configuration>
</rpc>
For most configuration objects, the order in which the object or its children are created
is not significant, because the Junos configuration management software stores and
displays configuration objects in predetermined positions in the configuration hierarchy.
However, some configuration objects—such as routing policies and firewall filters—consist
of elements that must be processed and analyzed sequentially in order to produce the
intended routing behavior. When a client application uses the Junos XML management
protocol to add a new element to an ordered set, the element is appended to the existing
list of elements. The client application can then reorder the elements, if appropriate.
To change the order of configuration elements in an ordered set, a client application
includes the tag elements described in "Creating, Modifying, or Deleting Configuration
Elements" on page 109. It emits the container tag element that represents the ordered
set, and encloses the tag element for each identifier of the configuration element that
is moving. In the following, the identifier tag element is called
container tag, it includes the
new position of the moving element relative to another reference element in the set. To
identify the reference element, it includes each of the reference element's identifiers as
an attribute in the opening container tag for the ordered set.
In the following, the elements in the set have one identifier, called
<configuration>
<!-- opening tag for each parent of the set -->
<ordered-set insert="(before | after)" name="referent-value">
<name>identifier-for-moving-object</name>
</ordered-set>
<!-- closing tag for each parent of the set -->
</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>
insert="before"
or
insert="after"
. In the opening
<name>
attribute to indicate the
:
<name>
121

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos os

Table of Contents