Update dmi-registry yang to support cmHandle State
[cps.git] / cps-ri / src / main / resources / changelog / db / changes / data / yang-models / dmi-registry@2022-02-10.yang
1 module 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
11   revision "2022-02-10" {
12     description
13     "Added State, LockReason, LockReasonDetails to aid with cmHandle sync and timestamp to aid with retry/timeout scenarios";
14   }
15
16   revision "2021-12-13" {
17     description
18     "Added new list of public additional properties for a Cm-Handle which are exposed to clients of the NCMP interface";
19   }
20
21   revision "2021-10-20" {
22     description
23     "Added dmi-data-service-name & dmi-model-service-name to allow separate DMI instances for each responsibility";
24   }
25
26   revision "2021-05-20" {
27     description
28     "Initial Version";
29   }
30
31   container dmi-registry {
32     list cm-handles {
33       key "id";
34       leaf id {
35         type string;
36       }
37       leaf dmi-service-name {
38         type string;
39       }
40       leaf dmi-data-service-name {
41         type string;
42       }
43       leaf dmi-model-service-name {
44         type string;
45       }
46
47       list additional-properties {
48         key "name";
49         leaf name {
50           type string;
51         }
52         leaf value {
53           type string;
54         }
55       }
56
57       list public-properties {
58         key "name";
59         leaf name {
60           type string;
61         }
62         leaf value {
63           type string;
64         }
65       }
66
67       leaf state {
68         type string;
69       }
70       leaf lock-reason {
71         type string;
72       }
73       leaf lock-reason-details {
74         type string;
75       }
76       leaf last-update-time {
77         type string;
78       }
79     }
80   }
81 }