This capability indicates that the device can deliver configurations without considering the configuration sequence. During the delivery, the device only checks the syntactic validity of configurations rather than the configuration sequence. The device checks semantic validity when committing the configurations. After correcting the configuration delivery sequence, the device commits the configurations to the <running/> configuration database.
Before performing the <validate> operation, locking the <running/> configuration database is advised to prevent adverse impacts on the validate operation when other users operate the <running/> configuration database.
RPC request
<rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <validate> <source> <candidate/> </source> </validate> </rpc>
RPC reply
<rpc-reply message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <ok/> </rpc-reply>
If the NMDA data set is supported, the data set format in the source configuration database is different, as shown in the following:
RPC request
<rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <validate xmlns:ds="urn:ietf:params:xml:ns:yang:ietf-datastores"> <source> <datastore xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-nmda">ds:running</datastore> </source> </validate> </rpc>
RPC reply
<rpc-reply message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <ok/> </rpc-reply>
The <source> parameter of the Validate operation supports only <candidate/> and <running/>.
RPC request
<?xml version="1.0" encoding="utf-8"?> <rpc message-id="2" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <edit-config> <target> <running/> </target> <test-option>test-then-set</test-option> <config> <ifm xmlns="urn:huawei:yang:huawei-ifm"> <interfaces> <interface xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" nc:operation="merge"> <name>GigabitEthernet1/0/0</name> <description>text</description> </interface> </interfaces> </ifm> </config> </edit-config> </rpc>
RPC reply
<?xml version="1.0" encoding="utf-8"?> <rpc-reply xmlns:nc-ext="urn:huawei:yang:huawei-ietf-netconf-ext" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2" nc-ext:flow-id="27"> <ok/> </rpc-reply>