51
51
* time and used to determine the mapping between "enum ofperr" constants and
52
52
* error type/code values used in the OpenFlow protocol:
54
* - The first part of each comment specifies OpenFlow type/code for each
55
* protocol that supports the error.
54
* - The first part of each comment specifies the vendor, OpenFlow versions,
55
* type, and sometimes a code for each protocol that supports the error:
57
* # The vendor is OF for standard OpenFlow error codes. Otherwise it
58
* is one of the *_VENDOR_ID codes defined in openflow-common.h.
60
* # The version can specify a specific OpenFlow version, a version
61
* range delimited by "-", or an open-ended range with "+".
63
* # Standard OpenFlow errors have both a type and a code. Extension
64
* errors generally have only a type, no code. There is one
65
* exception: Nicira extension (NX) errors for OpenFlow 1.0 and 1.1
66
* have both a type and a code. (This means that the version
67
* specification for NX errors may not include version 1.0 or 1.1 (or
68
* both) along with version 1.2 or later, because the requirements
69
* for those versions are different.)
57
71
* - Additional text is a human-readable description of the meaning of each
58
72
* error, used to explain the error to the user. Any text enclosed in
109
123
/* NX1.0(1,512), OF1.1+(1,9). Specified table-id invalid or does not exist.
110
124
* [ A non-standard error (1,512), formerly OFPERR_NXBRC_BAD_TABLE_ID,
111
* is used for OpenFlow 1.0 as there seems to be no appropriste error
125
* is used for OpenFlow 1.0 as there seems to be no appropriate error
112
126
* code defined the specification. ] */
113
127
OFPERR_OFPBRC_BAD_TABLE_ID,
115
129
/* OF1.2+(1,10). Denied because controller is slave. */
116
130
OFPERR_OFPBRC_IS_SLAVE,
118
/* NX1.0(1,514), NX1.1(1,514), OF1.2+(1,11). Invalid port.
119
* [ A non-standard error (1,514), formerly
120
* OFPERR_NXBRC_BAD_IN_PORT is used for OpenFlow 1.0 and 1.1 as there
121
* seems to be no appropriste error code defined the specifications. ] */
132
/* NX1.0-1.1(1,514), OF1.2+(1,11). Invalid port. [ A non-standard error
133
* (1,514), formerly OFPERR_NXBRC_BAD_IN_PORT is used for OpenFlow 1.0 and
134
* 1.1 as there seems to be no appropriate error code defined the
135
* specifications. ] */
122
136
OFPERR_OFPBRC_BAD_PORT,
124
138
/* OF1.2+(1,12). Invalid packet in packet-out. */
127
141
/* OF1.3+(1,13). Multipart request overflowed the assigned buffer. */
128
142
OFPERR_OFPBRC_MULTIPART_BUFFER_OVERFLOW,
130
/* NX1.0+(1,256). Invalid NXM flow match. */
144
/* NX1.0-1.1(1,256), NX1.2+(2). Invalid NXM flow match. */
131
145
OFPERR_NXBRC_NXM_INVALID,
133
/* NX1.0+(1,257). The nxm_type, or nxm_type taken in combination with
134
* nxm_hasmask or nxm_length or both, is invalid or not implemented. */
147
/* NX1.0-1.1(1,257), NX1.2+(3). The nxm_type, or nxm_type taken in
148
* combination with nxm_hasmask or nxm_length or both, is invalid or not
135
150
OFPERR_NXBRC_NXM_BAD_TYPE,
137
/* NX1.0+(1,515). Must-be-zero field had nonzero value. */
152
/* NX1.0-1.1(1,515), NX1.2+(4). Must-be-zero field had nonzero value. */
138
153
OFPERR_NXBRC_MUST_BE_ZERO,
140
/* NX1.0+(1,516). The reason in an ofp_port_status message is not
155
/* NX1.0-1.1(1,516), NX1.2+(5). The reason in an ofp_port_status message
142
157
OFPERR_NXBRC_BAD_REASON,
144
/* NX1.0+(1,517). The 'id' in an NXST_FLOW_MONITOR request is the same as
145
* an existing monitor id (or two monitors in the same NXST_FLOW_MONITOR
146
* request have the same 'id'). */
159
/* NX1.0-1.1(1,517), NX1.2+(6). The 'id' in an NXST_FLOW_MONITOR request
160
* is the same as an existing monitor id (or two monitors in the same
161
* NXST_FLOW_MONITOR request have the same 'id'). */
147
162
OFPERR_NXBRC_FM_DUPLICATE_ID,
149
/* NX1.0+(1,518). The 'flags' in an NXST_FLOW_MONITOR request either does
150
* not specify at least one of the NXFMF_ADD, NXFMF_DELETE, or NXFMF_MODIFY
151
* flags, or specifies a flag bit that is not defined. */
164
/* NX1.0-1.1(1,518), NX1.2+(7). The 'flags' in an NXST_FLOW_MONITOR
165
* request either does not specify at least one of the NXFMF_ADD,
166
* NXFMF_DELETE, or NXFMF_MODIFY flags, or specifies a flag bit that is not
152
168
OFPERR_NXBRC_FM_BAD_FLAGS,
154
/* NX1.0+(1,519). The 'id' in an NXT_FLOW_MONITOR_CANCEL request is not
155
* the id of any existing monitor. */
170
/* NX1.0-1.1(1,519), NX1.2+(8). The 'id' in an NXT_FLOW_MONITOR_CANCEL
171
* request is not the id of any existing monitor. */
156
172
OFPERR_NXBRC_FM_BAD_ID,
158
/* NX1.0+(1,520). The 'event' in an NXST_FLOW_MONITOR reply does not
159
* specify one of the NXFME_ABBREV, NXFME_ADD, NXFME_DELETE, or
174
/* NX1.0-1.1(1,520), NX1.2+(9). The 'event' in an NXST_FLOW_MONITOR reply
175
* does not specify one of the NXFME_ABBREV, NXFME_ADD, NXFME_DELETE, or
160
176
* NXFME_MODIFY. */
161
177
OFPERR_NXBRC_FM_BAD_EVENT,
163
/* NX1.0+(1,521). The error that occurred cannot be represented in this
164
* OpenFlow version. */
179
/* NX1.0-1.1(1,521), NX1.2+(10). The error that occurred cannot be
180
* represented in this OpenFlow version. */
165
181
OFPERR_NXBRC_UNENCODABLE_ERROR,
167
183
/* ## ---------------- ## */
283
303
OFPERR_OFPBMC_BAD_VALUE,
285
/* NX1.0(1,259), NX1.1(1,259), OF1.2+(4,8). Unsupported mask specified in
286
* the match, field is not dl-address or nw-address. */
305
/* NX1.0-1.1(1,259), OF1.2+(4,8). Unsupported mask specified in the match,
306
* field is not dl-address or nw-address. */
287
307
OFPERR_OFPBMC_BAD_MASK,
289
/* NX1.0(1,260), NX1.1(1,260), OF1.2+(4,9). A prerequisite was not met. */
309
/* NX1.0-1.1(1,260), OF1.2+(4,9). A prerequisite was not met. */
290
310
OFPERR_OFPBMC_BAD_PREREQ,
292
/* NX1.0(1,261), NX1.1(1,261), OF1.2+(4,10). A field type was
312
/* NX1.0-1.1(1,261), OF1.2+(4,10). A field type was duplicated. */
294
313
OFPERR_OFPBMC_DUP_FIELD,
296
315
/* OF1.2+(4,11). Permissions error. */
334
353
OFPERR_OFPFMFC_UNSUPPORTED,
336
/* NX1.0(3,256), NX1.1(5,256). Generic hardware error. */
355
/* NX1.0-1.1(5,256), NX1.2+(12). Generic hardware error. */
337
356
OFPERR_NXFMFC_HARDWARE,
339
/* NX1.0(3,257), NX1.1(5,257). A nonexistent table ID was specified in the
340
* "command" field of struct ofp_flow_mod, when the nxt_flow_mod_table_id
341
* extension is enabled. */
358
/* NX1.0-1.1(5,257), NX1.2+(13). A nonexistent table ID was specified in
359
* the "command" field of struct ofp_flow_mod, when the
360
* nxt_flow_mod_table_id extension is enabled. */
342
361
OFPERR_NXFMFC_BAD_TABLE_ID,
344
363
/* ## ---------------------- ## */
388
407
OFPERR_OFPGMFC_BAD_COMMAND,
390
409
/* OF1.2+(6,12). Error in bucket. */
391
OFPERR_OFPGMFC_OFPGMFC_BAD_BUCKET,
410
OFPERR_OFPGMFC_BAD_BUCKET,
393
412
/* OF1.2+(6,13). Error in watch port/group. */
394
OFPERR_OFPGMFC_OFPGMFC_BAD_WATCH,
413
OFPERR_OFPGMFC_BAD_WATCH,
396
415
/* OF1.2+(6,14). Permissions error. */
397
OFPERR_OFPGMFC_OFPGMFC_EPERM,
416
OFPERR_OFPGMFC_EPERM,
399
418
/* ## --------------------- ## */
400
419
/* ## OFPET_PORT_MOD_FAILED ## */