Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-256

Loading YANG files from local directory when netconf server does not support netconf monitoring

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • netconf
    • None
    • Operating System: Windows
      Platform: PC

    Description

      I have a netconf server that does not advertise any YANG files. As a result of which NetConfDevice.getInitialCapabilities() sets cachedCapabilities as [] since none of the capability has module, revision and "?" & hence FilesystemSchemaCachingProvider never loads any files from cache/schema.

      IMHO it is critical since for any netconf device that doesn't support ietf monitoring, neconf southbound plugin would not be able to read the YANG model and therefore device information can not be accessed using RESTCONF.

      Note: As a workaround, I have hard coded the server capabilities in odl's code to advertise the YANG files I have written to represent my device. I have put these YANG files in below location:
      \\odl-controller\opendaylight\distribution\opendaylight\target\distribution.opendaylight-osgipackage\opendaylight\cache\schema

      Attachments

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

        Activity

          People

            mmarsale@cisco.com Maros Marsalek
            kagupta@ciena.com Kanika Gupta
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: