1 module openflow-types {
2 namespace "urn:opendaylight:openflow:common:types";
5 revision "2013-07-31" {
6 //description "Initial model";
11 range "0..4294967040"; // 0xffffff00 See for actual value
15 typedef special-port-number {
19 //description "Send the packet out the input port. This virtual port must be explicitly used in order to send back out of the input port."
22 //value "4294967289"; // 0xfffffff9;
23 //description "Perform actions in flow table. NB: This can only be the destination port for packet-out messages."
26 //value "4294967290"; // 0xfffffffa;
27 //description "Process with normal L2/L3 switching."
30 //value "4294967291"; // 0xfffffffb;
31 //description "All physical ports except input port and those disabled by STP."
34 //value "4294967292"; // 0xfffffffc;
35 //description "All physical ports except input port."
38 //value "4294967293"; // 0xfffffffd;
39 //description "Send to controller."
42 //value "4294967294"; // 0xfffffffe;
43 //description "Local openflow port."
46 //value "4294967295"; // 0xffffffff;
47 //description "not associated with a physical port."
52 typedef any-port-number {
55 type special-port-number;
60 typedef port-features {
61 ////description "Features of ports available in datapath.";
62 //reference "ofp_port_features";
66 //description "10 Mb half-duplex rate support.";
70 //description "10 Mb full-duplex rate support.";
74 //description "100 Mb half-duplex rate support.";
78 //description "100 Mb full-duplex rate support.";
82 //description "1 Gb half-duplex rate support.";
86 //description "1 Gb full-duplex rate support.";
90 //description "10 Gb full-duplex rate support.";
94 //description "40 Gb full-duplex rate support.";
98 //description "100 Gb full-duplex rate support.";
102 //description "1 Tb full-duplex rate support.";
106 //description "Other rate, not in the list.";
110 //description "Copper medium.";
114 //description "Fiber medium.";
118 //description "Auto-negotiation.";
122 //description "Pause.";
126 //description "Asymmetric pause.";
131 typedef port_config {
133 "Flags to indicate behavior of the physical port. These flags are
134 describe the current configuration and used port_mod message
135 to configure the port's behavior.";
138 //description " Port is administratively down.";
142 //description " Drop all packets received by port.";
146 //description " Drop packets forwarded to port.";
150 //description "Do not send packet-in msgs for port.";
156 typedef ofp_port_state {
158 "Current state of the physical port. These are not configurable from
162 //description "No physical link present.";
166 //description "Port is blocked";
170 //description "Live for Fast Failover Group.";
176 identity match-type {
178 "The match type indicates the match structure (set of fields that compose the
179 match) in use. The match type is placed in the type field at the beginning
180 of all match structures.Extensions that define match types may be
181 published on the ONF wiki. Support for extensions is optional.";
184 identity standard-match-type {
195 identity instruction {