emaclee | f6f16f5 | 2023-01-25 12:18:15 +0000 | [diff] [blame] | 1 | module subscription { |
2 | yang-version 1.1; | ||||
3 | namespace "org:onap:ncmp:subscription"; | ||||
4 | |||||
5 | prefix subs; | ||||
6 | |||||
emaclee | 9c12661 | 2023-04-16 17:48:15 +0100 | [diff] [blame] | 7 | revision "2023-03-21" { |
emaclee | f6f16f5 | 2023-01-25 12:18:15 +0000 | [diff] [blame] | 8 | description |
emaclee | 99d03a6 | 2023-03-13 09:27:24 +0000 | [diff] [blame] | 9 | "NCMP subscription model"; |
emaclee | f6f16f5 | 2023-01-25 12:18:15 +0000 | [diff] [blame] | 10 | } |
11 | |||||
12 | container subscription-registry { | ||||
13 | list subscription { | ||||
lukegleeson | 5201f51 | 2023-03-23 17:36:15 +0000 | [diff] [blame] | 14 | key "clientID subscriptionName"; |
emaclee | f6f16f5 | 2023-01-25 12:18:15 +0000 | [diff] [blame] | 15 | |
16 | leaf clientID { | ||||
17 | type string; | ||||
18 | } | ||||
19 | |||||
lukegleeson | 5201f51 | 2023-03-23 17:36:15 +0000 | [diff] [blame] | 20 | leaf subscriptionName { |
emaclee | f6f16f5 | 2023-01-25 12:18:15 +0000 | [diff] [blame] | 21 | type string; |
22 | } | ||||
23 | |||||
24 | leaf topic { | ||||
25 | type string; | ||||
26 | } | ||||
27 | |||||
28 | leaf isTagged { | ||||
29 | type boolean; | ||||
30 | } | ||||
emaclee | 02bffef | 2023-02-09 15:17:13 +0000 | [diff] [blame] | 31 | |
emaclee | 99d03a6 | 2023-03-13 09:27:24 +0000 | [diff] [blame] | 32 | container predicates { |
33 | |||||
34 | list targetCmHandles { | ||||
35 | key "cmHandleId"; | ||||
36 | |||||
37 | leaf cmHandleId { | ||||
38 | type string; | ||||
39 | } | ||||
40 | |||||
41 | leaf status { | ||||
42 | type string; | ||||
43 | } | ||||
44 | } | ||||
45 | |||||
46 | leaf datastore { | ||||
47 | type string; | ||||
48 | } | ||||
emaclee | 02bffef | 2023-02-09 15:17:13 +0000 | [diff] [blame] | 49 | } |
50 | |||||
emaclee | f6f16f5 | 2023-01-25 12:18:15 +0000 | [diff] [blame] | 51 | } |
52 | } | ||||
53 | } |