1 module opendaylight-action-types {
2 namespace "urn:opendaylight:action:types";
5 import ietf-inet-types {prefix inet; revision-date "2010-09-24";}
6 import ietf-yang-types {prefix yang; revision-date "2010-09-24";}
7 import opendaylight-l2-types {prefix l2t; revision-date "2013-08-27";}
8 import opendaylight-match-types {prefix match; revision-date "2013-10-26";}
10 revision "2013-11-12" {
11 description "Initial revision of action service";
22 type inet:ipv4-prefix;
27 type inet:ipv6-prefix;
33 grouping action-list {
45 case output-action-case {
46 container output-action {
47 leaf output-node-connector {
59 case controller-action-case {
60 container controller-action {
78 case set-queue-action-case {
79 container set-queue-action {
89 case pop-mpls-action-case {
90 container pop-mpls-action {
92 type uint16; // TODO: define ethertype type
98 case set-mpls-ttl-action-case {
99 container set-mpls-ttl-action {
107 case set-nw-ttl-action-case {
108 container set-nw-ttl-action {
116 case push-pbb-action-case {
117 container push-pbb-action {
119 type uint16; // TODO: define ethertype type
125 case pop-pbb-action-case {
126 container pop-pbb-action {
132 case push-mpls-action-case {
133 container push-mpls-action {
135 type uint16; // TODO: define ethertype type
141 case dec-mpls-ttl-case {
142 container dec-mpls-ttl {
147 case dec-nw-ttl-case {
148 container dec-nw-ttl {
153 case drop-action-case {
154 container drop-action {
159 case flood-action-case {
160 container flood-action {
165 case flood-all-action-case {
166 container flood-all-action {
171 case hw-path-action-case {
172 container hw-path-action {
177 case loopback-action-case {
178 container loopback-action {
183 case pop-vlan-action-case {
184 container pop-vlan-action {
190 case push-vlan-action-case {
191 container push-vlan-action {
193 type uint16; // TODO: define ethertype type
195 leaf tag { // TPID - 16 bits
198 leaf pcp { // PCP - 3 bits
201 leaf cfi { // CFI - 1 bit (drop eligible)
204 leaf vlan-id { // VID - 12 bits
207 // leaf tci { //TCI = [PCP + CFI + VID]
209 // leaf header { //header = [TPID + TCI]
214 case copy-ttl-out-case {
215 container copy-ttl-out {
220 case copy-ttl-in-case {
221 container copy-ttl-in {
226 case set-dl-dst-action-case {
227 container set-dl-dst-action {
229 type yang:mac-address;
235 case set-dl-src-action-case {
236 container set-dl-src-action {
238 type yang:mac-address;
243 case group-action-case {
244 container group-action {
255 case set-dl-type-action-case {
256 container set-dl-type-action {
264 case set-next-hop-action-case {
265 container set-next-hop-action {
271 case set-nw-dst-action-case {
272 container set-nw-dst-action {
278 case set-nw-src-action-case {
279 container set-nw-src-action {
285 case set-nw-tos-action-case {
286 container set-nw-tos-action {
294 case set-tp-dst-action-case {
295 container set-tp-dst-action {
297 type inet:port-number;
302 case set-tp-src-action-case {
303 container set-tp-src-action {
305 type inet:port-number;
310 case set-vlan-cfi-action-case {
311 container set-vlan-cfi-action {
319 case set-vlan-id-action-case {
320 container set-vlan-id-action {
328 case set-vlan-pcp-action-case {
329 container set-vlan-pcp-action {
336 case strip-vlan-action-case {
337 container strip-vlan-action {
341 case sw-path-action-case {
342 container sw-path-action {