Populate restconf-state/streams
[netconf.git] / restconf / restconf-nb / src / main / java / org / opendaylight / restconf / nb / rfc8040 / rests / services / impl / RestconfInvokeOperationsServiceImpl.java
index ba346794eeba7cd17ea6524ac0711f55f36737e4..10bc8c5cf4180447e3e6e3c7434b75631e9c72af 100644 (file)
@@ -160,13 +160,14 @@ public final class RestconfInvokeOperationsServiceImpl {
         if (mountPoint == null) {
             // Hacked-up integration of streams
             if (CreateDataChangeEventSubscription.QNAME.equals(type)) {
-                return listenersBroker.createDataChangeNotifiStream(databindProvider, input,
+                return listenersBroker.createDataChangeNotifiStream(databindProvider, uriInfo, input,
                     localDatabind.modelContext());
             } else if (CreateNotificationStream.QNAME.equals(type)) {
-                return listenersBroker.createNotificationStream(databindProvider, input, localDatabind.modelContext());
+                return listenersBroker.createNotificationStream(databindProvider, uriInfo, input,
+                    localDatabind.modelContext());
             } else if (SubscribeDeviceNotification.QNAME.equals(type)) {
-                return listenersBroker.createDeviceNotificationStream(input,
-                    listenersBroker.prepareUriByStreamName(uriInfo, "").toString(), mountPointService);
+                return listenersBroker.createDeviceNotificationStream(uriInfo, input, localDatabind.modelContext(),
+                    mountPointService);
             }
         }