Subscription model with status and predicates 23/133623/11
authoremaclee <lee.anjella.macabuhay@est.tech>
Mon, 13 Mar 2023 09:27:24 +0000 (09:27 +0000)
committerLee Anjella Macabuhay <lee.anjella.macabuhay@est.tech>
Tue, 21 Mar 2023 14:44:41 +0000 (14:44 +0000)
Issue-ID: CPS-1497
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
Change-Id: I4a81389797620eac9b67f31ddcbb4d5168d742ce

cps-ncmp-service/src/main/resources/model/subscription.yang

index ad35844..2d4b207 100644 (file)
@@ -4,9 +4,9 @@ module subscription {
 
     prefix subs;
 
-    revision "2022-10-12" {
+    revision "2023-21-03" {
         description
-        "NCMP subscription model";
+            "NCMP subscription model";
     }
 
     container subscription-registry {
@@ -29,8 +29,23 @@ module subscription {
                 type boolean;
             }
 
-            leaf-list dmi-service-names {
-                type string;
+            container predicates {
+
+                list targetCmHandles {
+                    key "cmHandleId";
+
+                    leaf cmHandleId {
+                      type string;
+                    }
+
+                    leaf status {
+                      type string;
+                    }
+                }
+
+                leaf datastore {
+                    type string;
+                }
             }
 
         }