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

Mountpoint created using mdsal DOM API can't be reached by restconf

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Medium Medium
    • Neon
    • Neon
    • restconf-nb
    • None
    • Master branch (neon)

      restconf version 1.9.0-SNAPSHOT

      In jsonrpc project, we are creating mountpoints using

       

      final DOMMountPointService.DOMMountPointBuilder mountBuilder = mountService.createMountPoint(biPath);

      mountBuilder.addService(DOMDataBroker.class, rpcDataBroker);

      we recently switched to md-sal version of DOMDataBroker (previously org.opendaylight.controller.md.sal.dom.api.DOMDataBroker - it is deprecated for a while)

       

      Now I can't access that using restconf, eg :

      PUT http://localhost:8181/restconf/config/jsonrpc:config/configured-endpoints/something/yang-ext:mount/prefix:something/xyz

      2018-10-05 15:23:26,661 | WARN  | tp1336482246-114 | BrokerFacade                     | 268 - org.opendaylight.netconf.restconf-nb-bierman02 - 1.9.0.SNAPSHOT | DOM data broker service is not available for mount point /(some-namespace?revision=2018-09-08)something/[\{(some-namespace?revision=2018-09-08)entity=xyz}]

       

      Problem seems to be that BrokerFacade is checking for "old" API only:

       

       33 import org.opendaylight.controller.md.sal.dom.api.DOMDataBroker;

      ...

       275         final Optional<DOMDataBroker> domDataBrokerService = mountPoint.getService(DOMDataBroker.class);

       

      Is there something we can do or should we switch back to deprecated API?

       

       

            JMorvay Jakub Morvay
            rkosegi Richard Kosegi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: