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

Wrong Map Node type causes Yanglib data merge failure

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • 6.0.0, 5.0.7, 4.0.9
    • None
    • netconf

      The issue caused by SchemaContextHandler (restconf-nb) responsible for setting up the yanglib data ("ietf-yang-library:modules-state"). The data is being assembled as normalized node with explicit setting of modules (submodules) list node as ordered map node.

      On yanglib service data merge the same entities are passed as binded objects, resulting map associated nodes being unordered (as defined in schema). Mapping node type difference causes data merge failure with exception like below (full log attached)

      java.lang.IllegalArgumentException: Require interface org.opendaylight.yangtools.yang.data.api.schema.SystemMapNode, got ImmutableUserMapNode...

      STR:

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

            rkashapov Ruslan Kashapov
            rkashapov Ruslan Kashapov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: