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

YangLib: missing mandatory descendant "namespace"

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Medium
    • Resolution: Unresolved
    • None
    • None
    • netconf

    Description

      Currently, we do not set namespace field for models we are writing into ietf-yang-library's modules state. Thus we are getting exception during runtime:

      java.lang.IllegalArgumentException: Node (urn:ietf:params:xml:ns:yang:ietf-yang-library?revision=2019-01-04)module[{(urn:ietf:params:xml:ns:yang:ietf-yang-library?revision=2019-01-04)name=ietf-inet-types, (urn:ietf:params:xml:ns:yang:ietf-yang-library?revision=2019-01-04)revision=2010-09-24}] is missing mandatory descendant /(urn:ietf:params:xml:ns:yang:ietf-yang-library?revision=2019-01-04)namespace

      See karaf.log for details.

      The production logic is in org.opendaylight.yanglib.impl.YangLibProviderClass.

      Steps to reproduce:

      • start karaf
      • feature:install odl-yanglib
      • copy any yang file to karaf_home/cache/schema
      • restart karaf

      Attachments

        1. karaf.log
          572 kB
          Ivan Hrasko

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              ivanhrasko Ivan Hrasko
              ivanhrasko Ivan Hrasko
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: