<copy-config>
The <copy-config> operation replaces the target configuration database with the source configuration database. If the target database exists, it is overwritten. Otherwise, a new one is created, if allowed.
The <copy-config> operation copies configuration data in the <running/> configuration database to the <startup/> configuration database. The configuration file must be in .cfg, .zip, or .dat format but not in .xml format.
Copy configuration data in the <running/> configuration database to the <startup/> configuration database:
RPC request:
<?xml version="1.0" encoding="UTF-8"?> <rpc message-id="596" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <copy-config> <target> <startup/> </target> <source> <running/> </source> </copy-config> </rpc>
RPC reply:
<rpc-reply message-id="596" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <ok/> </rpc-reply>