summaryrefslogtreecommitdiffstats
path: root/cps-ncmp-service/src/main/resources/models/subscription.yang
diff options
context:
space:
mode:
authorToineSiebelink <toine.siebelink@est.tech>2023-08-24 10:29:34 +0100
committerToineSiebelink <toine.siebelink@est.tech>2023-08-24 17:25:16 +0100
commit4c5740094a9e7f84b72e79f691a34babbf6be344 (patch)
tree850e038ace13a0ec40dae8fdc9fe54686d149dd7 /cps-ncmp-service/src/main/resources/models/subscription.yang
parent7a9770088999e03f743fbea9c945e8c08a3f47b6 (diff)
Extend model loader to support model-upgrade (part 1)
- refactor existign code for easier extension (no code changes yet, just want to review refactor in this first patch...) - changed log level of some (error) logging Issue-ID: CPS-1804 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: I234ad6c4057e9447cd39a83b8f48799918ca6b7f
Diffstat (limited to 'cps-ncmp-service/src/main/resources/models/subscription.yang')
-rw-r--r--cps-ncmp-service/src/main/resources/models/subscription.yang57
1 files changed, 57 insertions, 0 deletions
diff --git a/cps-ncmp-service/src/main/resources/models/subscription.yang b/cps-ncmp-service/src/main/resources/models/subscription.yang
new file mode 100644
index 000000000..7096c18ab
--- /dev/null
+++ b/cps-ncmp-service/src/main/resources/models/subscription.yang
@@ -0,0 +1,57 @@
+module subscription {
+ yang-version 1.1;
+ namespace "org:onap:ncmp:subscription";
+
+ prefix subs;
+
+ revision "2023-03-21" {
+ description
+ "NCMP subscription model";
+ }
+
+ container subscription-registry {
+ list subscription {
+ key "clientID subscriptionName";
+
+ leaf clientID {
+ type string;
+ }
+
+ leaf subscriptionName {
+ type string;
+ }
+
+ leaf topic {
+ type string;
+ }
+
+ leaf isTagged {
+ type boolean;
+ }
+
+ container predicates {
+
+ list targetCmHandles {
+ key "cmHandleId";
+
+ leaf cmHandleId {
+ type string;
+ }
+
+ leaf status {
+ type string;
+ }
+
+ leaf details {
+ type string;
+ }
+ }
+
+ leaf datastore {
+ type string;
+ }
+ }
+
+ }
+ }
+} \ No newline at end of file