blob: 8daf82f336ea35e930c28cc1f0f96a586f57a230 [file] [log] [blame]
ToineSiebelinkc1183d72023-08-28 15:21:59 +01001module dmi-registry {
2
3 yang-version 1.1;
4
5 namespace "org:onap:cps:ncmp";
6
7 prefix dmi-reg;
8
9 contact "toine.siebelink@est.tech";
10
JvD_Ericssona927b202024-02-16 09:30:45 +000011 revision "2024-02-23" {
12 description
13 "Added data-producer-identifier";
14 }
15
leventecsanyi28b41812023-12-07 14:02:14 +010016 revision "2023-11-27" {
17 description
18 "Added alternate-id";
19 }
20
ToineSiebelinkc1183d72023-08-28 15:21:59 +010021 revision "2023-08-23" {
22 description
leventecsanyi28b41812023-12-07 14:02:14 +010023 "Added module-set-tag";
ToineSiebelinkc1183d72023-08-28 15:21:59 +010024 }
25
26 revision "2022-05-10" {
27 description
leventecsanyi28b41812023-12-07 14:02:14 +010028 "Added data-sync-enabled, sync-state with state, last-sync-time, data-store-sync-state with operational and running syncstate";
ToineSiebelinkc1183d72023-08-28 15:21:59 +010029 }
30
31 revision "2022-02-10" {
32 description
leventecsanyi28b41812023-12-07 14:02:14 +010033 "Added state, lock-reason, lock-reason-details to aid with cmHandle sync and timestamp to aid with retry/timeout scenarios";
ToineSiebelinkc1183d72023-08-28 15:21:59 +010034 }
35
36 revision "2021-12-13" {
37 description
leventecsanyi28b41812023-12-07 14:02:14 +010038 "Added new list of public-properties and additional-properties for a Cm-Handle which are exposed to clients of the NCMP interface";
ToineSiebelinkc1183d72023-08-28 15:21:59 +010039 }
40
41 revision "2021-10-20" {
42 description
43 "Added dmi-data-service-name & dmi-model-service-name to allow separate DMI instances for each responsibility";
44 }
45
46 revision "2021-05-20" {
47 description
48 "Initial Version";
49 }
50
51 grouping LockReason {
52 leaf reason {
53 type string;
54 }
55 leaf details {
56 type string;
57 }
58 }
59
60 grouping SyncState {
61 leaf sync-state {
62 type string;
63 }
64 leaf last-sync-time {
65 type string;
66 }
67 }
68
69 grouping Datastores {
70 container operational {
71 uses SyncState;
72 }
73 container running {
74 uses SyncState;
75 }
76 }
77
78 container dmi-registry {
79 list cm-handles {
80 key "id";
81 leaf id {
82 type string;
83 }
84 leaf dmi-service-name {
85 type string;
86 }
87 leaf dmi-data-service-name {
88 type string;
89 }
90 leaf dmi-model-service-name {
91 type string;
92 }
93 leaf module-set-tag {
94 type string;
95 }
leventecsanyi28b41812023-12-07 14:02:14 +010096 leaf alternate-id {
97 type string;
98 }
JvD_Ericssona927b202024-02-16 09:30:45 +000099 leaf data-producer-identifier {
100 type string;
101 }
ToineSiebelinkc1183d72023-08-28 15:21:59 +0100102
103 list additional-properties {
104 key "name";
105 leaf name {
106 type string;
107 }
108 leaf value {
109 type string;
110 }
111 }
112
113 list public-properties {
114 key "name";
115 leaf name {
116 type string;
117 }
118 leaf value {
119 type string;
120 }
121 }
122
123 container state {
124 leaf cm-handle-state {
125 type string;
126 }
127
128 container lock-reason {
129 uses LockReason;
130 }
131
132 leaf last-update-time {
133 type string;
134 }
135
136 leaf data-sync-enabled {
137 type boolean;
138 default "false";
139 }
140
141 container datastores {
142 uses Datastores;
143 }
144 }
145 }
146 }
147}
leventecsanyi28b41812023-12-07 14:02:14 +0100148