ToineSiebelink | c1183d7 | 2023-08-28 15:21:59 +0100 | [diff] [blame] | 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 | |
JvD_Ericsson | a927b20 | 2024-02-16 09:30:45 +0000 | [diff] [blame] | 11 | revision "2024-02-23" { |
| 12 | description |
| 13 | "Added data-producer-identifier"; |
| 14 | } |
| 15 | |
leventecsanyi | 28b4181 | 2023-12-07 14:02:14 +0100 | [diff] [blame] | 16 | revision "2023-11-27" { |
| 17 | description |
| 18 | "Added alternate-id"; |
| 19 | } |
| 20 | |
ToineSiebelink | c1183d7 | 2023-08-28 15:21:59 +0100 | [diff] [blame] | 21 | revision "2023-08-23" { |
| 22 | description |
leventecsanyi | 28b4181 | 2023-12-07 14:02:14 +0100 | [diff] [blame] | 23 | "Added module-set-tag"; |
ToineSiebelink | c1183d7 | 2023-08-28 15:21:59 +0100 | [diff] [blame] | 24 | } |
| 25 | |
| 26 | revision "2022-05-10" { |
| 27 | description |
leventecsanyi | 28b4181 | 2023-12-07 14:02:14 +0100 | [diff] [blame] | 28 | "Added data-sync-enabled, sync-state with state, last-sync-time, data-store-sync-state with operational and running syncstate"; |
ToineSiebelink | c1183d7 | 2023-08-28 15:21:59 +0100 | [diff] [blame] | 29 | } |
| 30 | |
| 31 | revision "2022-02-10" { |
| 32 | description |
leventecsanyi | 28b4181 | 2023-12-07 14:02:14 +0100 | [diff] [blame] | 33 | "Added state, lock-reason, lock-reason-details to aid with cmHandle sync and timestamp to aid with retry/timeout scenarios"; |
ToineSiebelink | c1183d7 | 2023-08-28 15:21:59 +0100 | [diff] [blame] | 34 | } |
| 35 | |
| 36 | revision "2021-12-13" { |
| 37 | description |
leventecsanyi | 28b4181 | 2023-12-07 14:02:14 +0100 | [diff] [blame] | 38 | "Added new list of public-properties and additional-properties for a Cm-Handle which are exposed to clients of the NCMP interface"; |
ToineSiebelink | c1183d7 | 2023-08-28 15:21:59 +0100 | [diff] [blame] | 39 | } |
| 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 | } |
leventecsanyi | 28b4181 | 2023-12-07 14:02:14 +0100 | [diff] [blame] | 96 | leaf alternate-id { |
| 97 | type string; |
| 98 | } |
JvD_Ericsson | a927b20 | 2024-02-16 09:30:45 +0000 | [diff] [blame] | 99 | leaf data-producer-identifier { |
| 100 | type string; |
| 101 | } |
ToineSiebelink | c1183d7 | 2023-08-28 15:21:59 +0100 | [diff] [blame] | 102 | |
| 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 | } |
leventecsanyi | 28b4181 | 2023-12-07 14:02:14 +0100 | [diff] [blame] | 148 | |