Verifying the configuration, Performing the edit-config operation – H3C Technologies H3C MSR 5600 User Manual

Page 153

Advertising
background image

140

<?xml version="1.0"?>

<rpc-reply message-id="100"

xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<data>

Device state and configuration data within the specified range

</data>

</rpc-reply>

Performing the get-config/get-bulk-config operation

The get-config and get-bulk-config operations are used to retrieve all non-default configurations, which

are configured by means of CLI, MIB, and Web. The <get-config> and <get-bulk-config> messages can

contain the <filter> element for filtering data.
The <get-config> and <get-bulk-config> messages are similar. The following is a <get-config> message

example:

<?xml version="1.0"?>

<rpc message-id="100" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<get-config>

<source>

<running/>

</source>

<filter>

<top xmlns="http://www.h3c.com/netconf/config:1.0">

Specify the module name, submodule name, table name, and column name

</top>

</filter>

</get-config>

</rpc>

Verifying the configuration

After receiving the get-config request, the device returns a response in the following format if the
operation is successful:

<?xml version="1.0"?>

<rpc-reply message-id="100" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<data>

All data matching the specified filter

</data>

</rpc-reply>

Performing the edit-config operation

The edit-config operation supports the following operation attributes: merge, create, replace, remove,

delete, default-operation, error-option, and test-option. For more information about these attributes, see

"

Appendix A Supported NETCONF operations

."

# Copy the following text to perform the <edit-config> operation.

<?xml version="1.0"?>

<rpc message-id="100" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<edit-config>

Advertising
This manual is related to the following products: