blob: 42ef6e3e13a476b8cc6526312f8519c0af385b29 [file] [log] [blame]
Khen Nursimuluaaac7ee2016-12-11 22:03:52 -05001
2module ietf-adapter {
3
4
5 namespace "urn:opencord:params:xml:ns:voltha:ietf-adapter";
6 prefix adapter;
7
8 import ietf-common { prefix common ; }
9 import ietf-any { prefix any ; }
10
11 organization "CORD";
12 contact
13 " Any name";
14
15 description
16 "";
17
18 revision "2016-11-15" {
19 description "Initial revision.";
20 reference "reference";
21 }
22
23
24 grouping AdapterConfig {
25 description
26 "";
27 leaf log_level {
28 type common:LogLevel;
29
30 description
31 "Common adapter config attributes here";
32 }
33
34 container additional_config {
35 uses any:Any;
36
37 description
38 "Custom (vendor-specific) configuration attributes";
39 }
40
41 }
42
43 grouping Adapter {
44 description
45 "Adapter (software plugin)";
46 leaf id {
47 type string;
48 description
49 "Unique name of adapter, matching the python packate name under
50 voltha adapters.";
51 }
52
53 leaf vendor {
54 type string;
55 description
56 "";
57 }
58
59 leaf version {
60 type string;
61 description
62 "";
63 }
64
65 container config {
66 uses AdapterConfig;
67
68 description
69 "Adapter configuration";
70 }
71
72 container additional_description {
73 uses any:Any;
74
75 description
76 "Custom descriptors and custom configuration";
77 }
78
79 list logical_device_ids {
80 key "logical_device_ids";
81 leaf logical_device_ids {
82 type string;
83 description
84 "Logical devices owned ";
85 }
86 description
87 "Logical devices owned ";
88 }
89
90 }
91
92 grouping Adapters {
93 description
94 "";
95 list items {
96 key "id";
97 uses Adapter;
98
99 description
100 "";
101 }
102
103 }
104
105}