Deleting Configuration Elements; Deleting A Single-Value Or Fixed-Form Option From A Configuration - 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

Deleting Configuration Elements

116
To represent the replacement elements, the application uses the same syntax as for
new elements, as described in "Creating New Configuration Elements" on page 114. In the
following, the identifier tag element is called
<configuration>
<!-- opening tag for each parent of the element -->
<container-tag>
<name>identifier</name>
<!-- tag elements for other children, if any -->
</container-tag>
<!-- closing tag for each parent of the element -->
</configuration>
OR
<configuration-text>
/* statements for parent levels of the element */
element identifier {
/* child statements if any */
}
/* closing braces for parent levels for the element */
</configuration-text>
The following example shows how to update the candidate configuration with the
contents of the file
/tmp/new.conf
complete configuration represented as Junos XML tag elements (the default), so the
format
attribute is omitted.
Client Application
<rpc>
<load-configuration action="update" url="/tmp/new.conf"/>
</rpc>
To delete configuration elements (hierarchy levels or configuration objects) from the
candidate configuration or private copy, a client application emits the basic tag elements
described in "Creating, Modifying, or Deleting Configuration Elements" on page 109. When
using Junos XML tag elements to represent the elements to delete, it includes the
attribute in the opening tag for each one. When using formatted ASCII
delete="delete"
text, it precedes each element with the
or operator depends on the type of element being deleted, as described in the following
sections:
Deleting a Hierarchy Level or Container Object on page 117
Deleting a Configuration Object That Has an Identifier on page 117
Deleting a Single-Value or Fixed-Form Option from a Configuration Object on page 118
Deleting Values from a Multivalue Option of a Configuration Object on page 120
<name>
:
(which resides on the device). The file contains a
Junos XML Protocol Server
<rpc-reply xmlns:junos="URL ">
<load-configuration-results>
<load-success/>
</load-configuration-results>
</rpc-reply>
delete:
operator. The placement of the attribute
Copyright © 2010, Juniper Networks, Inc.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos os

Table of Contents