1 module openflow-action {
2 namespace "urn:opendaylight:openflow:common:action";
5 import openflow-types { prefix oft; }
7 revision "2013-07-31" {
8 description "Initial model";
13 description " Output to switch port. ";
16 identity copy_ttl_out {
17 description " Copy TTL "outwards" -- from next-to-outermost to outermost ";
20 identity copy_ttl_in {
21 description " Copy TTL "inwards" -- from outermost to next-to-outermost ";
24 identity set_mpls_ttl {
25 description " MPLS TTL ";
28 identity dec_mpls_ttl {
29 description " Decrement MPLS TTL ";
33 description " Push a new VLAN tag ";
37 description " Pop the outer VLAN tag ";
41 description " Push a new MPLS tag ";
45 description " Pop the outer MPLS tag ";
49 description " Set queue id when outputting to a port ";
53 description " Apply group. ";
57 description " IP TTL. ";
61 description " Decrement IP TTL. ";
65 description " Set a header field using OXM TLV format. ";
69 description " Push a new PBB service tag (I-TAG) ";
73 description " Pop the outer PBB service tag (I-TAG) ";
76 identity experimenter {
83 "Action structure for OFPAT_OUTPUT, which sends packets out 'port'.
84 When the 'port' is the OFPP_CONTROLLER, 'max_len' indicates the max
85 number of bytes to send. A 'max_len' of zero means no bytes of the
86 packet should be sent. A 'max_len' of OFPCML_NO_BUFFER means that
87 the packet is not buffered and the complete packet is to be sent to
90 type oft:any-port-number;
93 description "Maximum packet length to be send to controller.";
96 range "0..65294"; // 0..0xff0e
101 "indicates that no buffering should be
102 applied and the whole packet is to be
103 sent to the controller";
104 value 65535; //0xffff
113 type oft:group-id; // define action group-id type;
123 grouping set-mpls-ttl {
129 grouping set-nw-ttl {
149 type uint16; // TODO: define ethertype type
155 // TODO: figure definition
160 grouping action-header {
166 typedef action-type {
167 /* ofp_action_type */
170 description "Output to switch port.";
173 description "Set the 802.1q VLAN id.";
176 description "Set the 802.1q priority.";
179 description "Strip the 802.1q header.";
182 description "Ethernet source address.";
185 description "Ethernet destination address.";
188 description "IP source address.";
191 description "IP destination address.";
194 description "TCP/UDP source port.";
197 description "TCP/UDP destination port.";
200 value 65535; // 0xffff