Vyatta NOS documentation

Learn how to install, configure, and operate Vyatta Network Operating System (Vyatta NOS), which helps to drive our virtual networking and physical platforms portfolio.

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.

Note: If you only wish to replace part of the configuration, use <edit-config> instead.
Use the <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>
]]>]]>