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 | } | ||||
halil.cakal | d789956 | 2023-07-13 11:28:18 +0100 | [diff] [blame^] | 44 | |
45 | leaf details { | ||||
46 | type string; | ||||
47 | } | ||||
emaclee | 99d03a6 | 2023-03-13 09:27:24 +0000 | [diff] [blame] | 48 | } |
49 | |||||
50 | leaf datastore { | ||||
51 | type string; | ||||
52 | } | ||||
emaclee | 02bffef | 2023-02-09 15:17:13 +0000 | [diff] [blame] | 53 | } |
54 | |||||
emaclee | f6f16f5 | 2023-01-25 12:18:15 +0000 | [diff] [blame] | 55 | } |
56 | } | ||||
57 | } |