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

Fix odl-yanglib feature usage

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Medium
    • Resolution: Done
    • 4.0.3
    • 3.0.9, 4.0.6, 5.0.2
    • netconf

    Description

      After converting YangLib project to blueprint feature,
      https://git.opendaylight.org/gerrit/c/netconf/+/59530
      Initialization stops working correctly and expect non-empty YanglibConfig provided by blueprint.
      Blueprint creates empty YanglibConfig:
      https://github.com/opendaylight/netconf/blob/master/netconf/yanglib/src/main/resources/OSGI-INF/blueprint/yanglib.xml#L13

      After installing odl-yanglib feature:

      feature:install odl-netconf-topology odl-restconf-nb odl-yanglib

      Initialization will fail at line: https://github.com/opendaylight/netconf/blob/master/netconf/yanglib/src/main/java/org/opendaylight/yanglib/impl/YangLibProvider.java#L86

      With message:

      No cache-folder set in yanglib-config - yang library services will not be available

      More in provided karaf logs.

      After mentioned fix above for adding YangLib project to blueprint, is also not updated documentation for this feature. And is not clear how to use it.
      https://docs.opendaylight.org/projects/netconf/en/latest/user-guide.html#yanglib-remote-repository

      Attachments

        1. karaf.log
          324 kB
          Peter Suna

        Issue Links

          # Subject Branch Project Status CR V

          Activity

            People

              yaroslav.lastivka Yaroslav Lastivka
              PeterSuna Peter Suna
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: