blob: 6c65d4d498a381c6889e477c88225bf8d374a9b8 [file] [log] [blame]
Khen Nursimuluaaac7ee2016-12-11 22:03:52 -05001
2module ietf-logical_device {
3
4
5 namespace "urn:opencord:params:xml:ns:voltha:ietf-logical_device";
6 prefix logical_device;
7
8 import ietf-openflow_13 { prefix openflow_13 ; }
9
10 organization "CORD";
11 contact
12 " Any name";
13
14 description
15 "";
16
17 revision "2016-11-15" {
18 description "Initial revision.";
19 reference "reference";
20 }
21
22
23 grouping LogicalPort {
24 description
25 "";
26 leaf id {
27 type string;
28 description
29 "";
30 }
31
32 container ofp_port {
33 uses openflow_13:ofp_port;
34
35 description
36 "";
37 }
38
39 leaf device_id {
40 type string;
41 description
42 "";
43 }
44
45 leaf device_port_no {
46 type uint32;
47 description
48 "";
49 }
50
51 leaf root_port {
52 type boolean;
53 description
54 "";
55 }
56
57 }
58
59 grouping LogicalPorts {
60 description
61 "";
62 list items {
63 key "id";
64 uses LogicalPort;
65
66 description
67 "";
68 }
69
70 }
71
72 grouping LogicalDevice {
73 description
74 "";
75 leaf id {
76 type string;
77 description
78 "unique id of logical device";
79 }
80
81 leaf datapath_id {
82 type uint64;
83 description
84 "unique datapath id for the logical device (used by the SDN controller)";
85 }
86
87 container desc {
88 uses openflow_13:ofp_desc;
89
90 description
91 "device description";
92 }
93
94 container switch_features {
95 uses openflow_13:ofp_switch_features;
96
97 description
98 "device features";
99 }
100
101 leaf root_device_id {
102 type string;
103 description
104 "name of the root device anchoring logical device";
105 }
106
107 list ports {
108 key "id";
109 uses LogicalPort;
110
111 description
112 "logical device ports";
113 }
114
115 container flows {
116 uses openflow_13:Flows;
117
118 description
119 "flows configured on the logical device";
120 }
121
122 container flow_groups {
123 uses openflow_13:FlowGroups;
124
125 description
126 "flow groups configured on the logical device";
127 }
128
129 }
130
131 grouping LogicalDevices {
132 description
133 "";
134 list items {
135 key "id";
136 uses LogicalDevice;
137
138 description
139 "";
140 }
141
142 }
143
144}