cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
81
Views
1
Helpful
2
Replies

NSO get-config mismatch with /ncs:devices/device/config

sm000x
Level 1
Level 1

Hi,

I found a strange problem and I cannot figure out the reason thus need your help.

I have a vendor sends the following capability if <hello>:
<capability>urn:ietf:params:netconf:capability:with-defaults:1.0?basic-mode=report-all</capability>

During NSO sync-from, I do not see NSO sends <with-defaults> with <get-config>,
and I see the vendor replies with ALL default values, which I believe the
vendor is correct according to RFC6243:
============================================
2.1.1 <https://datatracker.ietf.org/doc/html/rfc6243#section-2.1.1>. 'report-all' Basic Mode Retrieval

When data is retrieved from a server using the 'report-all' basic
mode, and the <with-defaults> parameter is not present, all data
nodes MUST be reported.
============================================

I can see the default values in NSO's trace log, however, the default values
are not in /ncs:device/device{devName}/config

For example, I see the <emergency-session-inactivity-timer-duration> in netconf-zauk65dcsmf01.trace:
<dnn>
<name>my-test-dnn</name>
<allowed-dnn-selection-mode>non-subscribed-dnn-allowed</allowed-dnn-selection-mode>
<dnn-restriction>0</dnn-restriction>
<dns-server-configuration>
<primary-ipv4-address>172.26.38.2</primary-ipv4-address>
<primary-ipv6-address>fc00:a:a::400</primary-ipv6-address>
</dns-server-configuration>
<pco-ipv4-link-mtu-size>1430</pco-ipv4-link-mtu-size>
<pco-ipv4-link-mtu-size-roaming>1430</pco-ipv4-link-mtu-size-roaming>
<is-emergency-dnn>false</is-emergency-dnn>
<emergency-session-inactivity-timer-duration>30</emergency-session-inactivity-timer-duration>
</dnn>

However, in /ncs:device/device{zauk65dcsmf01}/config, I only see:
admin@ncs> show configuration devices device zauk65dcsmf01 config smf service-construct dnn my-test-dnn
dns-server-configuration {
primary-ipv4-address 172.26.38.2;
primary-ipv6-address fc00:a:a::400;
}
[ok][2024-11-18 13:57:54]
admin@ncs>

All default values are not shown.
This seems causes later FASTMAP generate "delete" operation for those default values.

Does any one encounter the same issue?

THX
sm000x

1 Accepted Solution

Accepted Solutions

cohult
Cisco Employee
Cisco Employee

Hi, from the NSO CLI, you can use the "details" pipe option to show the default values (if the YANG model defines them). Example:

> show configuration devices device zauk65dcsmf01 config smf service-construct dnn my-test-dnn | details

View solution in original post

2 Replies 2

cohult
Cisco Employee
Cisco Employee

Hi, from the NSO CLI, you can use the "details" pipe option to show the default values (if the YANG model defines them). Example:

> show configuration devices device zauk65dcsmf01 config smf service-construct dnn my-test-dnn | details

Thank you. This works.