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 {
46 leaf output-node-connector {
57 case controller-action {
71 case set-queue-action {
81 case pop-mpls-action {
83 type uint16; // TODO: define ethertype type
87 case set-mpls-ttl-action {
93 case set-nw-ttl-action {
99 case push-pbb-action {
101 type uint16; // TODO: define ethertype type
105 case pop-pbb-action {
109 case push-mpls-action {
111 type uint16; // TODO: define ethertype type
127 case flood-all-action {
130 case hw-path-action {
133 case loopback-action {
136 case pop-vlan-action {
139 case push-vlan-action {
141 type uint16; // TODO: define ethertype type
143 leaf tag { // TPID - 16 bits
146 leaf pcp { // PCP - 3 bits
149 leaf cfi { // CFI - 1 bit (drop eligible)
152 leaf vlan-id { // VID - 12 bits
155 // leaf tci { //TCI = [PCP + CFI + VID]
157 // leaf header { //header = [TPID + TCI]
167 case set-dl-dst-action {
169 type yang:mac-address;
173 case set-dl-src-action {
175 type yang:mac-address;
188 case set-dl-type-action {
194 case set-next-hop-action {
198 case set-nw-dst-action {
202 case set-nw-src-action{
206 case set-nw-tos-action {
212 case set-tp-dst-action {
214 type inet:port-number;
217 case set-tp-src-action {
219 type inet:port-number;
222 case set-vlan-cfi-action {
228 case set-vlan-id-action {
234 case set-vlan-pcp-action {
240 case sw-path-action {