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 opendaylight-port-types {prefix port;revision-date "2013-09-25";}
8 import opendaylight-inventory {prefix inv;revision-date "2013-08-19";}
9 import opendaylight-table-types {prefix table;revision-date "2013-10-26";}
10 import opendaylight-flow-types {prefix flow;revision-date "2013-10-26";}
11 import opendaylight-group-types {prefix group;revision-date "2013-10-18";}
12 import opendaylight-meter-types {prefix meter;revision-date "2013-09-18";}
14 description "Flow Capable Node extensions to the Inventory model";
16 revision "2013-08-19" {
17 description "added descriptions";
20 identity feature-capability {
23 identity flow-feature-capability-flow-stats {
24 description "Flow statistics";
25 base feature-capability;
28 identity flow-feature-capability-table-stats {
29 description "Table statistics";
30 base feature-capability;
33 identity flow-feature-capability-port-stats {
34 description "Port statistics";
35 base feature-capability;
38 identity flow-feature-capability-stp {
39 description "802.1d spanning tree";
40 base feature-capability;
43 identity flow-feature-capability-reserved {
44 description "Reserved, must be zero";
45 base feature-capability;
48 identity flow-feature-capability-ip-reasm {
49 description "Can reassemble IP fragments";
50 base feature-capability;
53 identity flow-feature-capability-queue-stats {
54 description "Queue statistics";
55 base feature-capability;
58 identity flow-feature-capability-arp-match-ip {
59 description "Match IP addresses in ARP pkts";
60 base feature-capability;
63 identity flow-feature-capability-group-stats {
64 description "Group statistics";
65 base feature-capability;
68 identity flow-feature-capability-port-blocked {
69 description "Switch will block looping ports";
70 base feature-capability;
74 description "Features supported by openflow device.";
76 type inv:support-type;
83 description "id for the specific queue";
86 container properties {
97 description "MD-SAL identifier of openflow flow. ";
102 description "Openflow table structure. Here flows are contained.";
110 uses table:table-features;
121 // BE-RECON: Modification for including stale-flow for Reconciliation
135 description "Openflow meter list.";
140 // BE-RECON: Modification for including stale-flow for Reconciliation
147 grouping ip-address-grouping {
148 description "Additional ip address info referring to device interface which connects to controller";
150 description "IP address of a flow capable node.";
151 type inet:ip-address;
156 description "Openflow node structure = device";
176 uses ip-address-grouping;
179 container supported-match-types {
184 type string; // FIXME: Add identity
190 container supported-instructions {
191 list instruction-type {
195 type string; // FIXME: Add identity
200 container supported-actions {
206 type string; // FIXME: Add identity
211 container switch-features {
221 leaf-list capabilities {
223 base feature-capability;
230 grouping flow-node-connector {
231 description "Wrapper of openflow port. TODO::simplify/rename";
232 uses port:flow-capable-port;
235 augment "/inv:nodes/inv:node" {
236 ext:augment-identifier "flow-capable-node";
237 description "Top attach point of openflow node into node inventory tree.";
241 augment "/inv:nodes/inv:node/inv:node-connector" {
242 ext:augment-identifier "flow-capable-node-connector";
243 description "Openflow port into inventory tree.";
244 uses flow-node-connector;
247 augment "/inv:node-updated" {
248 ext:augment-identifier "flow-capable-node-updated";
249 description "Openflow node into node notification.";
253 augment "/inv:node-updated/inv:node-connector" {
254 //ext:identical-augment "flow-capable-node-connector";
255 ext:augment-identifier "flow-capable-node-connector-update-fields";
256 description "Openflow port into node notification.";
257 uses flow-node-connector;
260 augment "/inv:node-connector-updated" {
261 ext:augment-identifier "flow-capable-node-connector-updated";
262 description "Openflow port into node-connector notification.";
263 uses flow-node-connector;
266 augment "/inv:nodes/inv:node/table" {
267 ext:augment-identifier "flow-hash-id-mapping";
268 description "Flow is identified by match and priority on device. So Operational/DS
269 has to simulate that behavior and contract between FlowId and match+priority
270 identification should represent Flow hashCode. Flow has to contain only
271 match priority and flowCookie for create a hashCode";
272 list flow-hash-id-map {