Download Yuma netconfd Manual

Transcript
Yuma netconfd Manual
◦
•
data-not-unique: unique statement violation
data-missing: mandatory statement violation or missing leafref path object
Example Request:
<?xml version="1.0" encoding="UTF-8"?>
<nc:rpc xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"
message-id="5">
<nc:commit/>
</nc:rpc>
Example Reply:
<?xml version="1.0" encoding="UTF-8"?>
<nc:rpc-reply xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"
message-id="5">
<nc:ok/>
</nc:rpc-reply>
2.6.4
<COPY-CONFIG>
The <copy-config> operation is used to transfer entire configuration databases in one operation.
This is a destructive 'stop-on-error' operation. It is not like <edit-config> or <commit>, which can be
used in an 'all-or-nothing' manner.
A failed <copy-config> can leave the target of the operation in an unstable, invalid state. This
operation should be used with caution.
The <source> and <target> parameters are simple to understand, but there are many interactions
and some complexity, due to so many combinations of optional capabilities that are possible.
When in-line configuration data is used in the <source> parameter, it is applied to the <target>
differently, depending on the database.
•
If the <target> is the <startup> configuration, then the new configuration simply overwrites
the old one, and no validation is done at all.
•
If the <target> is the <candidate> or <running> configuration, then the new configuration is
applied as if the operation was an <edit-config> operation with a <default-operation>
parameter set to 'replace'. All validation and access control procedures are followed.
The <with-defaults> parameter is also available for filtering the output as it is copied to the target.
<copy-config> operation
Page 43
Min parameters:
2
Max parameters:
3
Version 2.2