Junos 10.3 Junos XML Management Protocol Guide
Creating New Configuration Elements
114
Client Application
<rpc>
<load-configuration action="replace">
<configuration>
<system>
<login>
<class replace="replace">
<name>operator</name>
<permissions>configure</permissions>
<permissions>admin-control</permissions>
</class>
</login>
</system>
</configuration>
</load-configuration>
</rpc>
The following example shows how to use formatted ASCII text to make the same change.
Client Application
<rpc>
<load-configuration action="replace" format="text">
<configuration-text>
system {
login {
replace:
class operator {
permissions [ configure admin-control ];
}
}
}
</configuration-text>
</load-configuration>
</rpc>
To create new configuration elements (hierarchy levels or configuration objects), a client
application includes the basic tag elements or formatted ASCII statements described in
"Creating, Modifying, or Deleting Configuration Elements" on page 109.
New elements can be created in either merge mode or replace mode, which are described
in "Merging Configuration Elements" on page 110 and "Replacing Configuration Elements"
on page 113. In replace mode, the application includes the
the
<load-configuration/>
Junos XML Protocol Server
<rpc-reply xmlns:junos="URL ">
<load-configuration-results>
<load-success/>
</load-configuration-results>
</rpc-reply>
Junos XML Protocol Server
<rpc-reply xmlns:junos="URL ">
<load-configuration-results>
<load-success/>
</load-configuration-results>
</rpc-reply>
tag or opening
<load-configuration>
attribute in
action="replace"
tag.
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