1 module opendaylight-flow-types {
2 namespace "urn:opendaylight:flow:types";
5 import ietf-inet-types {prefix inet;}
6 import opendaylight-match-types {prefix match;}
7 import ietf-yang-types {prefix yang;}
8 import opendaylight-l2-types {prefix l2t;}
10 revision "2013-10-26" {
11 description "Initial revision of flow service";
20 grouping action-list {
34 type inet:ipv4-prefix;
39 type inet:ipv6-prefix;
45 grouping instruction-list {
55 grouping instruction {
96 leaf-list output-node-connector {
107 case controller-action {
115 case set-queue-action {
121 case pop-mpls-action {
123 type uint16; // TODO: define ethertype type
127 case set-mpls-ttl-action {
133 case set-nw-ttl-action {
139 case push-pbb-action {
141 type uint16; // TODO: define ethertype type
145 case pop-pbb-action {
149 case push-mpls-action {
151 type uint16; // TODO: define ethertype type
167 case flood-all-action {
170 case hw-path-action {
173 case loopback-action {
176 case pop-vlan-action {
179 case push-vlan-action {
180 leaf tag { // TPID - 16 bits
183 leaf pcp { // PCP - 3 bits
186 leaf cfi { // CFI - 1 bit (drop eligible)
189 leaf vlan-id { // VID - 12 bits
192 // leaf tci { //TCI = [PCP + CFI + VID]
194 // leaf header { //header = [TPID + TCI]
204 case set-dl-dst-action {
206 type yang:mac-address;
210 case set-dl-src-action {
212 type yang:mac-address;
221 case set-dl-type-action {
227 case set-next-hop-action {
231 case set-nw-dst-action {
235 case set-nw-src-action{
239 case set-nw-tos-action {
245 case set-tp-dst-action {
247 type inet:port-number;
250 case set-tp-src-action {
252 type inet:port-number;
255 case set-vlan-cfi-action {
261 case set-vlan-id-action {
267 case set-vlan-pcp-action {
273 case sw-path-action {
278 typedef flow-mod-flags {
292 container instructions {
293 uses instruction-list;
312 leaf container-name {
345 grouping flow-statistics {
364 grouping flow-table-statistics {