Capabilities
此内容尚不支持你的语言。
This section defines a set of capabilities that AsterNOS has implemented.
AsterNOS NETCONF capability is identified with a URI. The base capabilities are defined using URNs following the method described in RFC 3553[RFC3553]. Capabilities defined in this document have the following format:
urn:ietf:params:netconf:capability:{name}:1.xwhere {name} is the name of the capability.
AsterNOS NETCONF Capabilities are advertised in messages sent by each peer during session establishment. When the NETCONF session is opened, AsterNOS Netconf Server will send a
urn:ietf:params:netconf:base:1.1urn:ietf:params:netconf:capability:writable-running:1.0urn:ietf:params:netconf:capability:candidate:1.0urn:ietf:params:netconf:capability:rollback-on-error:1.0urn:ietf:params:netconf:capability:validate:1.1urn:ietf:params:netconf:capability:startup:1.0urn:ietf:params:xml:ns:yang:ietf-yang-metadata?module=ietf-yang-metadata&revision=2016-08-05urn:ietf:params:xml:ns:yang:1?module=yang&revision=2021-04-07urn:ietf:params:xml:ns:yang:ietf-inet-types?module=ietf-inet-types&revision=2013-07-15urn:ietf:params:xml:ns:yang:ietf-yang-types?module=ietf-yang-types&revision=2013-07-15urn:ietf:params:netconf:capability:yang-library:1.1?revision=2019-01-04&content-id=27urn:ietf:params:xml:ns:netconf:base:1.0?module=ietf-netconf&revision=2013-09-29&features=writablerunning,candidate,confirmed-commit,rollback-on-error,validate,startup,url,xpathurn:ietf:params:xml:ns:yang:ietf-netconf-acm?module=ietf-netconf-acm&revision=2018-02-14urn:ietf:params:netconf:capability:with-defaults:1.0?basic-mode=explicit&also-supported=trim,report-allurn:ietf:params:xml:ns:yang:ietf-netconf-notifications?module=ietf-netconf-notifications&revision=2012-02-06urn:ietf:params:xml:ns:netmod:notification?module=nc-notifications&revision=2008-07-14urn:ietf:params:xml:ns:netconf:notification:1.0?module=notifications&revision=2008-07-14If no protocol version capability in common is found, the Netconf Server will not continue the session.
Writable-Running Capability
Section titled “Writable-Running Capability”Description
Section titled “Description”The: writable-running capability indicates that the AsterNOS device supports direct writes to the
In other words, the device supports
Capability Identifier
Section titled “Capability Identifier”The :writable-running capability is identified by the following capability string:
urn:ietf:params:netconf:capability:writable-running:1.0Rollback-on-Error Capability
Section titled “Rollback-on-Error Capability”Description
Section titled “Description”AsterNOS support an internal-integrated rollback-on-error mechanism, Where when any node in a user request fails, all modifications made to that request will be rolled back, meaning that any failed request will not have any actual impact on the device state.
Dependencies
Section titled “Dependencies”None.
Capability Identifier
Section titled “Capability Identifier”The :rollback-on-error capability is identified by the following capability string:
urn:ietf:params:netconf:capability:rollback-on-error:1.0Validate Capability
Section titled “Validate Capability”Description
Section titled “Description”Validation consists of checking a complete configuration for syntactical and semantic errors before applying the configuration to the device.
AsterNOS support an internal-integrated validate operation and checks syntax errors and business logic verification.
Capability Identifier
Section titled “Capability Identifier”The :validate:1.1 capability is identified by the following capability string:
urn:ietf:params:netconf:capability:validate:1.1Distinct Startup Capability
Section titled “Distinct Startup Capability”Description
Section titled “Description”AsterNOS supports separate running and startup configuration datastores. The startup configuration is loaded by the device when it boots. Operations that affect the running configuration will not be automatically copied to the startup configuration.
Capability Identifier
Section titled “Capability Identifier”The :startup capability is identified by the following capability string:
urn:ietf:params:netconf:capability:startup:1.0URL Capability
Section titled “URL Capability”Description
Section titled “Description”AsterNOS support to use URL as source or target in
Capability Identifier
Section titled “Capability Identifier”The :url capability is identified by the following capability string:
urn\:ietf\:params\:netconf\:capability\:url:1.0?scheme=http,https,file,scp,ftp,sftpNETCONF Monitoring Capability
Section titled “NETCONF Monitoring Capability”Description
Section titled “Description”AsterNOS partly support RFC6022 netconf monitoring. Currently, only part of this module is supported:
| Type | Description |
|---|---|
| /netconf-state/capabilities | Support to get capabilities via |
| /netconf-state/datastores | Support to get all supported datastores name via |
| /netconf-state/schemas | Support to get all supported and valid schemas via |
| return a list of schemas, contain: ‘identifier’, ‘version’, ‘format’, ‘location’ | |
| RPC | Support to get schema content via |
Capability Identifier
Section titled “Capability Identifier”The :ietf-netconf-monitoring capability is identified by the following capability string:
urn:ietf:params:xml:ns:yang:ietf-netconf-monitoringFor more details about NETCONF on AsterNOS, please refer to document NETCONF Examples and NETCONF YANG API Reference.