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 {
57 case controller-action-case {
58 container controller-action {
74 case set-queue-action-case {
75 container set-queue-action {
85 case pop-mpls-action-case {
86 container pop-mpls-action {
88 type uint16; // TODO: define ethertype type
94 case set-mpls-ttl-action-case {
95 container set-mpls-ttl-action {
103 case set-nw-ttl-action-case {
104 container set-nw-ttl-action {
112 case push-pbb-action-case {
113 container push-pbb-action {
115 type uint16; // TODO: define ethertype type
121 case pop-pbb-action-case {
122 container pop-pbb-action {
128 case push-mpls-action-case {
129 container push-mpls-action {
131 type uint16; // TODO: define ethertype type
137 case dec-mpls-ttl-case {
138 container dec-mpls-ttl {
143 case dec-nw-ttl-case {
144 container dec-nw-ttl {
149 case drop-action-case {
150 container drop-action {
155 case flood-action-case {
156 container flood-action {
161 case flood-all-action-case {
162 container flood-all-action {
167 case hw-path-action-case {
168 container hw-path-action {
173 case loopback-action-case {
174 container loopback-action {
179 case pop-vlan-action-case {
180 container pop-vlan-action {
186 case push-vlan-action-case {
187 container push-vlan-action {
189 type uint16; // TODO: define ethertype type
191 leaf tag { // TPID - 16 bits
194 leaf pcp { // PCP - 3 bits
197 leaf cfi { // CFI - 1 bit (drop eligible)
200 leaf vlan-id { // VID - 12 bits
203 // leaf tci { //TCI = [PCP + CFI + VID]
205 // leaf header { //header = [TPID + TCI]
210 case copy-ttl-out-case {
211 container copy-ttl-out {
216 case copy-ttl-in-case {
217 container copy-ttl-in {
222 case set-dl-dst-action-case {
223 container set-dl-dst-action {
225 type yang:mac-address;
231 case set-dl-src-action-case {
232 container set-dl-src-action {
234 type yang:mac-address;
239 case group-action-case {
240 container group-action {
251 case set-dl-type-action-case {
252 container set-dl-type-action {
260 case set-next-hop-action-case {
261 container set-next-hop-action {
267 case set-nw-dst-action-case {
268 container set-nw-dst-action {
274 case set-nw-src-action-case {
275 container set-nw-src-action {
281 case set-nw-tos-action-case {
282 container set-nw-tos-action {
290 case set-tp-dst-action-case {
291 container set-tp-dst-action {
293 type inet:port-number;
298 case set-tp-src-action-case {
299 container set-tp-src-action {
301 type inet:port-number;
306 case set-vlan-cfi-action-case {
307 container set-vlan-cfi-action {
315 case set-vlan-id-action-case {
316 container set-vlan-id-action {
324 case set-vlan-pcp-action-case {
325 container set-vlan-pcp-action {
332 case strip-vlan-action-case {
333 container strip-vlan-action {
337 case sw-path-action-case {
338 container sw-path-action {