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

Restconf fails to deserialize URL if leafref from external module is present

XMLWordPrintable

      Issue similar to NETCONF-382, but applies to leafrefs.

       

      Restconf is using global schema context to deserialize external leafrefs.

      For URLs such as:

      /restconf/config/network-topology:network-topology/topology/topology-netconf/node/vpp/yang-ext:mount/openconfig-network-instance:network-instances/network-instance/global-bgp

      where global-bgp is leafref and openconfig-network-instance is not present in global schema context,

      restconf fails with error:

       

      java.lang.IllegalArgumentException: Module reference cannot be NULL

          at com.google.common.base.Preconditions.checkArgument(Preconditions.java:134)
          at org.opendaylight.yangtools.yang.model.util.SchemaContextUtil.findDataSchemaNode(SchemaContextUtil.java:125)
          at org.opendaylight.yangtools.yang.model.util.SchemaContextUtil.getBaseTypeForLeafRef(SchemaContextUtil.java:659)
          at org.opendaylight.netconf.sal.restconf.impl.ControllerContext.addKeyValue(ControllerContext.java:771)

       

       

            mgradzki Marek Gradzki
            mgradzki Marek Gradzki
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: