Each RPC request can only contain one operation. Table: Summary of operations and capabilities summarizes the protocol operations and capabilities supported on the 7450 ESS, 7750 SR, and 7950 XRS.
Support | Capabilities | Operations |
---|---|---|
Base Protocol Operations |
— |
|
RFC 62411 |
writable-running capability |
— |
candidate configuration capability |
||
confirmed commit |
<cancel-commit> |
|
validate |
||
startup |
— |
|
URL |
— |
|
rollback-on-error |
— |
|
RFC 6243 |
with-defaults |
— |
RFC 5277 |
notification |
<create-subscription> |
interleave |
— |
|
RFC 6022 |
ietf-network-monitoring |
|
RFC 8525 |
ietf-yang-library |
— |
RFC 8526 |
— |
<get data> |
RFC 7950 |
— |
<action>2 |
The following table lists the supported NETCONF operations and arguments.
Operation | Arguments |
---|---|
get-config |
source/[configuration-region] [filter] [format] |
edit-config |
target/[configuration-region] [default-operation] [test-option] [error-option] config |
copy-config |
target/[configuration-region] source/[configuration-region] |
delete-config |
target |
lock |
target/[configuration-region] |
unlock |
target/[configuration-region] |
get |
[filter] [configuration-region] [format] |
close-session |
— |
kill-session |
session-id |
discard-changes |
[configuration-region] |
validate |
source/[configuration-region] |
commit |
[confirmed] [confirm-timeout] [persist] [persist-id] [configuration-region] |
cancel-commit |
[persist-id] |
create-subscription |
[stream] [startTime] [stopTime] |
get-schema |
identifier [version] [format] |
get-data |
datastore [subtree-filter] [max-depth] [with-defaults] [configuration-region] [format] |
action |
(2) |
Table: Protocol operations and level of support in Nokia SR OS NETCONF servers lists protocol operations and level of support in SR OS NETCONF servers, and limitations, if any, in the current implementation.
Protocol operation | Example | Supported | Notes |
---|---|---|---|
get-config |
|
Yes |
To use the get-config operation, the user must belong to a NETCONF system security profile with get-config enabled for the base-op-authorization. If present, configuration annotations are encoded with the nokia-attr:comment attribute. |
|
No |
— |
|
|
Yes |
— |
|
|
No |
— |
|
|
No |
— |
|
|
Yes |
A <filter> is an optional argument. All subtree filters are supported in SR OS except for ‟attribute match expressions”. |
|
|
No |
— |
|
|
Yes |
Optional. Specify "li", "bof" or "configure". The default, if not specified, is "configure". Can only be used with the Nokia SR OS modules. A datastore must be specified inside the <source> if the <configuration-region> is used. |
|
get |
|
Yes |
Retrieves both configuration and state data if in XML content layer. To use the get operation, the user must belong to a NETCONF system security profile with get enabled for the base-op-authorization. If present, configuration annotations are encoded with the nokia-attr:comment attribute. |
|
Yes |
A <filter> is an optional argument. Subtree filters are supported except for "attribute match expressions". |
|
|
No |
— |
|
|
Yes |
Optional. Specify "li", "bof" or "configure". The default, if not specified, is "configure". Can only be used with the Nokia SR OS modules. |
|
edit-config |
|
Yes |
<default-operation>, <test-option>, and <error-option> are optional arguments. To use the edit-config operation, the user must belong to a NETCONF system security profile with edit-config enabled for the base-op-authorization. Configuration annotations may be encoded with the nokia-attr:comment attribute to add, change, or delete the annotations. |
|
No |
— |
|
|
No |
— |
|
|
Yes |
— |
|
|
Yes |
Default |
|
|
Yes |
With the Nokia SR OS YANG modules, an operation of "none" (inherited or direct) on a leaf node that does not exist in the data model causes SR OS to return an error with an <error-tag> value of ‟data-missing”. |
|
|
Yes |
— |
|
|
Yes |
— |
|
|
Yes |
— |
|
|
Yes |
— |
|
|
No |
— |
|
|
Yes |
— |
|
|
Yes |
Default. This can be specified but, starting in Release 20.2.R1, behaves the same as a rollback-on-error. |
|
|
Yes |
Optional. Specify "li", "bof" or "configure". Default, if not specified, is "configure". Can only be used with the Nokia SR OS modules. |
|
close-session |
|
Yes |
When a session is closed, any locks held are released and the session is terminated. Any pending RPC requests are discarded. To use the close-session operation, the user must belong to a NETCONF system security profile with close-session enabled for the base-op-authorization. |
commit |
|
Yes |
When commit is issued, any configuration stored in the <candidate> datastore is written to the running configuration unless the device is locked by a NETCONF client or <running> datastore is locked by any other NETCONF session. The startup configuration is also written if system management-interface netconf auto-config-save is configured. To use the commit operation, the user must belong to a NETCONF system security profile with commit enabled for the base-op-authorization. |
|
Yes |
Optional. Specifies a comment in the commit history. |
|
|
Yes |
Optional. Can only be used with non-li configurations. |
|
|
Yes |
Optional. Can only be used with non-li configurations. |
|
|
Yes |
Optional. Can only be used with non-li configurations. |
|
|
Yes |
Optional. Can only be used with non-li configurations. |
|
|
Yes |
Optional. Specify "li", "bof" or "configure". Default, if not specified, is "configure". Can only be used with the Nokia SR OS modules. |
|
cancel-commit |
|
Yes |
Can only be used with non-li configurations. To use the cancel commit operation, the user must belong to a NETCONF system security profile with cancel-commit enabled for the base-op-authorization. |
|
Yes |
Optional. When a <commit> <persist> is used, the value of a <cancel-commit> <persist-id> must be equal to the value used in the <commit> <persist>. |
|
copy-config |
|
Yes |
The <copy-config> operation is supported for specific combinations of source and target datastores. To use the copy-config operation, the user must belong to a NETCONF system security profile with copy-config enabled for the base-op-authorization. When the specified <configuration-region> is "li", the <source><running/> to <target><startup/> becomes the only valid <copy-config> combination. |
|
No |
The running datastore cannot be a <target> for a <copy-config>. |
|
|
No |
Use <discard-changes>. |
|
|
Yes |
Equivalent to admin save. An index file is also saved in classic management-interface configuration-mode if persist on is configured in the BOF. |
|
|
Yes |
Equivalent to admin save file-url. An index file is also saved in classic management-interface configuration-mode if persist on is configured in the BOF. |
|
|
Yes |
— |
|
|
Yes |
Supported if both source and target are not remote URLs. Only configuration changes are saved; for example, an index file is not saved in classic management-interface configuration-mode even if persist on is configured in the BOF. |
|
|
No |
— |
|
|
Yes |
— |
|
|
Yes |
— |
|
|
No |
Use <commit> instead. |
|
|
No |
— |
|
|
Yes |
Supported in model-driven configuration mode only. |
|
|
Yes |
Supported if both source and target are not remote URLs. Only configuration changes are saved; for example, an index file is not saved in classic management-interface configuration-mode even if persist on is configured in the BOF. |
|
|
Yes |
Supported if both source and target are not remote URLs. |
|
|
No |
— |
|
|
Yes |
— |
|
|
Yes |
— |
|
|
Yes |
— |
|
|
Yes |
Optional. Specify "li", "bof" or "configure". Default, if not specified, is "configure”. Can only be used with the Nokia SR OS modules. Not supported in mixed mode. |
|
|
Yes |
Optional. Specify "li", "bof" or "configure". Default, if not specified, is "configure". Can only be used with the Nokia SR OS modules. Not supported in mixed mode. |
|
kill-session |
|
Yes |
A NETCONF session cannot kill itself. A NETCONF session cannot kill a non-NETCONF session. When a session is killed, any operations pending in that session are discarded. Any locks held by that session are released. Only a NETCONF user that belongs to a profile with base-op-authorization/kill-session enabled, can kill a NETCONF session. |
lock |
|
Yes |
Only a NETCONF user that belongs to a profile with base-op-authorization/lock enabled, can lock a datastore. |
|
Yes |
Locking the <candidate> datastore implicitly locks both the <running> and <candidate> datastores. |
|
|
Yes |
Locking the <running> datastore locks both the <running> and <candidate> datastores. |
|
|
No |
— |
|
|
No |
— |
|
|
Yes |
Optional. Specify "li", "bof" or "configure". Default, if not specified, is "configure". Can only be used with the Nokia SR OS modules. |
|
unlock |
|
Yes |
Only a NETCONF user that belongs to a profile with base-op-authorization/lock enabled, can unlock a datastore. A datastore lock is unlocked when:
Upon unlocking/disconnecting a NETCONF session that had acquired a
datastore lock, SR OS:
|
|
Yes |
— |
|
|
Yes |
— |
|
|
No |
— |
|
|
No |
— |
|
|
Yes |
Optional. Specify "li", "bof" or "configure". Default, if not specified, is "configure". Can only be used with the Nokia SR OS modules. |
|
validate |
|
Yes |
XML content layer only. Only syntax validation is performed. If more than one error exists, SR OS returns multiple errors. No semantic validation is performed. To use the validate operation, the user must belong to a NETCONF system security profile with validate enabled for the base-op-authorization. |
|
Yes |
— |
|
|
Yes |
— |
|
|
No |
— |
|
|
No |
— |
|
|
No |
— |
|
|
Yes |
Optional. Specify "li", "bof" or "configure". Default, if not specified, is "configure". Can only be used with the Nokia SR OS modules. |
|
delete-config |
|
Yes |
To use the delete-config operation, the user must belong to a NETCONF system security profile with delete-config enabled for the base-op-authorization. |
|
Yes |
— |
|
|
Yes |
— |
|
|
No |
— |
|
|
No |
— |
|
discard-changes |
|
Yes |
To use the discard-changes operation, the user must belong to a NETCONF system security profile with discard-changes enabled for the base-op-authorization. |
|
Yes |
Optional. Specify "li", "bof" or "configure". Default, if not specified, is "configure". Can only be used with the Nokia SR OS modules. |
|
create-subscription |
|
Yes |
To use the create-subscription operation, the user must belong to a NETCONF system security profile with create-subscription enabled for the base-op-authorization. The configuration of base-op-authorization create-subscription is not pre-emptive, which means it is checked only at the time of the initial subscription. Configuration changes to the base-op-authorization do not cancel any in-progress subscriptions and operators who successfully subscribed continue to receive messages. |
|
Yes |
Optional |
|
|
Yes |
Optional |
|
|
Yes |
Optional |
|
|
No |
Optional |
|
get-schema |
|
Yes |
To use the get-schema operation, the user must belong to a NETCONF system security profile with get-schema enabled for the base-op-authorization. |
|
Yes |
Mandatory |
|
|
Yes |
Optional |
|
|
Yes |
Optional |
|
get-data |
|
Yes |
To use the get-data operation, the user must belong to a NETCONF system security profile with get-data enabled for the base-op-authorization. |
|
Yes |
Mandatory. The ‟startup” cannot be used. |
|
|
Yes |
Optional |
|
|
Yes |
Optional |
|
|
No |
Optional |
|
|
No |
Optional |
|
|
No |
Optional |
|
|
Yes |
Optional |
|
|
No |
Optional |
|
|
Yes |
Optional. Default if not specified is "configure". Can be "li" or "configure". Can only be used with the Nokia SR OS modules. |
|
action |
(3) |