[NETCONF-840] YANG1.1 modules with submodules unavailabe because ietf-yang-library not used Created: 03/Dec/21 Updated: 23/Jan/24 |
|
| Status: | Confirmed |
| Project: | netconf |
| Component/s: | netconf |
| Affects Version/s: | 1.13.2 |
| Fix Version/s: | 7.0.0, 5.0.10, 6.0.7 |
| Type: | Bug | Priority: | Medium |
| Reporter: | Herbert Eiselt | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | pick-next, pt | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Description |
|
Problem observed with a NETCONF device using RFC7950/YANG1.1 modules from Broadband Forum, like YANG Module "bbf-l2-forwarding@2020-10-13.yang". This module contains submodules via include. Apidoc/explorer can get ietf-yang-library list from server. Netconf trace for connect indicates that submodules of bbf-l2-forwarding@2020-10-13 are not loaded. The expected request of module tree using ietf-yang-library is not visible in the trace and seems not to be used by ODL/netconf. ODL/netconf seems to use the "netconf-state xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring"" schemas to request during startup the YANG modules from device . ODL Versions, used for the test: Aluminium SR3, Silicon SR1, Phosphosrus SR0+SR1 netconf-server:
Problem:
Expected behavior According to RFC7950 last paragraph of chapter 1.1. Summary of Changes from RFC 6020:
o A server advertises support for YANG 1.1 modules by using
ietf-yang-library [
RFC7895
] instead of listing them as
capabilities in the <hello> message.
ODL/netconf should use the ietf-yang-library/RFC8525 function to load and process YANG1.1 module and submodule information. Workarround Force netconf-server to provide all schema information via ietf-netconf-monitoring schema list - including submodules. See log attached: unavailableCapabilities=[(urn:bbf:yang:bbf-l2-forwarding?revision=2020-10-13)bbf-l2-forwarding, (urn:bbf:yang:bbf-xpon?revision=2020-10-13)bbf-xpon, (urn:bbf:yang:bbf-xpongemtcont?revision=2020-10-13)bbf-xpongemtcont, (urn:bbf:yang:bbf-xponani?revision=2020-10-13)bbf-xponani, (urn:bbf:yang:bbf-xponvani?revision=2020-10-13)bbf-xponvani] |