Replace the configuration — <copy-config>
An example of how to use <copy-config>
to replace the existing configuration entirely. This will remove all existing configuration from the candidate
configuration, and replace it with the contents of the <config>
element.
<edit-config>
instead.<copy-config>
RPC.<rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<copy-config>
<target>
<candidate/>
</target>
<config>
<interfaces xmlns="urn:vyatta.com:mgmt:vyatta-interfaces:1">
...
</interfaces>
...
</config>
</copy-config>
</rpc>
]]>]]>