Reordering An Element And Setting Its Activation State; Renaming An Object And Setting Its Activation State - 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 an Element and Setting Its Activation State

Renaming an Object and Setting Its Activation State

Copyright © 2010, Juniper Networks, Inc.
The application places the
and the
operator directly before the new element. It includes all child statements
replace:
that it is defining for all children of the element:
<configuration-text>
/* statements for parent levels */
/* For an object with an identifier */
(inactive | active):
replace: object identifier {
/* Child configuration statements */
}
/* For a hierarchy level or object without an identifier */
(inactive | active):
replace: element {
/* Child configuration statements */
}
/* closing braces for parent levels */
</configuration-text>
To reorder an element in an ordered list and simultaneously deactivate or activate it, the
application combines the
insert
with the
or
inactive
active
moving element is called
<name>
only:
<configuration>
<!-- opening tag for each parent of the set -->
<ordered-set insert="(before | after)" reference-identifier="value" \
(inactive="inactive" | active="active")>
<name>identifier-for-moving-object</name>
</ordered-set>
<!-- closing tag for each parent of the set -->
</configuration>
The reordering operation is not available when formatted ASCII text is used to represent
the configuration data. For complete information about reordering elements, see
"Reordering Elements in Configuration Objects" on page 121.
To rename an object (change the value of one or more of its identifiers) and
simultaneously deactivate or activate it, the application combines the
and identifier attribute for the new name with the
If the object has one identifier (here called
tag appears on two lines for legibility only):
<configuration>
<!-- opening tag for each parent of the object -->
<object rename="rename" name="new-name" \
(inactive="inactive" | active="active")>
<name>current-name</name>
Chapter 5: Changing Configuration Information
inactive:
or
active:
operator on the line above the new element
attribute and identifier attribute for the reference element
attribute. In the following, the identifier tag element for the
. The opening tag appears on two lines for legibility
inactive
), the syntax is as follows (the opening
<name>
rename
attribute
or
attribute.
active
129

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos os

Table of Contents