1 module flow-node-inventory {
2 namespace "urn:opendaylight:flow:inventory";
5 import yang-ext {prefix ext; revision-date "2013-07-09";}
6 import ietf-inet-types {prefix inet; revision-date "2010-09-24";}
7 import ietf-yang-types {prefix yang; revision-date "2010-09-24";}
8 import opendaylight-port-types {prefix port;revision-date "2013-09-25";}
9 import opendaylight-inventory {prefix inv;revision-date "2013-08-19";}
10 import opendaylight-table-types {prefix table;revision-date "2013-10-26";}
11 import opendaylight-flow-types {prefix flow;revision-date "2013-10-26";}
12 import opendaylight-group-types {prefix group;revision-date "2013-10-18";}
13 import opendaylight-meter-types {prefix meter;revision-date "2013-09-18";}
15 description "Flow Capable Node extensions to the Inventory model";
17 revision "2013-08-19" {
18 description "added descriptions";
21 identity feature-capability {
24 identity flow-feature-capability-flow-stats {
25 description "Flow statistics";
26 base feature-capability;
29 identity flow-feature-capability-table-stats {
30 description "Table statistics";
31 base feature-capability;
34 identity flow-feature-capability-port-stats {
35 description "Port statistics";
36 base feature-capability;
39 identity flow-feature-capability-stp {
40 description "802.1d spanning tree";
41 base feature-capability;
44 identity flow-feature-capability-reserved {
45 description "Reserved, must be zero";
46 base feature-capability;
49 identity flow-feature-capability-ip-reasm {
50 description "Can reassemble IP fragments";
51 base feature-capability;
54 identity flow-feature-capability-queue-stats {
55 description "Queue statistics";
56 base feature-capability;
59 identity flow-feature-capability-arp-match-ip {
60 description "Match IP addresses in ARP pkts";
61 base feature-capability;
64 identity flow-feature-capability-group-stats {
65 description "Group statistics";
66 base feature-capability;
69 identity flow-feature-capability-port-blocked {
70 description "Switch will block looping ports";
71 base feature-capability;
75 description "Features supported by openflow device.";
77 type inv:support-type;
84 description "id for the specific queue";
87 container properties {
98 description "MD-SAL identifier of openflow flow. ";
103 description "Openflow table structure. Here flows are contained.";
111 uses table:table-features;
122 // BE-RECON: Modification for including stale-flow for Reconciliation
136 description "Openflow meter list.";
141 // BE-RECON: Modification for including stale-flow for Reconciliation
148 grouping ip-address-grouping {
149 description "Additional ip address info referring to device interface which connects to controller";
151 description "IP address of a flow capable node.";
152 type inet:ip-address;
156 grouping port-number-grouping {
158 description "Port number of a flow capable node.";
159 type inet:port-number;
164 description "Openflow node structure = device";
184 uses ip-address-grouping;
185 uses port-number-grouping;
187 container supported-match-types {
192 type string; // FIXME: Add identity
198 container supported-instructions {
199 list instruction-type {
203 type string; // FIXME: Add identity
208 container supported-actions {
214 type string; // FIXME: Add identity
219 container switch-features {
229 leaf-list capabilities {
231 base feature-capability;
238 grouping flow-node-connector {
239 description "Wrapper of openflow port. TODO::simplify/rename";
240 uses port:flow-capable-port;
243 grouping snapshot-gathering-status-grouping {
244 description "Basic info about snapshot gathering - timestamps of begin, end.";
246 container snapshot-gathering-status-start {
247 description "gathering start mark";
249 type yang:date-and-time;
253 container snapshot-gathering-status-end {
254 description "gathering end mark + result";
256 type yang:date-and-time;
264 augment "/inv:nodes/inv:node" {
265 ext:augment-identifier "flow-capable-node";
266 description "Top attach point of openflow node into node inventory tree.";
270 augment "/inv:nodes/inv:node/inv:node-connector" {
271 ext:augment-identifier "flow-capable-node-connector";
272 description "Openflow port into inventory tree.";
273 uses flow-node-connector;
276 augment "/inv:node-updated" {
277 ext:augment-identifier "flow-capable-node-updated";
278 description "Openflow node into node notification.";
282 augment "/inv:node-updated/inv:node-connector" {
283 //ext:identical-augment "flow-capable-node-connector";
284 ext:augment-identifier "flow-capable-node-connector-update-fields";
285 description "Openflow port into node notification.";
286 uses flow-node-connector;
289 augment "/inv:node-connector-updated" {
290 ext:augment-identifier "flow-capable-node-connector-updated";
291 description "Openflow port into node-connector notification.";
292 uses flow-node-connector;
295 augment "/inv:nodes/inv:node/table" {
296 ext:augment-identifier "flow-hash-id-mapping";
297 description "Flow is identified by match and priority on device. So Operational/DS
298 has to simulate that behavior and contract between FlowId and match+priority
299 identification should represent Flow hashCode. Flow has to contain only
300 match priority and flowCookie for create a hashCode";
301 list flow-hash-id-map {
312 augment "/inv:nodes/inv:node" {
313 ext:augment-identifier "flow-capable-statistics-gathering-status";
314 description "Placeholder for timestamp of device status snapshot.
315 This is contructed by asynchronous process.";
316 uses snapshot-gathering-status-grouping;