Bug 7686 - Make notifications defined by yangs automatic loaded
[netconf.git] / restconf / sal-rest-connector / src / main / java / org / opendaylight / restconf / restful / utils / RestconfStreamsConstants.java
index c5dc5d251334c8cf953427671dcb218aabd7b206..252ec781ba7b96e31529724123456b159d62962d 100644 (file)
@@ -59,6 +59,18 @@ public final class RestconfStreamsConstants {
 
     public static final String SCHEMA_SUBSCIBRE_URI = "ws";
 
+    public static final CharSequence DATA_SUBSCR = "data-change-event-subscription";
+    public static final CharSequence CREATE_DATA_SUBSCR = "create-" + DATA_SUBSCR;
+
+    public static final CharSequence NOTIFICATION_STREAM = "notification-stream";
+    public static final CharSequence CREATE_NOTIFICATION_STREAM = "create-" + NOTIFICATION_STREAM;
+
+    public static final String STREAMS_PATH = "ietf-restconf-monitoring:restconf-state/streams";
+    public static final String STREAM_PATH_PART = "/stream=";
+    public static final String STREAM_PATH = STREAMS_PATH + STREAM_PATH_PART;
+    public static final String STREAM_ACCESS_PATH_PART = "/access=";
+    public static final String STREAM_LOCATION_PATH_PART = "/location";
+
     static {
         Date eventSubscriptionAugRevision;
         try {
@@ -70,7 +82,8 @@ public final class RestconfStreamsConstants {
         }
         SAL_REMOTE_AUGMENT = QNameModule.create(NAMESPACE_EVENT_SUBSCRIPTION_AUGMENT, eventSubscriptionAugRevision);
         SAL_REMOTE_AUG_IDENTIFIER = new YangInstanceIdentifier.AugmentationIdentifier(Sets
-                .newHashSet(QName.create(SAL_REMOTE_AUGMENT, "scope"), QName.create(SAL_REMOTE_AUGMENT, "datastore")));
+                .newHashSet(QName.create(SAL_REMOTE_AUGMENT, "scope"), QName.create(SAL_REMOTE_AUGMENT, "datastore"),
+                        QName.create(SAL_REMOTE_AUGMENT, "notification-output-type")));
     }
 
     private RestconfStreamsConstants() {