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";}
9 revision "2013-11-12" {
10 description "Initial revision of action service";
21 type inet:ipv4-prefix;
26 type inet:ipv6-prefix;
32 grouping action-list {
45 leaf-list output-node-connector {
56 case controller-action {
64 case set-queue-action {
70 case pop-mpls-action {
72 type uint16; // TODO: define ethertype type
76 case set-mpls-ttl-action {
82 case set-nw-ttl-action {
88 case push-pbb-action {
90 type uint16; // TODO: define ethertype type
98 case push-mpls-action {
100 type uint16; // TODO: define ethertype type
116 case flood-all-action {
119 case hw-path-action {
122 case loopback-action {
125 case pop-vlan-action {
128 case push-vlan-action {
130 type uint16; // TODO: define ethertype type
132 leaf tag { // TPID - 16 bits
135 leaf pcp { // PCP - 3 bits
138 leaf cfi { // CFI - 1 bit (drop eligible)
141 leaf vlan-id { // VID - 12 bits
144 // leaf tci { //TCI = [PCP + CFI + VID]
146 // leaf header { //header = [TPID + TCI]
156 case set-dl-dst-action {
158 type yang:mac-address;
162 case set-dl-src-action {
164 type yang:mac-address;
173 case set-dl-type-action {
179 case set-next-hop-action {
183 case set-nw-dst-action {
187 case set-nw-src-action{
191 case set-nw-tos-action {
197 case set-tp-dst-action {
199 type inet:port-number;
202 case set-tp-src-action {
204 type inet:port-number;
207 case set-vlan-cfi-action {
213 case set-vlan-id-action {
219 case set-vlan-pcp-action {
225 case sw-path-action {