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 container action-types {
43 grouping action-list {
53 case output-action-case {
54 container output-action {
55 leaf output-node-connector {
65 case controller-action-case {
66 container controller-action {
82 case set-queue-action-case {
83 container set-queue-action {
93 case pop-mpls-action-case {
94 container pop-mpls-action {
96 type uint16; // TODO: define ethertype type
102 case set-mpls-ttl-action-case {
103 container set-mpls-ttl-action {
111 case set-nw-ttl-action-case {
112 container set-nw-ttl-action {
120 case push-pbb-action-case {
121 container push-pbb-action {
123 type uint16; // TODO: define ethertype type
129 case pop-pbb-action-case {
130 container pop-pbb-action {
136 case push-mpls-action-case {
137 container push-mpls-action {
139 type uint16; // TODO: define ethertype type
145 case dec-mpls-ttl-case {
146 container dec-mpls-ttl {
151 case dec-nw-ttl-case {
152 container dec-nw-ttl {
157 case drop-action-case {
158 container drop-action {
163 case flood-action-case {
164 container flood-action {
169 case flood-all-action-case {
170 container flood-all-action {
175 case hw-path-action-case {
176 container hw-path-action {
181 case loopback-action-case {
182 container loopback-action {
187 case pop-vlan-action-case {
188 container pop-vlan-action {
194 case push-vlan-action-case {
195 container push-vlan-action {
197 type uint16; // TODO: define ethertype type
199 leaf tag { // TPID - 16 bits
202 leaf pcp { // PCP - 3 bits
205 leaf cfi { // CFI - 1 bit (drop eligible)
208 leaf vlan-id { // VID - 12 bits
211 // leaf tci { //TCI = [PCP + CFI + VID]
213 // leaf header { //header = [TPID + TCI]
218 case copy-ttl-out-case {
219 container copy-ttl-out {
224 case copy-ttl-in-case {
225 container copy-ttl-in {
230 case set-dl-dst-action-case {
231 container set-dl-dst-action {
233 type yang:mac-address;
239 case set-dl-src-action-case {
240 container set-dl-src-action {
242 type yang:mac-address;
247 case group-action-case {
248 container group-action {
259 case set-dl-type-action-case {
260 container set-dl-type-action {
268 case set-next-hop-action-case {
269 container set-next-hop-action {
275 case set-nw-dst-action-case {
276 container set-nw-dst-action {
282 case set-nw-src-action-case {
283 container set-nw-src-action {
289 case set-nw-tos-action-case {
290 container set-nw-tos-action {
298 case set-tp-dst-action-case {
299 container set-tp-dst-action {
301 type inet:port-number;
306 case set-tp-src-action-case {
307 container set-tp-src-action {
309 type inet:port-number;
314 case set-vlan-cfi-action-case {
315 container set-vlan-cfi-action {
323 case set-vlan-id-action-case {
324 container set-vlan-id-action {
332 case set-vlan-pcp-action-case {
333 container set-vlan-pcp-action {
340 case strip-vlan-action-case {
341 container strip-vlan-action {
345 case sw-path-action-case {
346 container sw-path-action {