blob: 6c6c1609094a3c31ea2d70a009bc25180c866c74 [file] [log] [blame]
Rich Lanec2ee4b82013-04-24 17:12:38 -07001# Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University
2# Copyright (c) 2011, 2012 Open Networking Foundation
3# Copyright (c) 2012, 2013 Big Switch Networks, Inc.
Dan Talaycof6202252013-07-02 01:00:29 -07004# See the file LICENSE.pyloxi which should have been included in the source distribution
Rich Laneb658ddd2013-03-12 10:15:10 -07005
6# Automatically generated by LOXI from template const.py
7# Do not modify
8
9OFP_VERSION = 1
10
11# Identifiers from group macro_definitions
Rich Laneb658ddd2013-03-12 10:15:10 -070012OFP_MAX_TABLE_NAME_LEN = 32
Dan Talaycof6202252013-07-02 01:00:29 -070013OFP_MAX_PORT_NAME_LEN = 16
Rich Lane6f4978c2013-10-20 21:33:52 -070014OFP_TCP_PORT = 6653
15OFP_SSL_PORT = 6653
Dan Talaycof6202252013-07-02 01:00:29 -070016OFP_ETH_ALEN = 6
17OFP_DEFAULT_MISS_SEND_LEN = 128
Rich Lanec2ee4b82013-04-24 17:12:38 -070018OFP_VLAN_NONE = 65535
Dan Talaycof6202252013-07-02 01:00:29 -070019OFPFW_ICMP_TYPE = 64
20OFPFW_ICMP_CODE = 128
21OFP_DL_TYPE_ETH2_CUTOFF = 1536
22OFP_DL_TYPE_NOT_ETH_TYPE = 1535
23OFP_FLOW_PERMANENT = 0
24OFP_DEFAULT_PRIORITY = 32768
25DESC_STR_LEN = 256
26SERIAL_NUM_LEN = 32
Rich Lanec2ee4b82013-04-24 17:12:38 -070027OFPQ_ALL = 4294967295
Dan Talaycof6202252013-07-02 01:00:29 -070028OFPQ_MIN_RATE_UNCFG = 65535
Rich Laneb658ddd2013-03-12 10:15:10 -070029
Rich Lane6f4978c2013-10-20 21:33:52 -070030# Identifiers from group of_bsn_pdu_slot_num_t
31BSN_PDU_SLOT_NUM_ANY = 255
32
33of_bsn_pdu_slot_num_t_map = {
34 255: 'BSN_PDU_SLOT_NUM_ANY',
35}
36
Rich Laneb658ddd2013-03-12 10:15:10 -070037# Identifiers from group ofp_action_type
38OFPAT_OUTPUT = 0
39OFPAT_SET_VLAN_VID = 1
40OFPAT_SET_VLAN_PCP = 2
41OFPAT_STRIP_VLAN = 3
42OFPAT_SET_DL_SRC = 4
43OFPAT_SET_DL_DST = 5
44OFPAT_SET_NW_SRC = 6
45OFPAT_SET_NW_DST = 7
46OFPAT_SET_NW_TOS = 8
47OFPAT_SET_TP_SRC = 9
48OFPAT_SET_TP_DST = 10
49OFPAT_ENQUEUE = 11
Rich Lane6f4978c2013-10-20 21:33:52 -070050OFPAT_EXPERIMENTER = 65535
Rich Laneb658ddd2013-03-12 10:15:10 -070051
52ofp_action_type_map = {
53 0: 'OFPAT_OUTPUT',
54 1: 'OFPAT_SET_VLAN_VID',
55 2: 'OFPAT_SET_VLAN_PCP',
56 3: 'OFPAT_STRIP_VLAN',
57 4: 'OFPAT_SET_DL_SRC',
58 5: 'OFPAT_SET_DL_DST',
59 6: 'OFPAT_SET_NW_SRC',
60 7: 'OFPAT_SET_NW_DST',
61 8: 'OFPAT_SET_NW_TOS',
62 9: 'OFPAT_SET_TP_SRC',
63 10: 'OFPAT_SET_TP_DST',
64 11: 'OFPAT_ENQUEUE',
Rich Lane6f4978c2013-10-20 21:33:52 -070065 65535: 'OFPAT_EXPERIMENTER',
Rich Laneb658ddd2013-03-12 10:15:10 -070066}
67
68# Identifiers from group ofp_bad_action_code
69OFPBAC_BAD_TYPE = 0
70OFPBAC_BAD_LEN = 1
Rich Lane6f4978c2013-10-20 21:33:52 -070071OFPBAC_BAD_EXPERIMENTER = 2
72OFPBAC_BAD_EXPERIMENTER_TYPE = 3
Rich Laneb658ddd2013-03-12 10:15:10 -070073OFPBAC_BAD_OUT_PORT = 4
74OFPBAC_BAD_ARGUMENT = 5
75OFPBAC_EPERM = 6
76OFPBAC_TOO_MANY = 7
77OFPBAC_BAD_QUEUE = 8
78
79ofp_bad_action_code_map = {
80 0: 'OFPBAC_BAD_TYPE',
81 1: 'OFPBAC_BAD_LEN',
Rich Lane6f4978c2013-10-20 21:33:52 -070082 2: 'OFPBAC_BAD_EXPERIMENTER',
83 3: 'OFPBAC_BAD_EXPERIMENTER_TYPE',
Rich Laneb658ddd2013-03-12 10:15:10 -070084 4: 'OFPBAC_BAD_OUT_PORT',
85 5: 'OFPBAC_BAD_ARGUMENT',
86 6: 'OFPBAC_EPERM',
87 7: 'OFPBAC_TOO_MANY',
88 8: 'OFPBAC_BAD_QUEUE',
89}
90
91# Identifiers from group ofp_bad_request_code
92OFPBRC_BAD_VERSION = 0
93OFPBRC_BAD_TYPE = 1
94OFPBRC_BAD_STAT = 2
Rich Lane6f4978c2013-10-20 21:33:52 -070095OFPBRC_BAD_EXPERIMENTER = 3
Rich Laneb658ddd2013-03-12 10:15:10 -070096OFPBRC_BAD_SUBTYPE = 4
97OFPBRC_EPERM = 5
98OFPBRC_BAD_LEN = 6
99OFPBRC_BUFFER_EMPTY = 7
100OFPBRC_BUFFER_UNKNOWN = 8
101
102ofp_bad_request_code_map = {
103 0: 'OFPBRC_BAD_VERSION',
104 1: 'OFPBRC_BAD_TYPE',
105 2: 'OFPBRC_BAD_STAT',
Rich Lane6f4978c2013-10-20 21:33:52 -0700106 3: 'OFPBRC_BAD_EXPERIMENTER',
Rich Laneb658ddd2013-03-12 10:15:10 -0700107 4: 'OFPBRC_BAD_SUBTYPE',
108 5: 'OFPBRC_EPERM',
109 6: 'OFPBRC_BAD_LEN',
110 7: 'OFPBRC_BUFFER_EMPTY',
111 8: 'OFPBRC_BUFFER_UNKNOWN',
112}
113
Rich Lane93b33132014-04-21 12:20:58 -0700114# Identifiers from group ofp_bsn_vport_l2gre_flags
115OF_BSN_VPORT_L2GRE_LOCAL_MAC_IS_VALID = 1
116OF_BSN_VPORT_L2GRE_DSCP_ASSIGN = 2
117OF_BSN_VPORT_L2GRE_DSCP_COPY = 4
118
119ofp_bsn_vport_l2gre_flags_map = {
120 1: 'OF_BSN_VPORT_L2GRE_LOCAL_MAC_IS_VALID',
121 2: 'OF_BSN_VPORT_L2GRE_DSCP_ASSIGN',
122 4: 'OF_BSN_VPORT_L2GRE_DSCP_COPY',
123}
124
Dan Talaycof6202252013-07-02 01:00:29 -0700125# Identifiers from group ofp_bsn_vport_q_in_q_untagged
126OF_BSN_VPORT_Q_IN_Q_UNTAGGED = 65535
127
128ofp_bsn_vport_q_in_q_untagged_map = {
129 65535: 'OF_BSN_VPORT_Q_IN_Q_UNTAGGED',
130}
131
Rich Laned53156a2013-08-05 17:17:33 -0700132# Identifiers from group ofp_bsn_vport_status
133OF_BSN_VPORT_STATUS_OK = 0
134OF_BSN_VPORT_STATUS_FAILED = 1
135
136ofp_bsn_vport_status_map = {
137 0: 'OF_BSN_VPORT_STATUS_OK',
138 1: 'OF_BSN_VPORT_STATUS_FAILED',
139}
140
Rich Laneb658ddd2013-03-12 10:15:10 -0700141# Identifiers from group ofp_capabilities
Rich Lanec2ee4b82013-04-24 17:12:38 -0700142OFPC_FLOW_STATS = 1
143OFPC_TABLE_STATS = 2
144OFPC_PORT_STATS = 4
145OFPC_STP = 8
146OFPC_RESERVED = 16
147OFPC_IP_REASM = 32
148OFPC_QUEUE_STATS = 64
149OFPC_ARP_MATCH_IP = 128
Rich Laneb658ddd2013-03-12 10:15:10 -0700150
151ofp_capabilities_map = {
Rich Lanec2ee4b82013-04-24 17:12:38 -0700152 1: 'OFPC_FLOW_STATS',
153 2: 'OFPC_TABLE_STATS',
154 4: 'OFPC_PORT_STATS',
155 8: 'OFPC_STP',
156 16: 'OFPC_RESERVED',
157 32: 'OFPC_IP_REASM',
158 64: 'OFPC_QUEUE_STATS',
159 128: 'OFPC_ARP_MATCH_IP',
Rich Laneb658ddd2013-03-12 10:15:10 -0700160}
161
162# Identifiers from group ofp_config_flags
163OFPC_FRAG_NORMAL = 0
164OFPC_FRAG_DROP = 1
165OFPC_FRAG_REASM = 2
166OFPC_FRAG_MASK = 3
167
168ofp_config_flags_map = {
169 0: 'OFPC_FRAG_NORMAL',
170 1: 'OFPC_FRAG_DROP',
171 2: 'OFPC_FRAG_REASM',
172 3: 'OFPC_FRAG_MASK',
173}
174
175# Identifiers from group ofp_error_type
176OFPET_HELLO_FAILED = 0
177OFPET_BAD_REQUEST = 1
178OFPET_BAD_ACTION = 2
179OFPET_FLOW_MOD_FAILED = 3
180OFPET_PORT_MOD_FAILED = 4
181OFPET_QUEUE_OP_FAILED = 5
182
183ofp_error_type_map = {
184 0: 'OFPET_HELLO_FAILED',
185 1: 'OFPET_BAD_REQUEST',
186 2: 'OFPET_BAD_ACTION',
187 3: 'OFPET_FLOW_MOD_FAILED',
188 4: 'OFPET_PORT_MOD_FAILED',
189 5: 'OFPET_QUEUE_OP_FAILED',
190}
191
192# Identifiers from group ofp_flow_mod_command
193OFPFC_ADD = 0
194OFPFC_MODIFY = 1
195OFPFC_MODIFY_STRICT = 2
196OFPFC_DELETE = 3
197OFPFC_DELETE_STRICT = 4
198
199ofp_flow_mod_command_map = {
200 0: 'OFPFC_ADD',
201 1: 'OFPFC_MODIFY',
202 2: 'OFPFC_MODIFY_STRICT',
203 3: 'OFPFC_DELETE',
204 4: 'OFPFC_DELETE_STRICT',
205}
206
207# Identifiers from group ofp_flow_mod_failed_code
208OFPFMFC_ALL_TABLES_FULL = 0
209OFPFMFC_OVERLAP = 1
210OFPFMFC_EPERM = 2
211OFPFMFC_BAD_EMERG_TIMEOUT = 3
212OFPFMFC_BAD_COMMAND = 4
213OFPFMFC_UNSUPPORTED = 5
214
215ofp_flow_mod_failed_code_map = {
216 0: 'OFPFMFC_ALL_TABLES_FULL',
217 1: 'OFPFMFC_OVERLAP',
218 2: 'OFPFMFC_EPERM',
219 3: 'OFPFMFC_BAD_EMERG_TIMEOUT',
220 4: 'OFPFMFC_BAD_COMMAND',
221 5: 'OFPFMFC_UNSUPPORTED',
222}
223
224# Identifiers from group ofp_flow_mod_flags
Rich Lanec2ee4b82013-04-24 17:12:38 -0700225OFPFF_SEND_FLOW_REM = 1
226OFPFF_CHECK_OVERLAP = 2
227OFPFF_EMERG = 4
Rich Laneb658ddd2013-03-12 10:15:10 -0700228
229ofp_flow_mod_flags_map = {
Rich Lanec2ee4b82013-04-24 17:12:38 -0700230 1: 'OFPFF_SEND_FLOW_REM',
231 2: 'OFPFF_CHECK_OVERLAP',
232 4: 'OFPFF_EMERG',
Rich Laneb658ddd2013-03-12 10:15:10 -0700233}
234
235# Identifiers from group ofp_flow_removed_reason
236OFPRR_IDLE_TIMEOUT = 0
237OFPRR_HARD_TIMEOUT = 1
238OFPRR_DELETE = 2
239
240ofp_flow_removed_reason_map = {
241 0: 'OFPRR_IDLE_TIMEOUT',
242 1: 'OFPRR_HARD_TIMEOUT',
243 2: 'OFPRR_DELETE',
244}
245
246# Identifiers from group ofp_flow_wildcards
Rich Lanec2ee4b82013-04-24 17:12:38 -0700247OFPFW_IN_PORT = 1
248OFPFW_DL_VLAN = 2
249OFPFW_DL_SRC = 4
Rich Laneb658ddd2013-03-12 10:15:10 -0700250OFPFW_NW_DST_BITS = 6
251OFPFW_NW_SRC_BITS = 6
252OFPFW_NW_SRC_SHIFT = 8
Rich Lanec2ee4b82013-04-24 17:12:38 -0700253OFPFW_DL_DST = 8
Rich Laneb658ddd2013-03-12 10:15:10 -0700254OFPFW_NW_DST_SHIFT = 14
Rich Lanec2ee4b82013-04-24 17:12:38 -0700255OFPFW_DL_TYPE = 16
256OFPFW_NW_PROTO = 32
257OFPFW_TP_SRC = 64
258OFPFW_TP_DST = 128
259OFPFW_NW_SRC_ALL = 8192
260OFPFW_NW_SRC_MASK = 16128
261OFPFW_NW_DST_ALL = 524288
262OFPFW_NW_DST_MASK = 1032192
263OFPFW_DL_VLAN_PCP = 1048576
264OFPFW_NW_TOS = 2097152
265OFPFW_ALL = 4194303
Rich Laneb658ddd2013-03-12 10:15:10 -0700266
267ofp_flow_wildcards_map = {
Rich Lanec2ee4b82013-04-24 17:12:38 -0700268 1: 'OFPFW_IN_PORT',
269 2: 'OFPFW_DL_VLAN',
270 4: 'OFPFW_DL_SRC',
271 8: 'OFPFW_DL_DST',
272 16: 'OFPFW_DL_TYPE',
273 32: 'OFPFW_NW_PROTO',
274 64: 'OFPFW_TP_SRC',
275 128: 'OFPFW_TP_DST',
276 1048576: 'OFPFW_DL_VLAN_PCP',
277 2097152: 'OFPFW_NW_TOS',
Rich Laneb658ddd2013-03-12 10:15:10 -0700278}
279
280# Identifiers from group ofp_hello_failed_code
281OFPHFC_INCOMPATIBLE = 0
282OFPHFC_EPERM = 1
283
284ofp_hello_failed_code_map = {
285 0: 'OFPHFC_INCOMPATIBLE',
286 1: 'OFPHFC_EPERM',
287}
288
Rich Lanec2ee4b82013-04-24 17:12:38 -0700289# Identifiers from group ofp_nicira_controller_role
290NX_ROLE_OTHER = 0
291NX_ROLE_MASTER = 1
292NX_ROLE_SLAVE = 2
293
294ofp_nicira_controller_role_map = {
295 0: 'NX_ROLE_OTHER',
296 1: 'NX_ROLE_MASTER',
297 2: 'NX_ROLE_SLAVE',
298}
299
Rich Laneb658ddd2013-03-12 10:15:10 -0700300# Identifiers from group ofp_packet_in_reason
301OFPR_NO_MATCH = 0
302OFPR_ACTION = 1
303
304ofp_packet_in_reason_map = {
305 0: 'OFPR_NO_MATCH',
306 1: 'OFPR_ACTION',
307}
308
309# Identifiers from group ofp_port
310OFPP_MAX = 0xff00
311OFPP_IN_PORT = 0xfff8
312OFPP_TABLE = 0xfff9
313OFPP_NORMAL = 0xfffa
314OFPP_FLOOD = 0xfffb
315OFPP_ALL = 0xfffc
316OFPP_CONTROLLER = 0xfffd
317OFPP_LOCAL = 0xfffe
318OFPP_NONE = 0xffff
319
320ofp_port_map = {
321 0xff00: 'OFPP_MAX',
322 0xfff8: 'OFPP_IN_PORT',
323 0xfff9: 'OFPP_TABLE',
324 0xfffa: 'OFPP_NORMAL',
325 0xfffb: 'OFPP_FLOOD',
326 0xfffc: 'OFPP_ALL',
327 0xfffd: 'OFPP_CONTROLLER',
328 0xfffe: 'OFPP_LOCAL',
329 0xffff: 'OFPP_NONE',
330}
331
332# Identifiers from group ofp_port_config
Rich Lanec2ee4b82013-04-24 17:12:38 -0700333OFPPC_PORT_DOWN = 1
334OFPPC_NO_STP = 2
335OFPPC_NO_RECV = 4
336OFPPC_NO_RECV_STP = 8
337OFPPC_NO_FLOOD = 16
338OFPPC_NO_FWD = 32
339OFPPC_NO_PACKET_IN = 64
Rich Lane6f4978c2013-10-20 21:33:52 -0700340OFPPC_BSN_MIRROR_DEST = 2147483648
Rich Laneb658ddd2013-03-12 10:15:10 -0700341
342ofp_port_config_map = {
Rich Lanec2ee4b82013-04-24 17:12:38 -0700343 1: 'OFPPC_PORT_DOWN',
344 2: 'OFPPC_NO_STP',
345 4: 'OFPPC_NO_RECV',
346 8: 'OFPPC_NO_RECV_STP',
347 16: 'OFPPC_NO_FLOOD',
348 32: 'OFPPC_NO_FWD',
349 64: 'OFPPC_NO_PACKET_IN',
Rich Lane6f4978c2013-10-20 21:33:52 -0700350 2147483648: 'OFPPC_BSN_MIRROR_DEST',
Rich Laneb658ddd2013-03-12 10:15:10 -0700351}
352
353# Identifiers from group ofp_port_features
Rich Lanec2ee4b82013-04-24 17:12:38 -0700354OFPPF_10MB_HD = 1
355OFPPF_10MB_FD = 2
356OFPPF_100MB_HD = 4
357OFPPF_100MB_FD = 8
358OFPPF_1GB_HD = 16
359OFPPF_1GB_FD = 32
360OFPPF_10GB_FD = 64
361OFPPF_COPPER = 128
362OFPPF_FIBER = 256
363OFPPF_AUTONEG = 512
364OFPPF_PAUSE = 1024
365OFPPF_PAUSE_ASYM = 2048
Rich Laneb658ddd2013-03-12 10:15:10 -0700366
367ofp_port_features_map = {
Rich Lanec2ee4b82013-04-24 17:12:38 -0700368 1: 'OFPPF_10MB_HD',
369 2: 'OFPPF_10MB_FD',
370 4: 'OFPPF_100MB_HD',
371 8: 'OFPPF_100MB_FD',
372 16: 'OFPPF_1GB_HD',
373 32: 'OFPPF_1GB_FD',
374 64: 'OFPPF_10GB_FD',
375 128: 'OFPPF_COPPER',
376 256: 'OFPPF_FIBER',
377 512: 'OFPPF_AUTONEG',
378 1024: 'OFPPF_PAUSE',
379 2048: 'OFPPF_PAUSE_ASYM',
Rich Laneb658ddd2013-03-12 10:15:10 -0700380}
381
382# Identifiers from group ofp_port_mod_failed_code
383OFPPMFC_BAD_PORT = 0
384OFPPMFC_BAD_HW_ADDR = 1
385
386ofp_port_mod_failed_code_map = {
387 0: 'OFPPMFC_BAD_PORT',
388 1: 'OFPPMFC_BAD_HW_ADDR',
389}
390
391# Identifiers from group ofp_port_reason
392OFPPR_ADD = 0
393OFPPR_DELETE = 1
394OFPPR_MODIFY = 2
395
396ofp_port_reason_map = {
397 0: 'OFPPR_ADD',
398 1: 'OFPPR_DELETE',
399 2: 'OFPPR_MODIFY',
400}
401
402# Identifiers from group ofp_port_state
Rich Lanec2ee4b82013-04-24 17:12:38 -0700403OFPPS_LINK_DOWN = 1
Rich Lane6f4978c2013-10-20 21:33:52 -0700404OFPPS_STP_LISTEN = 0
Rich Lanec2ee4b82013-04-24 17:12:38 -0700405OFPPS_STP_LEARN = 256
406OFPPS_STP_FORWARD = 512
407OFPPS_STP_BLOCK = 768
408OFPPS_STP_MASK = 768
Rich Laneb658ddd2013-03-12 10:15:10 -0700409
410ofp_port_state_map = {
Rich Lanec2ee4b82013-04-24 17:12:38 -0700411 1: 'OFPPS_LINK_DOWN',
Rich Lane6f4978c2013-10-20 21:33:52 -0700412 0: 'OFPPS_STP_LISTEN',
Rich Lanec2ee4b82013-04-24 17:12:38 -0700413 256: 'OFPPS_STP_LEARN',
414 512: 'OFPPS_STP_FORWARD',
415 768: 'OFPPS_STP_BLOCK',
416 768: 'OFPPS_STP_MASK',
Rich Laneb658ddd2013-03-12 10:15:10 -0700417}
418
419# Identifiers from group ofp_queue_op_failed_code
420OFPQOFC_BAD_PORT = 0
421OFPQOFC_BAD_QUEUE = 1
422OFPQOFC_EPERM = 2
423
424ofp_queue_op_failed_code_map = {
425 0: 'OFPQOFC_BAD_PORT',
426 1: 'OFPQOFC_BAD_QUEUE',
427 2: 'OFPQOFC_EPERM',
428}
429
430# Identifiers from group ofp_queue_properties
431OFPQT_NONE = 0
432OFPQT_MIN_RATE = 1
433
434ofp_queue_properties_map = {
435 0: 'OFPQT_NONE',
436 1: 'OFPQT_MIN_RATE',
437}
438
439# Identifiers from group ofp_stats_reply_flags
Rich Lanec2ee4b82013-04-24 17:12:38 -0700440OFPSF_REPLY_MORE = 1
Rich Laneb658ddd2013-03-12 10:15:10 -0700441
442ofp_stats_reply_flags_map = {
Rich Lanec2ee4b82013-04-24 17:12:38 -0700443 1: 'OFPSF_REPLY_MORE',
Rich Laneb658ddd2013-03-12 10:15:10 -0700444}
445
Rich Laned9e3f7b2013-11-04 11:40:43 -0800446# Identifiers from group ofp_stats_request_flags
447
448ofp_stats_request_flags_map = {
449}
450
Rich Lane6f4978c2013-10-20 21:33:52 -0700451# Identifiers from group ofp_stats_type
Rich Laneb658ddd2013-03-12 10:15:10 -0700452OFPST_DESC = 0
453OFPST_FLOW = 1
454OFPST_AGGREGATE = 2
455OFPST_TABLE = 3
456OFPST_PORT = 4
457OFPST_QUEUE = 5
Rich Lane6f4978c2013-10-20 21:33:52 -0700458OFPST_EXPERIMENTER = 65535
Rich Laneb658ddd2013-03-12 10:15:10 -0700459
Rich Lane6f4978c2013-10-20 21:33:52 -0700460ofp_stats_type_map = {
Rich Laneb658ddd2013-03-12 10:15:10 -0700461 0: 'OFPST_DESC',
462 1: 'OFPST_FLOW',
463 2: 'OFPST_AGGREGATE',
464 3: 'OFPST_TABLE',
465 4: 'OFPST_PORT',
466 5: 'OFPST_QUEUE',
Rich Lane6f4978c2013-10-20 21:33:52 -0700467 65535: 'OFPST_EXPERIMENTER',
Rich Laneb658ddd2013-03-12 10:15:10 -0700468}
469
470# Identifiers from group ofp_type
471OFPT_HELLO = 0
472OFPT_ERROR = 1
473OFPT_ECHO_REQUEST = 2
474OFPT_ECHO_REPLY = 3
Rich Lane6f4978c2013-10-20 21:33:52 -0700475OFPT_EXPERIMENTER = 4
Rich Laneb658ddd2013-03-12 10:15:10 -0700476OFPT_FEATURES_REQUEST = 5
477OFPT_FEATURES_REPLY = 6
478OFPT_GET_CONFIG_REQUEST = 7
479OFPT_GET_CONFIG_REPLY = 8
480OFPT_SET_CONFIG = 9
481OFPT_PACKET_IN = 10
482OFPT_FLOW_REMOVED = 11
483OFPT_PORT_STATUS = 12
484OFPT_PACKET_OUT = 13
485OFPT_FLOW_MOD = 14
486OFPT_PORT_MOD = 15
487OFPT_STATS_REQUEST = 16
488OFPT_STATS_REPLY = 17
489OFPT_BARRIER_REQUEST = 18
490OFPT_BARRIER_REPLY = 19
491OFPT_QUEUE_GET_CONFIG_REQUEST = 20
492OFPT_QUEUE_GET_CONFIG_REPLY = 21
493
494ofp_type_map = {
495 0: 'OFPT_HELLO',
496 1: 'OFPT_ERROR',
497 2: 'OFPT_ECHO_REQUEST',
498 3: 'OFPT_ECHO_REPLY',
Rich Lane6f4978c2013-10-20 21:33:52 -0700499 4: 'OFPT_EXPERIMENTER',
Rich Laneb658ddd2013-03-12 10:15:10 -0700500 5: 'OFPT_FEATURES_REQUEST',
501 6: 'OFPT_FEATURES_REPLY',
502 7: 'OFPT_GET_CONFIG_REQUEST',
503 8: 'OFPT_GET_CONFIG_REPLY',
504 9: 'OFPT_SET_CONFIG',
505 10: 'OFPT_PACKET_IN',
506 11: 'OFPT_FLOW_REMOVED',
507 12: 'OFPT_PORT_STATUS',
508 13: 'OFPT_PACKET_OUT',
509 14: 'OFPT_FLOW_MOD',
510 15: 'OFPT_PORT_MOD',
511 16: 'OFPT_STATS_REQUEST',
512 17: 'OFPT_STATS_REPLY',
513 18: 'OFPT_BARRIER_REQUEST',
514 19: 'OFPT_BARRIER_REPLY',
515 20: 'OFPT_QUEUE_GET_CONFIG_REQUEST',
516 21: 'OFPT_QUEUE_GET_CONFIG_REPLY',
517}
518