Vyatta Network OS Documentation

Learn how to install, configure and operate the Vyatta NOS, which helps drive our virtual networking & 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">
      <interfaces xmlns="urn:vyatta.com:mgmt:vyatta-interfaces:1">