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

Odl-yanglib fails to register provided sources

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • 6.0.0
    • 4.0.3
    • netconf

      Registering any models as schemaSource in odl-yanglib will fail at the line:
      https://github.com/opendaylight/netconf/blob/master/netconf/yanglib/src/main/java/org/opendaylight/yanglib/impl/YangLibProvider.java#L143

      More in provided logs.

      Steps to reproduce:
      I have used absolute path to "netconf/karaf/target/assembly/cache" with one model "ietf-yang-types" as a value for CacheFolder inside YanglibConfig.
      https://github.com/opendaylight/netconf/blob/master/netconf/yanglib/src/main/java/org/opendaylight/yanglib/impl/YangLibProvider.java#L72
      (Just hard-code configuration :

              yanglibConfig = new YanglibConfigBuilder()
                      .setCacheFolder(FOLDER_PATH)
                      .setBindingAddr("localhost")
                      .setBindingAddr("8181")
                      .build(); 

      )

      Odl-yanglib feature was installed with command:
      feature:install odl-netconf-topology odl-restconf-nb odl-yanglib

            ivanhrasko Ivan Hrasko
            PeterSuna Peter Suna
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: