RFC6243RFC Location: https://tools.ietf.org/html/rfc6243 By default, the NETCONF protocol specifies that server will not give data node response with a default value to the client side, However, in some cases, such as operator needs to do some configuration checks, verify that the default value on the device side is consistent with the document, and so on, you need to get the default value on the client side, which defines some behaviors and recommendations for handling default value on the server side. Some of these terms are used:
- Schema default value: Default value defined in the model
- Default Data:server property or data with default value
- Default value: Refers specifically to server-side defined defaults
The protocol defines four modes for getting default value, described below:
Mode name |
Whether you can have a property with default value |
Whether you can get properties that are not default value |
whether Gets the property with schema default value |
description |
all-report |
Yes |
Yes |
N A |
All-report can be understood as there is no so-called default value exists, |
all-report-tagged |
Yes |
is |
NA |
If the property is default value, an XML attribute named default is added to the data model and is set to True |
&nb Sp;trim |
No |
yes |
NA |
only data that is not schema default value is reported |
Exp Licit |
no |
no |
Yes |
only escalate data for schema default value set through client side if the property is set by the server side Sche Ma default value, the property cannot be escalated |
The protocol defines its own capability and can carry attributes urn:ietf:params:netconf:capability:with-defaults:1.0?basic-mode= Explicit indicates that only the explicit mode is supported, and the processing behavior of default value is interpreted urn:ietf:params:netconf:capability as explicit if it is not displayed: With-defaults:1.0?basic-mode=explicit&also-supported=report-all,report-all-tagged indicated support for Explicit,report-all, report-all-tagged mode, the default mode is performed in explicit manner.
RFC6243 netconf With-defaults Study notes