Uploaded image for project: 'netconf'
  1. netconf
  2. NETCONF-840

YANG1.1 modules with submodules unavailabe because ietf-yang-library not used

XMLWordPrintable

      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]

        1. [NETCONF-840] Steps to reproduce.odt
          20 kB
        2. files840.zip
          71 kB
        3. karaf.log
          567 kB

            rovarga Robert Varga
            highstreetherbert Herbert Eiselt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: