[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: File [NETCONF-840] Steps to reproduce.odt     Zip Archive files840.zip     File karaf.log    

 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:

  • The server does not exposes the submodules into the list of netconf-state xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring" schemas.
  • According to rfc8525/rfc7950 the YANG1.1 modules are not listed in hello message.
  • Server is providing yang-library in hello
    • with rfc8525 content-id and not using module-set-id module-set-id
    • <capability>urn:ietf:params:netconf:capability:yang-library:1.1?revision=2019-01-04&amp;content-id=82</capability>

Problem: 

  • Module "bbf-l2-forwarding@2020-10-13.yang" and all  YANG1.1 modules, using submodules are marked as unavailable.

Expected behavior

According to RFC7950 last paragraph of chapter 1.1. Summary of Changes from RFC 6020:
The following changes have been done to the NETCONF mapping:

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]

Generated at Wed Feb 07 20:16:02 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.