Juniper JUNOS OS 10.3 - XML MANAGEMENT PROTOCOL GUIDE 6-30-2010 Manual page 126

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
104
application to make changes without affecting the candidate or active configuration
until the copy is committed.
Encloses the
<load-configuration>
4.
various attributes in the
tag, the application can provide the configuration data either in a file or as a directly
loaded tag stream, and either as Junos XML tag elements or formatted ASCII text.
It can completely replace the existing configuration or can specify the manner in
which the Junos XML protocol server loads the data into the existing candidate or
copy. The basic syntax is as follows:
<rpc>
<!-- If providing configuration data in a file -->
<load-configuration url="file" [optional attributes]
<!-- If providing configuration data in a data stream -->
<load-configuration [optional attributes]>
<!-- configuration data -->
</load-configuration>
</rpc>
Accepts the tag stream emitted by the Junos XML protocol server in response to
5.
each request and extracts its content, as described in "Parsing the Junos XML Protocol
Server Response" on page 48.
The Junos XML protocol server confirms that it incorporated the configuration data
by returning the
<load-configuration-results>
in the
<rpc-reply>
tag element:
<rpc-reply xmlns:junos="URL">
<load-configuration-results>
<load-success/>
</load-configuration-results>
</rpc-reply>
If the load operation fails, the
encloses the
<load-error-count>
that occurred. In this case, the application or an administrator must eliminate the
errors before committing the configuration.
<rpc-reply xmlns:junos="URL">
<load-configuration-results>
<load-error-count>count</load-error-count>
</load-configuration-results>
</rpc-reply>
(Optional) Verifies the syntactic correctness of a configuration before attempting
6.
to commit it, as described in "Verifying a Configuration Before Committing It" on
page 133.
Commits changes made to the configuration, as described in "Committing a
7.
Configuration" on page 133.
tag element in an
<load-configuration/>
tag or opening
tag element and
<load-configuration-results>
tag element, which indicates the number of errors
tag element. By including
<rpc>
<load-configuration>
<load-success/>
tag element instead
Copyright © 2010, Juniper Networks, Inc.
tag

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos os

Table of Contents