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
118
If using Junos XML tag elements, the application includes the
in the opening tag for the object. In the container tag element for the object, it encloses
only the identifier tag element, not tag elements that represent any other characteristics
of the object. In the following, the identifier tag element is called
<configuration>
<!-- opening tag for each parent of the object -->
<object delete="delete">
<name>identifier</name>
</object>
<!-- closing tag for each parent of the object -->
</configuration>
NOTE: The
delete
attribute appears in the opening container tag, not in the identifier
tag element. The presence of the identifier tag element results in the removal of the
specified object, not in the removal of the entire hierarchy level represented by the
container tag element.
If using formatted ASCII text, the application places the
object and its identifier:
<configuration-text>
/* statements for parent levels of the object */
delete:
object identifier;
/* closing braces for parent levels of the object */
</configuration-text>
The following example shows how to remove the user object
[edit system login user]
hierarchy level in the candidate configuration.
Client Application
<rpc>
<load-configuration>
<configuration>
<system>
<login>
<user delete="delete">
<name>barbara</name>
</user>
</login>
</system>
</configuration>
</load-configuration>
</rpc>
Deleting a Single-Value or Fixed-Form Option from a Configuration Object
To delete from a configuration object either a fixed-form option or an option that takes
just one value, a client application includes the basic tag elements or configuration
delete="delete"
<name>
statement above the
delete:
barbara
Junos XML Protocol Server
<rpc-reply xmlns:junos="URL ">
<load-configuration-results>
<load-success/>
</load-configuration-results>
</rpc-reply>
Copyright © 2010, Juniper Networks, Inc.
attribute
:
from the

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos os

Table of Contents