Deleting Values From A Multivalue Option Of A Configuration Object - 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
120

Deleting Values from a Multivalue Option of a Configuration Object

As described in "Mapping for Leaf Statements with Multiple Values" on page 18, some
Junos configuration objects are leaf statements that have multiple values. In the formatted
ASCII CLI representation, the values are enclosed in square brackets following the name
of the object:
object [value1 value2 value3 ...];
The Junos XML representation does not use a parent tag for the object, but instead uses
a separate instance of the object tag element for each value. In the following, the identifier
tag element is called
<name>
<parent-object>
<name>identifier</name>
<object>value1</object>
<object>value2</object>
<object>value3</object>
</parent-object>
To remove one or more values for such an object, a client application includes the basic
tag elements or configuration statements for its parent levels, as described in "Creating,
Modifying, or Deleting Configuration Elements" on page 109. If using Junos XML tag
elements, the application includes the
each value. It does not include tag elements that represent values to be retained. In the
following, the identifier tag element for the parent object is called
<configuration>
<!-- opening tag for each parent of the parent object -->
<parent-object>
<name>identifier</name>
<object delete="delete">value1</object>
<object delete="delete">value2</object>
</parent-object>
<!-- closing tag for each parent of the parent object -->
</configuration>
If using formatted ASCII text, the application repeats the parent statement for each value
and places the
statement above each paired statement and value:
delete:
<configuration-text>
/* statements for parent levels of the parent object */
parent-object identifier;
delete:
object value1;
delete:
object value2;
/* closing braces for parent levels of the parent object */
</configuration-text>
The following example shows how to remove two of the permissions granted to the
user-accounts
login class.
:
attribute in the opening tag for
delete="delete"
Copyright © 2010, Juniper Networks, Inc.
<name>
:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos os

Table of Contents