2 * Copyright (c) 2013 Pantheon Technologies s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 module openflow-action {
10 namespace "urn:opendaylight:openflow:common:action";
13 import ietf-inet-types {prefix inet;}
14 import ietf-yang-types {prefix yang;}
16 import openflow-types { prefix oft; }
17 import openflow-extensible-match { prefix oxm;}
19 revision "2015-02-03" {
20 description "#NOT_PUBLISHED# OpenFlow 1.3 - action model";
23 identity experimenter-action-sub-type {
24 description "The base identity for vendor's actions.";
27 container action-container {
31 grouping actions-grouping {
34 leaf experimenter-id {
35 type oft:experimenter-id;
40 grouping action-grouping {
41 choice action-choice {
42 case output-action-case {
43 container output-action {
52 case copy-ttl-out-case {
55 case copy-ttl-in-case {
58 case set-mpls-ttl-case {
59 container set-mpls-ttl-action {
65 case dec-mpls-ttl-case {
69 container push-vlan-action {
79 container push-mpls-action {
86 container pop-mpls-action {
93 container set-queue-action {
100 container group-action {
106 case set-nw-ttl-case {
107 container set-nw-ttl-action {
113 case dec-nw-ttl-case {
116 case set-field-case {
117 container set-field-action {
118 uses oxm:match-entries-grouping;
122 container push-pbb-action {
132 case set-vlan-vid-case {
133 container set-vlan-vid-action {
139 case set-vlan-pcp-case {
140 container set-vlan-pcp-action {
146 case strip-vlan-case {
149 case set-dl-src-case {
150 container set-dl-src-action {
151 leaf dl-src-address {
152 type yang:mac-address;
156 case set-dl-dst-case {
157 container set-dl-dst-action {
158 leaf dl-dst-address {
159 type yang:mac-address;
163 case set-nw-src-case {
164 container set-nw-src-action {
166 type inet:ipv4-address;
170 case set-nw-dst-case {
171 container set-nw-dst-action {
173 type inet:ipv4-address;
177 case set-nw-tos-case {
178 container set-nw-tos-action {
184 case set-tp-src-case {
185 container set-tp-src-action {
187 type oft:port-number;
191 case set-tp-dst-case {
192 container set-tp-dst-action {
194 type oft:port-number;
199 container enqueue-action {
201 type oft:port-number;