
5. copy-config: Performs NETCONF
copy-config
operation. For details, see RFC 6241 section 7.3.
copy-config [--help] --target running|startup|candidate|url:<url> (--source running|startup|
candidate|url:<url> | --src-config[=<file>])
[--defaults report-all|report-all-tagged|trim|explicit]
Where, the arguments are the following:
• --defaults mode: Use: with the
-defaults
capability with specified retrieval mode. For details, refer to the RFC 6243
section 3 or WITH-DEFAULTS section of this manual.
• --target datastore: Specifies the target datastore for the
copy-config
operation. For description of the datastore
.
• --source datastore: Specifies the source datastore for the
copy-config
operation. For description of the datastore
.
6. delete-config Performs NETCONF
delete-config
operation. For more details see RFC 6241 section 7.4.
delete-config [--help] --target startup|url:<url>
Where
• target datastore: Specifies the target datastore for the
delete-config
operation.
7. edit-config
Performs NETCONF
edit-config
operation. For details, see RFC 6241 section 7.2.
edit-config [--help] --target running|candidate (--config[=<file>] | --url <url>)
[--defop merge|replace|none] [--test set|test-only|test-then-set] [--error stop|continue|
rollback]
Where
• --defop operation
— Specifies default operation for applying configuration data.
— merge: Merges configuration data at the corresponding level. This is the default value.
— replace: Edits configuration data completely replaces the configuration in the target datastore.
— none: The target datastore is unaffected by the edit configuration data, unless and until the edit configuration
data contains the operation attribute to request a different operation. For more info, see the EDIT-CONFIG
section of this document.
ITo delete non-madatory items, nc:operation="delete" needs to be added into the end of start tag of the item to be
deleted. At the same time, the namespace xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" also needs to be
added ioto start tag of the root node. Mandatory items can't be deleted individually, they can only be deleted with
their parent node.
NOTE
• --error action
— Sets reaction to an error.
— Stop: Aborts the operation on first error. This is the default value.
— Continue: Continues to process configuration data on error. The error is recorded and negative response is
returned.
— Rollback: Stops the operation processing on error and restore the configuration to its complete state at the start
of this operation. This action is available only if the server supports rollback-on-error capability (see RFC 6241
section 8.5).
NXP Semiconductors
NETCONF/YANG
Open Industrial User Guide, Rev. 1.8, 05/2020
User's Guide
78 / 199