Junos 10.3 Junos XML Management Protocol Guide
Changing the Configuration
Committing the Configuration
58
tag to prevent any other users or applications from altering the candidate configuration
at the same time. To confirm that the candidate configuration is locked, the Junos XML
protocol server returns an
them.
Client Application
Junos XML Protocol Server
<rpc>
<lock-configuration/>
</rpc>
<rpc-reply xmlns:junos="URL ">
</rpc-reply>
The client application emits the tag elements that add the new
class to the candidate configuration. The Junos XML protocol server returns the
<load-configuration-results>
outcome of the load operation. (Understanding the meaning of these tag elements is
not necessary for the purposes of this example, but for information about them, see
"Changing Configuration Information" on page 103.)
Client Application
<rpc>
<load-configuration>
<configuration>
<system>
<login>
<class>
<name>network-mgmt</name>
<permissions>configure</permissions>
<permissions>snmp</permissions>
<permissions>system</permissions>
</class>
</login>
</system>
</configuration>
</load-configuration>
</rpc>
The client application commits the candidate configuration. The Junos XML protocol
server returns the
<commit-results>
outcome of the commit operation (for information about these tag elements, see
"Committing a Configuration" on page 133).
and an
<rpc-reply>
</rpc-reply>
tag element to enclose a tag element that reports the
Junos XML Protocol Server
<rpc-reply xmlns:junos="URL ">
<load-configuration-results>
<load-success/>
</load-configuration-results>
</rpc-reply>
tag element to enclose tag elements that report the
tag with nothing between
privilege
network-mgmt
Copyright © 2010, Juniper Networks, Inc.
Need help?
Do you have a question about the JUNOS OS 10.3 - XML MANAGEMENT PROTOCOL GUIDE 6-30-2010 and is the answer not in the manual?
Questions and answers