Chapter 8
NETCONF XML Elements
RUGGEDCOM NETCONF
Reference Guide
128
<discard-changes>
Section 8.6
<discard-changes>
Description:
Discards changes to the candidate configuration and reverts the candidate configuration to the currently running
configuration.
Example:
To discard changes to the candidate configuration:
<rpc>
<discard-changes/>
</rpc>
]]>]]>
Section 8.7
<edit-config>
Description:
Changes the specified data in a specified configuration.
Parameters:
<target> : the configuration to edit: candidate or running.
<config> : identifies the configuration segments to edit. The filter element contains elements describing the
configuration parameters to set and the date values to set in the configuration.
Response:
If the NETCONF device can complete the request, it sends an <rpc-reply> document containing the <data>
element and results of the query.
If the NETCONF device cannot complete the request, it sends an <rpc-reply> document containing the <rpc-error>
element.
Example:
To change the system name parameter in the running configuration:
<rpc message-id="233" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<running/>
</target>
<config>
<admin xmlns="http://ruggedcom.com/ns/rmf_admin"><system-name>Lorem Ipsum</
system-name></admin>
</config>
</edit-config>
</rpc>]]>]]>
Section 8.8
<error-info>
Description:
In an <rpc-error> element, <error-info> contains information describing an error returned by the NETCONF server.
Elements within <error-info> may indicate specific errors. For more information on NETCONF errors, see
Engineering Task Force RFC 6241
[http://tools.ietf.org/html/rfc6241].
Example:
An <rpc-reply> response with <error-info> indicating an error due to attribute and element problems:
<rpc-reply>
<rpc-error>
<error-type>rpc</error-type>
<error-tag>missing-attribute</error-tag>
<error-severity>error</error-severity>
<error-info>
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 ...