RUGGEDCOM NETCONF
Reference Guide
Chapter 8
NETCONF XML Elements
<copy-config>
127
<rpc>
<commit>
<confirmed/>
<confirm-timeout>30</confirm-timeout>
</commit>
</rpc>
]]>]]>
Section 8.4
<copy-config>
Description:
Creates or replaces a specified <target> configuration with a specified <source> configuration. If the <target>
configuration exists, it is overwritten. If the <target> configuration does not exist, a new configuration is created.
Parameters:
<target> : specifies the target configuration to create or to overwrite. Valid values: running|candidate.
<source> : a container for the configuration source file to copy.
<url> : specifies the URL of the configuration source file to copy.
Response:
If the NETCONF device can complete the request, it sends an <rpc-reply> document containing the <ok> element.
If the NETCONF device cannot complete the request, it sends an <rpc-reply> document containing the <rpc-error>
element.
Example:
To copy a configuration and make it the candidate configuration:
<rpc>
<copy-config>
<target>
<candidate/>
</target>
<source>
<url>
<https://[email protected]:passphrase/path/filename.txt>
</url>
</source>
<copy-config>
</rpc>
]]>]]>
Section 8.5
<data>
Description:
Encloses configuration data returned from the device.
Example:
Response from a device when queried for the system name:
<rpc-reply message-id="2" with-defaults="true"
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<data>
<admin xmlns="http://ruggedcom.com/ns/rmf_admin">
<system-name>System Name</system-name>
</admin>
</data>
</rpc-reply>
Summary of Contents for RUGGEDCOM MX5000RE
Page 8: ...Table of Contents RUGGEDCOM NETCONF Reference Guide viii ...
Page 12: ...Preface RUGGEDCOM NETCONF Reference Guide xii Customer Support ...
Page 26: ...Chapter 1 Introduction RUGGEDCOM NETCONF Reference Guide 14 Sample Session Editing Data ...
Page 40: ...Chapter 3 NETCONF Sessions RUGGEDCOM NETCONF Reference Guide 28 Killing a Session ...
Page 64: ...Chapter 5 Changing Configuration Data RUGGEDCOM NETCONF Reference Guide 52 Committing Changes ...
Page 148: ...Chapter 8 NETCONF XML Elements RUGGEDCOM NETCONF Reference Guide 136 validate ...