About the NETCONF Agent
The Cisco NX-OS NETCONF Agent is a client-facing interface that provides secure transport for the client requests and server responses in the form of a YANG model, encoded in XML.
The NETCONF Agent supports a candidate configuration feature. The Candidate configuration datastore temporarily holds candidate configuration and any changes you make without changing the running configuration. You can then choose when to update the configuration of the device with the candidate configuration when you commit and confirm the candidate configuration.
If you do not confirm the changes, exit from a nonpersistent NETCONF client session, or choose to cancel the commit after you commit the change, a system timer then times out and rolls back the changes if you do not confirm the changes.
If you initiate a confirmed-commit operation with a persistent token, the NETCONF client session becomes a persistent process. In a persistent process, exiting the NETCONF client session will not call an automatic roll-back and the changes cannot be rolled back without the matching persistent token.
Cisco NX-OS NETCONF supports the following configuration capabilities:
-
Writable-Running Capability
urn:ietf:params:netconf:capability:writable-running:1.0
-
Rollback-on-error Capability
urn:ietf:params:netconf:capability:rollback-on-error:1.0
-
Candidate Configuration Capability
urn:ietf:params:netconf:capability:candidate:1.0
-
Validation Capability
urn:ietf:params:netconf:capability:validate:1.1
-
Confirmed Commit Capability
urn:ietf:params:netconf:capability:confirmed-commit:1.1
When a new session starts, the NETCONF Agent sends out a <hello> message advertising its capabilities. The following example shows a NETCONF agent sending a <hello> message to the client:
<?xml version="1.0" encoding="UTF-8"?>
<hello>
<capabilities>
<capability>urn:ietf:params:netconf:base:1.0</capability>
<capability>urn:ietf:params:netconf:base:1.1</capability>
<capability>urn:ietf:params:netconf:capability:writable-running:1.0</capability>
<capability>urn:ietf:params:netconf:capability:rollback-on-error:1.0</capability>
<capability>urn:ietf:params:netconf:capability:candidate:1.0</capability>
<capability>urn:ietf:params:netconf:capability:validate:1.1</capability>
<capability>urn:ietf:params:netconf:capability:confirmed-commit:1.1</capability>
<capability>http://cisco.com/ns/yang/cisco-nx-os-device?revision=2017-04-06&module=cisco-nx-os-device&deviations=cisco-nx-os-device-deviations</capability>
</capabilities>
<session-id>1438752697</session-id>
</hello>
The Cisco NX-OS NETCONF Agent supports the following NETCONF Protocol operations:
-
get
-
get-config
-
edit-config
-
close-session
-
kill-session
Candidate configuration supports the following NETCONF Protocol operations.
-
Operations for the candidate configuration as <source> or <target>.
-
get-config
-
edit-config
-
copy-config
-
lock
-
unlock
-
validate
-
-
Operations for the candidate configuration that do not require explicitly specifying the candidate configuration as <source> or <target>.
-
commit
-
cancel-commit
-
discard-changes
Note
The delete-config operation is not allowed.
-