To change configuration information, the client application performs the procedures described in the indicated sections:
<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>
The JUNOScript server confirms that it incorporated the configuration data by returning the <load-configuration-results> tag element and <load-success/> tag 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 <load-configuration-results> tag element instead encloses the <load-error-count> tag element, which indicates the number of errors 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>