William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: voltha_protos/openflow_13.proto |
| 3 | |
| 4 | package openflow_13 |
| 5 | |
| 6 | import ( |
| 7 | fmt "fmt" |
| 8 | proto "github.com/golang/protobuf/proto" |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 9 | _ "google.golang.org/genproto/googleapis/api/annotations" |
| 10 | math "math" |
| 11 | ) |
| 12 | |
| 13 | // Reference imports to suppress errors if they are not otherwise used. |
| 14 | var _ = proto.Marshal |
| 15 | var _ = fmt.Errorf |
| 16 | var _ = math.Inf |
| 17 | |
| 18 | // This is a compile-time assertion to ensure that this generated file |
| 19 | // is compatible with the proto package it is being compiled against. |
| 20 | // A compilation error at this line likely means your copy of the |
| 21 | // proto package needs to be updated. |
| 22 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| 23 | |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 24 | // Port numbering. Ports are numbered starting from 1. |
| 25 | type OfpPortNo int32 |
| 26 | |
| 27 | const ( |
| 28 | OfpPortNo_OFPP_INVALID OfpPortNo = 0 |
| 29 | // Maximum number of physical and logical switch ports. |
| 30 | OfpPortNo_OFPP_MAX OfpPortNo = 2147483392 |
| 31 | // Reserved OpenFlow Port (fake output "ports"). |
| 32 | OfpPortNo_OFPP_IN_PORT OfpPortNo = 2147483640 |
| 33 | OfpPortNo_OFPP_TABLE OfpPortNo = 2147483641 |
| 34 | OfpPortNo_OFPP_NORMAL OfpPortNo = 2147483642 |
| 35 | OfpPortNo_OFPP_FLOOD OfpPortNo = 2147483643 |
| 36 | OfpPortNo_OFPP_ALL OfpPortNo = 2147483644 |
| 37 | OfpPortNo_OFPP_CONTROLLER OfpPortNo = 2147483645 |
| 38 | OfpPortNo_OFPP_LOCAL OfpPortNo = 2147483646 |
| 39 | OfpPortNo_OFPP_ANY OfpPortNo = 2147483647 |
| 40 | ) |
| 41 | |
| 42 | var OfpPortNo_name = map[int32]string{ |
| 43 | 0: "OFPP_INVALID", |
| 44 | 2147483392: "OFPP_MAX", |
| 45 | 2147483640: "OFPP_IN_PORT", |
| 46 | 2147483641: "OFPP_TABLE", |
| 47 | 2147483642: "OFPP_NORMAL", |
| 48 | 2147483643: "OFPP_FLOOD", |
| 49 | 2147483644: "OFPP_ALL", |
| 50 | 2147483645: "OFPP_CONTROLLER", |
| 51 | 2147483646: "OFPP_LOCAL", |
| 52 | 2147483647: "OFPP_ANY", |
| 53 | } |
| 54 | |
| 55 | var OfpPortNo_value = map[string]int32{ |
| 56 | "OFPP_INVALID": 0, |
| 57 | "OFPP_MAX": 2147483392, |
| 58 | "OFPP_IN_PORT": 2147483640, |
| 59 | "OFPP_TABLE": 2147483641, |
| 60 | "OFPP_NORMAL": 2147483642, |
| 61 | "OFPP_FLOOD": 2147483643, |
| 62 | "OFPP_ALL": 2147483644, |
| 63 | "OFPP_CONTROLLER": 2147483645, |
| 64 | "OFPP_LOCAL": 2147483646, |
| 65 | "OFPP_ANY": 2147483647, |
| 66 | } |
| 67 | |
| 68 | func (x OfpPortNo) String() string { |
| 69 | return proto.EnumName(OfpPortNo_name, int32(x)) |
| 70 | } |
| 71 | |
| 72 | func (OfpPortNo) EnumDescriptor() ([]byte, []int) { |
| 73 | return fileDescriptor_08e3a4e375aeddc7, []int{0} |
| 74 | } |
| 75 | |
| 76 | type OfpType int32 |
| 77 | |
| 78 | const ( |
| 79 | // Immutable messages. |
| 80 | OfpType_OFPT_HELLO OfpType = 0 |
| 81 | OfpType_OFPT_ERROR OfpType = 1 |
| 82 | OfpType_OFPT_ECHO_REQUEST OfpType = 2 |
| 83 | OfpType_OFPT_ECHO_REPLY OfpType = 3 |
| 84 | OfpType_OFPT_EXPERIMENTER OfpType = 4 |
| 85 | // Switch configuration messages. |
| 86 | OfpType_OFPT_FEATURES_REQUEST OfpType = 5 |
| 87 | OfpType_OFPT_FEATURES_REPLY OfpType = 6 |
| 88 | OfpType_OFPT_GET_CONFIG_REQUEST OfpType = 7 |
| 89 | OfpType_OFPT_GET_CONFIG_REPLY OfpType = 8 |
| 90 | OfpType_OFPT_SET_CONFIG OfpType = 9 |
| 91 | // Asynchronous messages. |
| 92 | OfpType_OFPT_PACKET_IN OfpType = 10 |
| 93 | OfpType_OFPT_FLOW_REMOVED OfpType = 11 |
| 94 | OfpType_OFPT_PORT_STATUS OfpType = 12 |
| 95 | // Controller command messages. |
| 96 | OfpType_OFPT_PACKET_OUT OfpType = 13 |
| 97 | OfpType_OFPT_FLOW_MOD OfpType = 14 |
| 98 | OfpType_OFPT_GROUP_MOD OfpType = 15 |
| 99 | OfpType_OFPT_PORT_MOD OfpType = 16 |
| 100 | OfpType_OFPT_TABLE_MOD OfpType = 17 |
| 101 | // Multipart messages. |
| 102 | OfpType_OFPT_MULTIPART_REQUEST OfpType = 18 |
| 103 | OfpType_OFPT_MULTIPART_REPLY OfpType = 19 |
| 104 | // Barrier messages. |
| 105 | OfpType_OFPT_BARRIER_REQUEST OfpType = 20 |
| 106 | OfpType_OFPT_BARRIER_REPLY OfpType = 21 |
| 107 | // Queue Configuration messages. |
| 108 | OfpType_OFPT_QUEUE_GET_CONFIG_REQUEST OfpType = 22 |
| 109 | OfpType_OFPT_QUEUE_GET_CONFIG_REPLY OfpType = 23 |
| 110 | // Controller role change request messages. |
| 111 | OfpType_OFPT_ROLE_REQUEST OfpType = 24 |
| 112 | OfpType_OFPT_ROLE_REPLY OfpType = 25 |
| 113 | // Asynchronous message configuration. |
| 114 | OfpType_OFPT_GET_ASYNC_REQUEST OfpType = 26 |
| 115 | OfpType_OFPT_GET_ASYNC_REPLY OfpType = 27 |
| 116 | OfpType_OFPT_SET_ASYNC OfpType = 28 |
| 117 | // Meters and rate limiters configuration messages. |
| 118 | OfpType_OFPT_METER_MOD OfpType = 29 |
| 119 | ) |
| 120 | |
| 121 | var OfpType_name = map[int32]string{ |
| 122 | 0: "OFPT_HELLO", |
| 123 | 1: "OFPT_ERROR", |
| 124 | 2: "OFPT_ECHO_REQUEST", |
| 125 | 3: "OFPT_ECHO_REPLY", |
| 126 | 4: "OFPT_EXPERIMENTER", |
| 127 | 5: "OFPT_FEATURES_REQUEST", |
| 128 | 6: "OFPT_FEATURES_REPLY", |
| 129 | 7: "OFPT_GET_CONFIG_REQUEST", |
| 130 | 8: "OFPT_GET_CONFIG_REPLY", |
| 131 | 9: "OFPT_SET_CONFIG", |
| 132 | 10: "OFPT_PACKET_IN", |
| 133 | 11: "OFPT_FLOW_REMOVED", |
| 134 | 12: "OFPT_PORT_STATUS", |
| 135 | 13: "OFPT_PACKET_OUT", |
| 136 | 14: "OFPT_FLOW_MOD", |
| 137 | 15: "OFPT_GROUP_MOD", |
| 138 | 16: "OFPT_PORT_MOD", |
| 139 | 17: "OFPT_TABLE_MOD", |
| 140 | 18: "OFPT_MULTIPART_REQUEST", |
| 141 | 19: "OFPT_MULTIPART_REPLY", |
| 142 | 20: "OFPT_BARRIER_REQUEST", |
| 143 | 21: "OFPT_BARRIER_REPLY", |
| 144 | 22: "OFPT_QUEUE_GET_CONFIG_REQUEST", |
| 145 | 23: "OFPT_QUEUE_GET_CONFIG_REPLY", |
| 146 | 24: "OFPT_ROLE_REQUEST", |
| 147 | 25: "OFPT_ROLE_REPLY", |
| 148 | 26: "OFPT_GET_ASYNC_REQUEST", |
| 149 | 27: "OFPT_GET_ASYNC_REPLY", |
| 150 | 28: "OFPT_SET_ASYNC", |
| 151 | 29: "OFPT_METER_MOD", |
| 152 | } |
| 153 | |
| 154 | var OfpType_value = map[string]int32{ |
| 155 | "OFPT_HELLO": 0, |
| 156 | "OFPT_ERROR": 1, |
| 157 | "OFPT_ECHO_REQUEST": 2, |
| 158 | "OFPT_ECHO_REPLY": 3, |
| 159 | "OFPT_EXPERIMENTER": 4, |
| 160 | "OFPT_FEATURES_REQUEST": 5, |
| 161 | "OFPT_FEATURES_REPLY": 6, |
| 162 | "OFPT_GET_CONFIG_REQUEST": 7, |
| 163 | "OFPT_GET_CONFIG_REPLY": 8, |
| 164 | "OFPT_SET_CONFIG": 9, |
| 165 | "OFPT_PACKET_IN": 10, |
| 166 | "OFPT_FLOW_REMOVED": 11, |
| 167 | "OFPT_PORT_STATUS": 12, |
| 168 | "OFPT_PACKET_OUT": 13, |
| 169 | "OFPT_FLOW_MOD": 14, |
| 170 | "OFPT_GROUP_MOD": 15, |
| 171 | "OFPT_PORT_MOD": 16, |
| 172 | "OFPT_TABLE_MOD": 17, |
| 173 | "OFPT_MULTIPART_REQUEST": 18, |
| 174 | "OFPT_MULTIPART_REPLY": 19, |
| 175 | "OFPT_BARRIER_REQUEST": 20, |
| 176 | "OFPT_BARRIER_REPLY": 21, |
| 177 | "OFPT_QUEUE_GET_CONFIG_REQUEST": 22, |
| 178 | "OFPT_QUEUE_GET_CONFIG_REPLY": 23, |
| 179 | "OFPT_ROLE_REQUEST": 24, |
| 180 | "OFPT_ROLE_REPLY": 25, |
| 181 | "OFPT_GET_ASYNC_REQUEST": 26, |
| 182 | "OFPT_GET_ASYNC_REPLY": 27, |
| 183 | "OFPT_SET_ASYNC": 28, |
| 184 | "OFPT_METER_MOD": 29, |
| 185 | } |
| 186 | |
| 187 | func (x OfpType) String() string { |
| 188 | return proto.EnumName(OfpType_name, int32(x)) |
| 189 | } |
| 190 | |
| 191 | func (OfpType) EnumDescriptor() ([]byte, []int) { |
| 192 | return fileDescriptor_08e3a4e375aeddc7, []int{1} |
| 193 | } |
| 194 | |
| 195 | // Hello elements types. |
| 196 | type OfpHelloElemType int32 |
| 197 | |
| 198 | const ( |
| 199 | OfpHelloElemType_OFPHET_INVALID OfpHelloElemType = 0 |
| 200 | OfpHelloElemType_OFPHET_VERSIONBITMAP OfpHelloElemType = 1 |
| 201 | ) |
| 202 | |
| 203 | var OfpHelloElemType_name = map[int32]string{ |
| 204 | 0: "OFPHET_INVALID", |
| 205 | 1: "OFPHET_VERSIONBITMAP", |
| 206 | } |
| 207 | |
| 208 | var OfpHelloElemType_value = map[string]int32{ |
| 209 | "OFPHET_INVALID": 0, |
| 210 | "OFPHET_VERSIONBITMAP": 1, |
| 211 | } |
| 212 | |
| 213 | func (x OfpHelloElemType) String() string { |
| 214 | return proto.EnumName(OfpHelloElemType_name, int32(x)) |
| 215 | } |
| 216 | |
| 217 | func (OfpHelloElemType) EnumDescriptor() ([]byte, []int) { |
| 218 | return fileDescriptor_08e3a4e375aeddc7, []int{2} |
| 219 | } |
| 220 | |
| 221 | type OfpConfigFlags int32 |
| 222 | |
| 223 | const ( |
| 224 | // Handling of IP fragments. |
| 225 | OfpConfigFlags_OFPC_FRAG_NORMAL OfpConfigFlags = 0 |
| 226 | OfpConfigFlags_OFPC_FRAG_DROP OfpConfigFlags = 1 |
| 227 | OfpConfigFlags_OFPC_FRAG_REASM OfpConfigFlags = 2 |
| 228 | OfpConfigFlags_OFPC_FRAG_MASK OfpConfigFlags = 3 |
| 229 | ) |
| 230 | |
| 231 | var OfpConfigFlags_name = map[int32]string{ |
| 232 | 0: "OFPC_FRAG_NORMAL", |
| 233 | 1: "OFPC_FRAG_DROP", |
| 234 | 2: "OFPC_FRAG_REASM", |
| 235 | 3: "OFPC_FRAG_MASK", |
| 236 | } |
| 237 | |
| 238 | var OfpConfigFlags_value = map[string]int32{ |
| 239 | "OFPC_FRAG_NORMAL": 0, |
| 240 | "OFPC_FRAG_DROP": 1, |
| 241 | "OFPC_FRAG_REASM": 2, |
| 242 | "OFPC_FRAG_MASK": 3, |
| 243 | } |
| 244 | |
| 245 | func (x OfpConfigFlags) String() string { |
| 246 | return proto.EnumName(OfpConfigFlags_name, int32(x)) |
| 247 | } |
| 248 | |
| 249 | func (OfpConfigFlags) EnumDescriptor() ([]byte, []int) { |
| 250 | return fileDescriptor_08e3a4e375aeddc7, []int{3} |
| 251 | } |
| 252 | |
| 253 | // Flags to configure the table. Reserved for future use. |
| 254 | type OfpTableConfig int32 |
| 255 | |
| 256 | const ( |
| 257 | OfpTableConfig_OFPTC_INVALID OfpTableConfig = 0 |
| 258 | OfpTableConfig_OFPTC_DEPRECATED_MASK OfpTableConfig = 3 |
| 259 | ) |
| 260 | |
| 261 | var OfpTableConfig_name = map[int32]string{ |
| 262 | 0: "OFPTC_INVALID", |
| 263 | 3: "OFPTC_DEPRECATED_MASK", |
| 264 | } |
| 265 | |
| 266 | var OfpTableConfig_value = map[string]int32{ |
| 267 | "OFPTC_INVALID": 0, |
| 268 | "OFPTC_DEPRECATED_MASK": 3, |
| 269 | } |
| 270 | |
| 271 | func (x OfpTableConfig) String() string { |
| 272 | return proto.EnumName(OfpTableConfig_name, int32(x)) |
| 273 | } |
| 274 | |
| 275 | func (OfpTableConfig) EnumDescriptor() ([]byte, []int) { |
| 276 | return fileDescriptor_08e3a4e375aeddc7, []int{4} |
| 277 | } |
| 278 | |
| 279 | // Table numbering. Tables can use any number up to OFPT_MAX. |
| 280 | type OfpTable int32 |
| 281 | |
| 282 | const ( |
| 283 | OfpTable_OFPTT_INVALID OfpTable = 0 |
| 284 | // Last usable table number. |
| 285 | OfpTable_OFPTT_MAX OfpTable = 254 |
| 286 | // Fake tables. |
| 287 | OfpTable_OFPTT_ALL OfpTable = 255 |
| 288 | ) |
| 289 | |
| 290 | var OfpTable_name = map[int32]string{ |
| 291 | 0: "OFPTT_INVALID", |
| 292 | 254: "OFPTT_MAX", |
| 293 | 255: "OFPTT_ALL", |
| 294 | } |
| 295 | |
| 296 | var OfpTable_value = map[string]int32{ |
| 297 | "OFPTT_INVALID": 0, |
| 298 | "OFPTT_MAX": 254, |
| 299 | "OFPTT_ALL": 255, |
| 300 | } |
| 301 | |
| 302 | func (x OfpTable) String() string { |
| 303 | return proto.EnumName(OfpTable_name, int32(x)) |
| 304 | } |
| 305 | |
| 306 | func (OfpTable) EnumDescriptor() ([]byte, []int) { |
| 307 | return fileDescriptor_08e3a4e375aeddc7, []int{5} |
| 308 | } |
| 309 | |
| 310 | // Capabilities supported by the datapath. |
| 311 | type OfpCapabilities int32 |
| 312 | |
| 313 | const ( |
| 314 | OfpCapabilities_OFPC_INVALID OfpCapabilities = 0 |
| 315 | OfpCapabilities_OFPC_FLOW_STATS OfpCapabilities = 1 |
| 316 | OfpCapabilities_OFPC_TABLE_STATS OfpCapabilities = 2 |
| 317 | OfpCapabilities_OFPC_PORT_STATS OfpCapabilities = 4 |
| 318 | OfpCapabilities_OFPC_GROUP_STATS OfpCapabilities = 8 |
| 319 | OfpCapabilities_OFPC_IP_REASM OfpCapabilities = 32 |
| 320 | OfpCapabilities_OFPC_QUEUE_STATS OfpCapabilities = 64 |
| 321 | OfpCapabilities_OFPC_PORT_BLOCKED OfpCapabilities = 256 |
| 322 | ) |
| 323 | |
| 324 | var OfpCapabilities_name = map[int32]string{ |
| 325 | 0: "OFPC_INVALID", |
| 326 | 1: "OFPC_FLOW_STATS", |
| 327 | 2: "OFPC_TABLE_STATS", |
| 328 | 4: "OFPC_PORT_STATS", |
| 329 | 8: "OFPC_GROUP_STATS", |
| 330 | 32: "OFPC_IP_REASM", |
| 331 | 64: "OFPC_QUEUE_STATS", |
| 332 | 256: "OFPC_PORT_BLOCKED", |
| 333 | } |
| 334 | |
| 335 | var OfpCapabilities_value = map[string]int32{ |
| 336 | "OFPC_INVALID": 0, |
| 337 | "OFPC_FLOW_STATS": 1, |
| 338 | "OFPC_TABLE_STATS": 2, |
| 339 | "OFPC_PORT_STATS": 4, |
| 340 | "OFPC_GROUP_STATS": 8, |
| 341 | "OFPC_IP_REASM": 32, |
| 342 | "OFPC_QUEUE_STATS": 64, |
| 343 | "OFPC_PORT_BLOCKED": 256, |
| 344 | } |
| 345 | |
| 346 | func (x OfpCapabilities) String() string { |
| 347 | return proto.EnumName(OfpCapabilities_name, int32(x)) |
| 348 | } |
| 349 | |
| 350 | func (OfpCapabilities) EnumDescriptor() ([]byte, []int) { |
| 351 | return fileDescriptor_08e3a4e375aeddc7, []int{6} |
| 352 | } |
| 353 | |
| 354 | // Flags to indicate behavior of the physical port. These flags are |
| 355 | // used in ofp_port to describe the current configuration. They are |
| 356 | // used in the ofp_port_mod message to configure the port's behavior. |
| 357 | type OfpPortConfig int32 |
| 358 | |
| 359 | const ( |
| 360 | OfpPortConfig_OFPPC_INVALID OfpPortConfig = 0 |
| 361 | OfpPortConfig_OFPPC_PORT_DOWN OfpPortConfig = 1 |
| 362 | OfpPortConfig_OFPPC_NO_RECV OfpPortConfig = 4 |
| 363 | OfpPortConfig_OFPPC_NO_FWD OfpPortConfig = 32 |
| 364 | OfpPortConfig_OFPPC_NO_PACKET_IN OfpPortConfig = 64 |
| 365 | ) |
| 366 | |
| 367 | var OfpPortConfig_name = map[int32]string{ |
| 368 | 0: "OFPPC_INVALID", |
| 369 | 1: "OFPPC_PORT_DOWN", |
| 370 | 4: "OFPPC_NO_RECV", |
| 371 | 32: "OFPPC_NO_FWD", |
| 372 | 64: "OFPPC_NO_PACKET_IN", |
| 373 | } |
| 374 | |
| 375 | var OfpPortConfig_value = map[string]int32{ |
| 376 | "OFPPC_INVALID": 0, |
| 377 | "OFPPC_PORT_DOWN": 1, |
| 378 | "OFPPC_NO_RECV": 4, |
| 379 | "OFPPC_NO_FWD": 32, |
| 380 | "OFPPC_NO_PACKET_IN": 64, |
| 381 | } |
| 382 | |
| 383 | func (x OfpPortConfig) String() string { |
| 384 | return proto.EnumName(OfpPortConfig_name, int32(x)) |
| 385 | } |
| 386 | |
| 387 | func (OfpPortConfig) EnumDescriptor() ([]byte, []int) { |
| 388 | return fileDescriptor_08e3a4e375aeddc7, []int{7} |
| 389 | } |
| 390 | |
| 391 | // Current state of the physical port. These are not configurable from |
| 392 | // the controller. |
| 393 | type OfpPortState int32 |
| 394 | |
| 395 | const ( |
| 396 | OfpPortState_OFPPS_INVALID OfpPortState = 0 |
| 397 | OfpPortState_OFPPS_LINK_DOWN OfpPortState = 1 |
| 398 | OfpPortState_OFPPS_BLOCKED OfpPortState = 2 |
| 399 | OfpPortState_OFPPS_LIVE OfpPortState = 4 |
| 400 | ) |
| 401 | |
| 402 | var OfpPortState_name = map[int32]string{ |
| 403 | 0: "OFPPS_INVALID", |
| 404 | 1: "OFPPS_LINK_DOWN", |
| 405 | 2: "OFPPS_BLOCKED", |
| 406 | 4: "OFPPS_LIVE", |
| 407 | } |
| 408 | |
| 409 | var OfpPortState_value = map[string]int32{ |
| 410 | "OFPPS_INVALID": 0, |
| 411 | "OFPPS_LINK_DOWN": 1, |
| 412 | "OFPPS_BLOCKED": 2, |
| 413 | "OFPPS_LIVE": 4, |
| 414 | } |
| 415 | |
| 416 | func (x OfpPortState) String() string { |
| 417 | return proto.EnumName(OfpPortState_name, int32(x)) |
| 418 | } |
| 419 | |
| 420 | func (OfpPortState) EnumDescriptor() ([]byte, []int) { |
| 421 | return fileDescriptor_08e3a4e375aeddc7, []int{8} |
| 422 | } |
| 423 | |
| 424 | // Features of ports available in a datapath. |
| 425 | type OfpPortFeatures int32 |
| 426 | |
| 427 | const ( |
| 428 | OfpPortFeatures_OFPPF_INVALID OfpPortFeatures = 0 |
| 429 | OfpPortFeatures_OFPPF_10MB_HD OfpPortFeatures = 1 |
| 430 | OfpPortFeatures_OFPPF_10MB_FD OfpPortFeatures = 2 |
| 431 | OfpPortFeatures_OFPPF_100MB_HD OfpPortFeatures = 4 |
| 432 | OfpPortFeatures_OFPPF_100MB_FD OfpPortFeatures = 8 |
| 433 | OfpPortFeatures_OFPPF_1GB_HD OfpPortFeatures = 16 |
| 434 | OfpPortFeatures_OFPPF_1GB_FD OfpPortFeatures = 32 |
| 435 | OfpPortFeatures_OFPPF_10GB_FD OfpPortFeatures = 64 |
| 436 | OfpPortFeatures_OFPPF_40GB_FD OfpPortFeatures = 128 |
| 437 | OfpPortFeatures_OFPPF_100GB_FD OfpPortFeatures = 256 |
| 438 | OfpPortFeatures_OFPPF_1TB_FD OfpPortFeatures = 512 |
| 439 | OfpPortFeatures_OFPPF_OTHER OfpPortFeatures = 1024 |
| 440 | OfpPortFeatures_OFPPF_COPPER OfpPortFeatures = 2048 |
| 441 | OfpPortFeatures_OFPPF_FIBER OfpPortFeatures = 4096 |
| 442 | OfpPortFeatures_OFPPF_AUTONEG OfpPortFeatures = 8192 |
| 443 | OfpPortFeatures_OFPPF_PAUSE OfpPortFeatures = 16384 |
| 444 | OfpPortFeatures_OFPPF_PAUSE_ASYM OfpPortFeatures = 32768 |
| 445 | ) |
| 446 | |
| 447 | var OfpPortFeatures_name = map[int32]string{ |
| 448 | 0: "OFPPF_INVALID", |
| 449 | 1: "OFPPF_10MB_HD", |
| 450 | 2: "OFPPF_10MB_FD", |
| 451 | 4: "OFPPF_100MB_HD", |
| 452 | 8: "OFPPF_100MB_FD", |
| 453 | 16: "OFPPF_1GB_HD", |
| 454 | 32: "OFPPF_1GB_FD", |
| 455 | 64: "OFPPF_10GB_FD", |
| 456 | 128: "OFPPF_40GB_FD", |
| 457 | 256: "OFPPF_100GB_FD", |
| 458 | 512: "OFPPF_1TB_FD", |
| 459 | 1024: "OFPPF_OTHER", |
| 460 | 2048: "OFPPF_COPPER", |
| 461 | 4096: "OFPPF_FIBER", |
| 462 | 8192: "OFPPF_AUTONEG", |
| 463 | 16384: "OFPPF_PAUSE", |
| 464 | 32768: "OFPPF_PAUSE_ASYM", |
| 465 | } |
| 466 | |
| 467 | var OfpPortFeatures_value = map[string]int32{ |
| 468 | "OFPPF_INVALID": 0, |
| 469 | "OFPPF_10MB_HD": 1, |
| 470 | "OFPPF_10MB_FD": 2, |
| 471 | "OFPPF_100MB_HD": 4, |
| 472 | "OFPPF_100MB_FD": 8, |
| 473 | "OFPPF_1GB_HD": 16, |
| 474 | "OFPPF_1GB_FD": 32, |
| 475 | "OFPPF_10GB_FD": 64, |
| 476 | "OFPPF_40GB_FD": 128, |
| 477 | "OFPPF_100GB_FD": 256, |
| 478 | "OFPPF_1TB_FD": 512, |
| 479 | "OFPPF_OTHER": 1024, |
| 480 | "OFPPF_COPPER": 2048, |
| 481 | "OFPPF_FIBER": 4096, |
| 482 | "OFPPF_AUTONEG": 8192, |
| 483 | "OFPPF_PAUSE": 16384, |
| 484 | "OFPPF_PAUSE_ASYM": 32768, |
| 485 | } |
| 486 | |
| 487 | func (x OfpPortFeatures) String() string { |
| 488 | return proto.EnumName(OfpPortFeatures_name, int32(x)) |
| 489 | } |
| 490 | |
| 491 | func (OfpPortFeatures) EnumDescriptor() ([]byte, []int) { |
| 492 | return fileDescriptor_08e3a4e375aeddc7, []int{9} |
| 493 | } |
| 494 | |
| 495 | // What changed about the physical port |
| 496 | type OfpPortReason int32 |
| 497 | |
| 498 | const ( |
| 499 | OfpPortReason_OFPPR_ADD OfpPortReason = 0 |
| 500 | OfpPortReason_OFPPR_DELETE OfpPortReason = 1 |
| 501 | OfpPortReason_OFPPR_MODIFY OfpPortReason = 2 |
| 502 | ) |
| 503 | |
| 504 | var OfpPortReason_name = map[int32]string{ |
| 505 | 0: "OFPPR_ADD", |
| 506 | 1: "OFPPR_DELETE", |
| 507 | 2: "OFPPR_MODIFY", |
| 508 | } |
| 509 | |
| 510 | var OfpPortReason_value = map[string]int32{ |
| 511 | "OFPPR_ADD": 0, |
| 512 | "OFPPR_DELETE": 1, |
| 513 | "OFPPR_MODIFY": 2, |
| 514 | } |
| 515 | |
| 516 | func (x OfpPortReason) String() string { |
| 517 | return proto.EnumName(OfpPortReason_name, int32(x)) |
| 518 | } |
| 519 | |
| 520 | func (OfpPortReason) EnumDescriptor() ([]byte, []int) { |
| 521 | return fileDescriptor_08e3a4e375aeddc7, []int{10} |
| 522 | } |
| 523 | |
| 524 | // The match type indicates the match structure (set of fields that compose the |
| 525 | // match) in use. The match type is placed in the type field at the beginning |
| 526 | // of all match structures. The "OpenFlow Extensible Match" type corresponds |
| 527 | // to OXM TLV format described below and must be supported by all OpenFlow |
| 528 | // switches. Extensions that define other match types may be published on the |
| 529 | // ONF wiki. Support for extensions is optional. |
| 530 | type OfpMatchType int32 |
| 531 | |
| 532 | const ( |
| 533 | OfpMatchType_OFPMT_STANDARD OfpMatchType = 0 |
| 534 | OfpMatchType_OFPMT_OXM OfpMatchType = 1 |
| 535 | ) |
| 536 | |
| 537 | var OfpMatchType_name = map[int32]string{ |
| 538 | 0: "OFPMT_STANDARD", |
| 539 | 1: "OFPMT_OXM", |
| 540 | } |
| 541 | |
| 542 | var OfpMatchType_value = map[string]int32{ |
| 543 | "OFPMT_STANDARD": 0, |
| 544 | "OFPMT_OXM": 1, |
| 545 | } |
| 546 | |
| 547 | func (x OfpMatchType) String() string { |
| 548 | return proto.EnumName(OfpMatchType_name, int32(x)) |
| 549 | } |
| 550 | |
| 551 | func (OfpMatchType) EnumDescriptor() ([]byte, []int) { |
| 552 | return fileDescriptor_08e3a4e375aeddc7, []int{11} |
| 553 | } |
| 554 | |
| 555 | // OXM Class IDs. |
| 556 | // The high order bit differentiate reserved classes from member classes. |
| 557 | // Classes 0x0000 to 0x7FFF are member classes, allocated by ONF. |
| 558 | // Classes 0x8000 to 0xFFFE are reserved classes, reserved for standardisation. |
| 559 | type OfpOxmClass int32 |
| 560 | |
| 561 | const ( |
| 562 | OfpOxmClass_OFPXMC_NXM_0 OfpOxmClass = 0 |
| 563 | OfpOxmClass_OFPXMC_NXM_1 OfpOxmClass = 1 |
| 564 | OfpOxmClass_OFPXMC_OPENFLOW_BASIC OfpOxmClass = 32768 |
| 565 | OfpOxmClass_OFPXMC_EXPERIMENTER OfpOxmClass = 65535 |
| 566 | ) |
| 567 | |
| 568 | var OfpOxmClass_name = map[int32]string{ |
| 569 | 0: "OFPXMC_NXM_0", |
| 570 | 1: "OFPXMC_NXM_1", |
| 571 | 32768: "OFPXMC_OPENFLOW_BASIC", |
| 572 | 65535: "OFPXMC_EXPERIMENTER", |
| 573 | } |
| 574 | |
| 575 | var OfpOxmClass_value = map[string]int32{ |
| 576 | "OFPXMC_NXM_0": 0, |
| 577 | "OFPXMC_NXM_1": 1, |
| 578 | "OFPXMC_OPENFLOW_BASIC": 32768, |
| 579 | "OFPXMC_EXPERIMENTER": 65535, |
| 580 | } |
| 581 | |
| 582 | func (x OfpOxmClass) String() string { |
| 583 | return proto.EnumName(OfpOxmClass_name, int32(x)) |
| 584 | } |
| 585 | |
| 586 | func (OfpOxmClass) EnumDescriptor() ([]byte, []int) { |
| 587 | return fileDescriptor_08e3a4e375aeddc7, []int{12} |
| 588 | } |
| 589 | |
| 590 | // OXM Flow field types for OpenFlow basic class. |
| 591 | type OxmOfbFieldTypes int32 |
| 592 | |
| 593 | const ( |
| 594 | OxmOfbFieldTypes_OFPXMT_OFB_IN_PORT OxmOfbFieldTypes = 0 |
| 595 | OxmOfbFieldTypes_OFPXMT_OFB_IN_PHY_PORT OxmOfbFieldTypes = 1 |
| 596 | OxmOfbFieldTypes_OFPXMT_OFB_METADATA OxmOfbFieldTypes = 2 |
| 597 | OxmOfbFieldTypes_OFPXMT_OFB_ETH_DST OxmOfbFieldTypes = 3 |
| 598 | OxmOfbFieldTypes_OFPXMT_OFB_ETH_SRC OxmOfbFieldTypes = 4 |
| 599 | OxmOfbFieldTypes_OFPXMT_OFB_ETH_TYPE OxmOfbFieldTypes = 5 |
| 600 | OxmOfbFieldTypes_OFPXMT_OFB_VLAN_VID OxmOfbFieldTypes = 6 |
| 601 | OxmOfbFieldTypes_OFPXMT_OFB_VLAN_PCP OxmOfbFieldTypes = 7 |
| 602 | OxmOfbFieldTypes_OFPXMT_OFB_IP_DSCP OxmOfbFieldTypes = 8 |
| 603 | OxmOfbFieldTypes_OFPXMT_OFB_IP_ECN OxmOfbFieldTypes = 9 |
| 604 | OxmOfbFieldTypes_OFPXMT_OFB_IP_PROTO OxmOfbFieldTypes = 10 |
| 605 | OxmOfbFieldTypes_OFPXMT_OFB_IPV4_SRC OxmOfbFieldTypes = 11 |
| 606 | OxmOfbFieldTypes_OFPXMT_OFB_IPV4_DST OxmOfbFieldTypes = 12 |
| 607 | OxmOfbFieldTypes_OFPXMT_OFB_TCP_SRC OxmOfbFieldTypes = 13 |
| 608 | OxmOfbFieldTypes_OFPXMT_OFB_TCP_DST OxmOfbFieldTypes = 14 |
| 609 | OxmOfbFieldTypes_OFPXMT_OFB_UDP_SRC OxmOfbFieldTypes = 15 |
| 610 | OxmOfbFieldTypes_OFPXMT_OFB_UDP_DST OxmOfbFieldTypes = 16 |
| 611 | OxmOfbFieldTypes_OFPXMT_OFB_SCTP_SRC OxmOfbFieldTypes = 17 |
| 612 | OxmOfbFieldTypes_OFPXMT_OFB_SCTP_DST OxmOfbFieldTypes = 18 |
| 613 | OxmOfbFieldTypes_OFPXMT_OFB_ICMPV4_TYPE OxmOfbFieldTypes = 19 |
| 614 | OxmOfbFieldTypes_OFPXMT_OFB_ICMPV4_CODE OxmOfbFieldTypes = 20 |
| 615 | OxmOfbFieldTypes_OFPXMT_OFB_ARP_OP OxmOfbFieldTypes = 21 |
| 616 | OxmOfbFieldTypes_OFPXMT_OFB_ARP_SPA OxmOfbFieldTypes = 22 |
| 617 | OxmOfbFieldTypes_OFPXMT_OFB_ARP_TPA OxmOfbFieldTypes = 23 |
| 618 | OxmOfbFieldTypes_OFPXMT_OFB_ARP_SHA OxmOfbFieldTypes = 24 |
| 619 | OxmOfbFieldTypes_OFPXMT_OFB_ARP_THA OxmOfbFieldTypes = 25 |
| 620 | OxmOfbFieldTypes_OFPXMT_OFB_IPV6_SRC OxmOfbFieldTypes = 26 |
| 621 | OxmOfbFieldTypes_OFPXMT_OFB_IPV6_DST OxmOfbFieldTypes = 27 |
| 622 | OxmOfbFieldTypes_OFPXMT_OFB_IPV6_FLABEL OxmOfbFieldTypes = 28 |
| 623 | OxmOfbFieldTypes_OFPXMT_OFB_ICMPV6_TYPE OxmOfbFieldTypes = 29 |
| 624 | OxmOfbFieldTypes_OFPXMT_OFB_ICMPV6_CODE OxmOfbFieldTypes = 30 |
| 625 | OxmOfbFieldTypes_OFPXMT_OFB_IPV6_ND_TARGET OxmOfbFieldTypes = 31 |
| 626 | OxmOfbFieldTypes_OFPXMT_OFB_IPV6_ND_SLL OxmOfbFieldTypes = 32 |
| 627 | OxmOfbFieldTypes_OFPXMT_OFB_IPV6_ND_TLL OxmOfbFieldTypes = 33 |
| 628 | OxmOfbFieldTypes_OFPXMT_OFB_MPLS_LABEL OxmOfbFieldTypes = 34 |
| 629 | OxmOfbFieldTypes_OFPXMT_OFB_MPLS_TC OxmOfbFieldTypes = 35 |
| 630 | OxmOfbFieldTypes_OFPXMT_OFB_MPLS_BOS OxmOfbFieldTypes = 36 |
| 631 | OxmOfbFieldTypes_OFPXMT_OFB_PBB_ISID OxmOfbFieldTypes = 37 |
| 632 | OxmOfbFieldTypes_OFPXMT_OFB_TUNNEL_ID OxmOfbFieldTypes = 38 |
| 633 | OxmOfbFieldTypes_OFPXMT_OFB_IPV6_EXTHDR OxmOfbFieldTypes = 39 |
| 634 | ) |
| 635 | |
| 636 | var OxmOfbFieldTypes_name = map[int32]string{ |
| 637 | 0: "OFPXMT_OFB_IN_PORT", |
| 638 | 1: "OFPXMT_OFB_IN_PHY_PORT", |
| 639 | 2: "OFPXMT_OFB_METADATA", |
| 640 | 3: "OFPXMT_OFB_ETH_DST", |
| 641 | 4: "OFPXMT_OFB_ETH_SRC", |
| 642 | 5: "OFPXMT_OFB_ETH_TYPE", |
| 643 | 6: "OFPXMT_OFB_VLAN_VID", |
| 644 | 7: "OFPXMT_OFB_VLAN_PCP", |
| 645 | 8: "OFPXMT_OFB_IP_DSCP", |
| 646 | 9: "OFPXMT_OFB_IP_ECN", |
| 647 | 10: "OFPXMT_OFB_IP_PROTO", |
| 648 | 11: "OFPXMT_OFB_IPV4_SRC", |
| 649 | 12: "OFPXMT_OFB_IPV4_DST", |
| 650 | 13: "OFPXMT_OFB_TCP_SRC", |
| 651 | 14: "OFPXMT_OFB_TCP_DST", |
| 652 | 15: "OFPXMT_OFB_UDP_SRC", |
| 653 | 16: "OFPXMT_OFB_UDP_DST", |
| 654 | 17: "OFPXMT_OFB_SCTP_SRC", |
| 655 | 18: "OFPXMT_OFB_SCTP_DST", |
| 656 | 19: "OFPXMT_OFB_ICMPV4_TYPE", |
| 657 | 20: "OFPXMT_OFB_ICMPV4_CODE", |
| 658 | 21: "OFPXMT_OFB_ARP_OP", |
| 659 | 22: "OFPXMT_OFB_ARP_SPA", |
| 660 | 23: "OFPXMT_OFB_ARP_TPA", |
| 661 | 24: "OFPXMT_OFB_ARP_SHA", |
| 662 | 25: "OFPXMT_OFB_ARP_THA", |
| 663 | 26: "OFPXMT_OFB_IPV6_SRC", |
| 664 | 27: "OFPXMT_OFB_IPV6_DST", |
| 665 | 28: "OFPXMT_OFB_IPV6_FLABEL", |
| 666 | 29: "OFPXMT_OFB_ICMPV6_TYPE", |
| 667 | 30: "OFPXMT_OFB_ICMPV6_CODE", |
| 668 | 31: "OFPXMT_OFB_IPV6_ND_TARGET", |
| 669 | 32: "OFPXMT_OFB_IPV6_ND_SLL", |
| 670 | 33: "OFPXMT_OFB_IPV6_ND_TLL", |
| 671 | 34: "OFPXMT_OFB_MPLS_LABEL", |
| 672 | 35: "OFPXMT_OFB_MPLS_TC", |
| 673 | 36: "OFPXMT_OFB_MPLS_BOS", |
| 674 | 37: "OFPXMT_OFB_PBB_ISID", |
| 675 | 38: "OFPXMT_OFB_TUNNEL_ID", |
| 676 | 39: "OFPXMT_OFB_IPV6_EXTHDR", |
| 677 | } |
| 678 | |
| 679 | var OxmOfbFieldTypes_value = map[string]int32{ |
| 680 | "OFPXMT_OFB_IN_PORT": 0, |
| 681 | "OFPXMT_OFB_IN_PHY_PORT": 1, |
| 682 | "OFPXMT_OFB_METADATA": 2, |
| 683 | "OFPXMT_OFB_ETH_DST": 3, |
| 684 | "OFPXMT_OFB_ETH_SRC": 4, |
| 685 | "OFPXMT_OFB_ETH_TYPE": 5, |
| 686 | "OFPXMT_OFB_VLAN_VID": 6, |
| 687 | "OFPXMT_OFB_VLAN_PCP": 7, |
| 688 | "OFPXMT_OFB_IP_DSCP": 8, |
| 689 | "OFPXMT_OFB_IP_ECN": 9, |
| 690 | "OFPXMT_OFB_IP_PROTO": 10, |
| 691 | "OFPXMT_OFB_IPV4_SRC": 11, |
| 692 | "OFPXMT_OFB_IPV4_DST": 12, |
| 693 | "OFPXMT_OFB_TCP_SRC": 13, |
| 694 | "OFPXMT_OFB_TCP_DST": 14, |
| 695 | "OFPXMT_OFB_UDP_SRC": 15, |
| 696 | "OFPXMT_OFB_UDP_DST": 16, |
| 697 | "OFPXMT_OFB_SCTP_SRC": 17, |
| 698 | "OFPXMT_OFB_SCTP_DST": 18, |
| 699 | "OFPXMT_OFB_ICMPV4_TYPE": 19, |
| 700 | "OFPXMT_OFB_ICMPV4_CODE": 20, |
| 701 | "OFPXMT_OFB_ARP_OP": 21, |
| 702 | "OFPXMT_OFB_ARP_SPA": 22, |
| 703 | "OFPXMT_OFB_ARP_TPA": 23, |
| 704 | "OFPXMT_OFB_ARP_SHA": 24, |
| 705 | "OFPXMT_OFB_ARP_THA": 25, |
| 706 | "OFPXMT_OFB_IPV6_SRC": 26, |
| 707 | "OFPXMT_OFB_IPV6_DST": 27, |
| 708 | "OFPXMT_OFB_IPV6_FLABEL": 28, |
| 709 | "OFPXMT_OFB_ICMPV6_TYPE": 29, |
| 710 | "OFPXMT_OFB_ICMPV6_CODE": 30, |
| 711 | "OFPXMT_OFB_IPV6_ND_TARGET": 31, |
| 712 | "OFPXMT_OFB_IPV6_ND_SLL": 32, |
| 713 | "OFPXMT_OFB_IPV6_ND_TLL": 33, |
| 714 | "OFPXMT_OFB_MPLS_LABEL": 34, |
| 715 | "OFPXMT_OFB_MPLS_TC": 35, |
| 716 | "OFPXMT_OFB_MPLS_BOS": 36, |
| 717 | "OFPXMT_OFB_PBB_ISID": 37, |
| 718 | "OFPXMT_OFB_TUNNEL_ID": 38, |
| 719 | "OFPXMT_OFB_IPV6_EXTHDR": 39, |
| 720 | } |
| 721 | |
| 722 | func (x OxmOfbFieldTypes) String() string { |
| 723 | return proto.EnumName(OxmOfbFieldTypes_name, int32(x)) |
| 724 | } |
| 725 | |
| 726 | func (OxmOfbFieldTypes) EnumDescriptor() ([]byte, []int) { |
| 727 | return fileDescriptor_08e3a4e375aeddc7, []int{13} |
| 728 | } |
| 729 | |
| 730 | // The VLAN id is 12-bits, so we can use the entire 16 bits to indicate |
| 731 | // special conditions. |
| 732 | type OfpVlanId int32 |
| 733 | |
| 734 | const ( |
| 735 | OfpVlanId_OFPVID_NONE OfpVlanId = 0 |
| 736 | OfpVlanId_OFPVID_PRESENT OfpVlanId = 4096 |
| 737 | ) |
| 738 | |
| 739 | var OfpVlanId_name = map[int32]string{ |
| 740 | 0: "OFPVID_NONE", |
| 741 | 4096: "OFPVID_PRESENT", |
| 742 | } |
| 743 | |
| 744 | var OfpVlanId_value = map[string]int32{ |
| 745 | "OFPVID_NONE": 0, |
| 746 | "OFPVID_PRESENT": 4096, |
| 747 | } |
| 748 | |
| 749 | func (x OfpVlanId) String() string { |
| 750 | return proto.EnumName(OfpVlanId_name, int32(x)) |
| 751 | } |
| 752 | |
| 753 | func (OfpVlanId) EnumDescriptor() ([]byte, []int) { |
| 754 | return fileDescriptor_08e3a4e375aeddc7, []int{14} |
| 755 | } |
| 756 | |
| 757 | // Bit definitions for IPv6 Extension Header pseudo-field. |
| 758 | type OfpIpv6ExthdrFlags int32 |
| 759 | |
| 760 | const ( |
| 761 | OfpIpv6ExthdrFlags_OFPIEH_INVALID OfpIpv6ExthdrFlags = 0 |
| 762 | OfpIpv6ExthdrFlags_OFPIEH_NONEXT OfpIpv6ExthdrFlags = 1 |
| 763 | OfpIpv6ExthdrFlags_OFPIEH_ESP OfpIpv6ExthdrFlags = 2 |
| 764 | OfpIpv6ExthdrFlags_OFPIEH_AUTH OfpIpv6ExthdrFlags = 4 |
| 765 | OfpIpv6ExthdrFlags_OFPIEH_DEST OfpIpv6ExthdrFlags = 8 |
| 766 | OfpIpv6ExthdrFlags_OFPIEH_FRAG OfpIpv6ExthdrFlags = 16 |
| 767 | OfpIpv6ExthdrFlags_OFPIEH_ROUTER OfpIpv6ExthdrFlags = 32 |
| 768 | OfpIpv6ExthdrFlags_OFPIEH_HOP OfpIpv6ExthdrFlags = 64 |
| 769 | OfpIpv6ExthdrFlags_OFPIEH_UNREP OfpIpv6ExthdrFlags = 128 |
| 770 | OfpIpv6ExthdrFlags_OFPIEH_UNSEQ OfpIpv6ExthdrFlags = 256 |
| 771 | ) |
| 772 | |
| 773 | var OfpIpv6ExthdrFlags_name = map[int32]string{ |
| 774 | 0: "OFPIEH_INVALID", |
| 775 | 1: "OFPIEH_NONEXT", |
| 776 | 2: "OFPIEH_ESP", |
| 777 | 4: "OFPIEH_AUTH", |
| 778 | 8: "OFPIEH_DEST", |
| 779 | 16: "OFPIEH_FRAG", |
| 780 | 32: "OFPIEH_ROUTER", |
| 781 | 64: "OFPIEH_HOP", |
| 782 | 128: "OFPIEH_UNREP", |
| 783 | 256: "OFPIEH_UNSEQ", |
| 784 | } |
| 785 | |
| 786 | var OfpIpv6ExthdrFlags_value = map[string]int32{ |
| 787 | "OFPIEH_INVALID": 0, |
| 788 | "OFPIEH_NONEXT": 1, |
| 789 | "OFPIEH_ESP": 2, |
| 790 | "OFPIEH_AUTH": 4, |
| 791 | "OFPIEH_DEST": 8, |
| 792 | "OFPIEH_FRAG": 16, |
| 793 | "OFPIEH_ROUTER": 32, |
| 794 | "OFPIEH_HOP": 64, |
| 795 | "OFPIEH_UNREP": 128, |
| 796 | "OFPIEH_UNSEQ": 256, |
| 797 | } |
| 798 | |
| 799 | func (x OfpIpv6ExthdrFlags) String() string { |
| 800 | return proto.EnumName(OfpIpv6ExthdrFlags_name, int32(x)) |
| 801 | } |
| 802 | |
| 803 | func (OfpIpv6ExthdrFlags) EnumDescriptor() ([]byte, []int) { |
| 804 | return fileDescriptor_08e3a4e375aeddc7, []int{15} |
| 805 | } |
| 806 | |
| 807 | type OfpActionType int32 |
| 808 | |
| 809 | const ( |
| 810 | OfpActionType_OFPAT_OUTPUT OfpActionType = 0 |
| 811 | OfpActionType_OFPAT_COPY_TTL_OUT OfpActionType = 11 |
| 812 | OfpActionType_OFPAT_COPY_TTL_IN OfpActionType = 12 |
| 813 | OfpActionType_OFPAT_SET_MPLS_TTL OfpActionType = 15 |
| 814 | OfpActionType_OFPAT_DEC_MPLS_TTL OfpActionType = 16 |
| 815 | OfpActionType_OFPAT_PUSH_VLAN OfpActionType = 17 |
| 816 | OfpActionType_OFPAT_POP_VLAN OfpActionType = 18 |
| 817 | OfpActionType_OFPAT_PUSH_MPLS OfpActionType = 19 |
| 818 | OfpActionType_OFPAT_POP_MPLS OfpActionType = 20 |
| 819 | OfpActionType_OFPAT_SET_QUEUE OfpActionType = 21 |
| 820 | OfpActionType_OFPAT_GROUP OfpActionType = 22 |
| 821 | OfpActionType_OFPAT_SET_NW_TTL OfpActionType = 23 |
| 822 | OfpActionType_OFPAT_DEC_NW_TTL OfpActionType = 24 |
| 823 | OfpActionType_OFPAT_SET_FIELD OfpActionType = 25 |
| 824 | OfpActionType_OFPAT_PUSH_PBB OfpActionType = 26 |
| 825 | OfpActionType_OFPAT_POP_PBB OfpActionType = 27 |
| 826 | OfpActionType_OFPAT_EXPERIMENTER OfpActionType = 65535 |
| 827 | ) |
| 828 | |
| 829 | var OfpActionType_name = map[int32]string{ |
| 830 | 0: "OFPAT_OUTPUT", |
| 831 | 11: "OFPAT_COPY_TTL_OUT", |
| 832 | 12: "OFPAT_COPY_TTL_IN", |
| 833 | 15: "OFPAT_SET_MPLS_TTL", |
| 834 | 16: "OFPAT_DEC_MPLS_TTL", |
| 835 | 17: "OFPAT_PUSH_VLAN", |
| 836 | 18: "OFPAT_POP_VLAN", |
| 837 | 19: "OFPAT_PUSH_MPLS", |
| 838 | 20: "OFPAT_POP_MPLS", |
| 839 | 21: "OFPAT_SET_QUEUE", |
| 840 | 22: "OFPAT_GROUP", |
| 841 | 23: "OFPAT_SET_NW_TTL", |
| 842 | 24: "OFPAT_DEC_NW_TTL", |
| 843 | 25: "OFPAT_SET_FIELD", |
| 844 | 26: "OFPAT_PUSH_PBB", |
| 845 | 27: "OFPAT_POP_PBB", |
| 846 | 65535: "OFPAT_EXPERIMENTER", |
| 847 | } |
| 848 | |
| 849 | var OfpActionType_value = map[string]int32{ |
| 850 | "OFPAT_OUTPUT": 0, |
| 851 | "OFPAT_COPY_TTL_OUT": 11, |
| 852 | "OFPAT_COPY_TTL_IN": 12, |
| 853 | "OFPAT_SET_MPLS_TTL": 15, |
| 854 | "OFPAT_DEC_MPLS_TTL": 16, |
| 855 | "OFPAT_PUSH_VLAN": 17, |
| 856 | "OFPAT_POP_VLAN": 18, |
| 857 | "OFPAT_PUSH_MPLS": 19, |
| 858 | "OFPAT_POP_MPLS": 20, |
| 859 | "OFPAT_SET_QUEUE": 21, |
| 860 | "OFPAT_GROUP": 22, |
| 861 | "OFPAT_SET_NW_TTL": 23, |
| 862 | "OFPAT_DEC_NW_TTL": 24, |
| 863 | "OFPAT_SET_FIELD": 25, |
| 864 | "OFPAT_PUSH_PBB": 26, |
| 865 | "OFPAT_POP_PBB": 27, |
| 866 | "OFPAT_EXPERIMENTER": 65535, |
| 867 | } |
| 868 | |
| 869 | func (x OfpActionType) String() string { |
| 870 | return proto.EnumName(OfpActionType_name, int32(x)) |
| 871 | } |
| 872 | |
| 873 | func (OfpActionType) EnumDescriptor() ([]byte, []int) { |
| 874 | return fileDescriptor_08e3a4e375aeddc7, []int{16} |
| 875 | } |
| 876 | |
| 877 | type OfpControllerMaxLen int32 |
| 878 | |
| 879 | const ( |
| 880 | OfpControllerMaxLen_OFPCML_INVALID OfpControllerMaxLen = 0 |
| 881 | OfpControllerMaxLen_OFPCML_MAX OfpControllerMaxLen = 65509 |
| 882 | OfpControllerMaxLen_OFPCML_NO_BUFFER OfpControllerMaxLen = 65535 |
| 883 | ) |
| 884 | |
| 885 | var OfpControllerMaxLen_name = map[int32]string{ |
| 886 | 0: "OFPCML_INVALID", |
| 887 | 65509: "OFPCML_MAX", |
| 888 | 65535: "OFPCML_NO_BUFFER", |
| 889 | } |
| 890 | |
| 891 | var OfpControllerMaxLen_value = map[string]int32{ |
| 892 | "OFPCML_INVALID": 0, |
| 893 | "OFPCML_MAX": 65509, |
| 894 | "OFPCML_NO_BUFFER": 65535, |
| 895 | } |
| 896 | |
| 897 | func (x OfpControllerMaxLen) String() string { |
| 898 | return proto.EnumName(OfpControllerMaxLen_name, int32(x)) |
| 899 | } |
| 900 | |
| 901 | func (OfpControllerMaxLen) EnumDescriptor() ([]byte, []int) { |
| 902 | return fileDescriptor_08e3a4e375aeddc7, []int{17} |
| 903 | } |
| 904 | |
| 905 | type OfpInstructionType int32 |
| 906 | |
| 907 | const ( |
| 908 | OfpInstructionType_OFPIT_INVALID OfpInstructionType = 0 |
| 909 | OfpInstructionType_OFPIT_GOTO_TABLE OfpInstructionType = 1 |
| 910 | OfpInstructionType_OFPIT_WRITE_METADATA OfpInstructionType = 2 |
| 911 | OfpInstructionType_OFPIT_WRITE_ACTIONS OfpInstructionType = 3 |
| 912 | OfpInstructionType_OFPIT_APPLY_ACTIONS OfpInstructionType = 4 |
| 913 | OfpInstructionType_OFPIT_CLEAR_ACTIONS OfpInstructionType = 5 |
| 914 | OfpInstructionType_OFPIT_METER OfpInstructionType = 6 |
| 915 | OfpInstructionType_OFPIT_EXPERIMENTER OfpInstructionType = 65535 |
| 916 | ) |
| 917 | |
| 918 | var OfpInstructionType_name = map[int32]string{ |
| 919 | 0: "OFPIT_INVALID", |
| 920 | 1: "OFPIT_GOTO_TABLE", |
| 921 | 2: "OFPIT_WRITE_METADATA", |
| 922 | 3: "OFPIT_WRITE_ACTIONS", |
| 923 | 4: "OFPIT_APPLY_ACTIONS", |
| 924 | 5: "OFPIT_CLEAR_ACTIONS", |
| 925 | 6: "OFPIT_METER", |
| 926 | 65535: "OFPIT_EXPERIMENTER", |
| 927 | } |
| 928 | |
| 929 | var OfpInstructionType_value = map[string]int32{ |
| 930 | "OFPIT_INVALID": 0, |
| 931 | "OFPIT_GOTO_TABLE": 1, |
| 932 | "OFPIT_WRITE_METADATA": 2, |
| 933 | "OFPIT_WRITE_ACTIONS": 3, |
| 934 | "OFPIT_APPLY_ACTIONS": 4, |
| 935 | "OFPIT_CLEAR_ACTIONS": 5, |
| 936 | "OFPIT_METER": 6, |
| 937 | "OFPIT_EXPERIMENTER": 65535, |
| 938 | } |
| 939 | |
| 940 | func (x OfpInstructionType) String() string { |
| 941 | return proto.EnumName(OfpInstructionType_name, int32(x)) |
| 942 | } |
| 943 | |
| 944 | func (OfpInstructionType) EnumDescriptor() ([]byte, []int) { |
| 945 | return fileDescriptor_08e3a4e375aeddc7, []int{18} |
| 946 | } |
| 947 | |
| 948 | type OfpFlowModCommand int32 |
| 949 | |
| 950 | const ( |
| 951 | OfpFlowModCommand_OFPFC_ADD OfpFlowModCommand = 0 |
| 952 | OfpFlowModCommand_OFPFC_MODIFY OfpFlowModCommand = 1 |
| 953 | OfpFlowModCommand_OFPFC_MODIFY_STRICT OfpFlowModCommand = 2 |
| 954 | OfpFlowModCommand_OFPFC_DELETE OfpFlowModCommand = 3 |
| 955 | OfpFlowModCommand_OFPFC_DELETE_STRICT OfpFlowModCommand = 4 |
| 956 | ) |
| 957 | |
| 958 | var OfpFlowModCommand_name = map[int32]string{ |
| 959 | 0: "OFPFC_ADD", |
| 960 | 1: "OFPFC_MODIFY", |
| 961 | 2: "OFPFC_MODIFY_STRICT", |
| 962 | 3: "OFPFC_DELETE", |
| 963 | 4: "OFPFC_DELETE_STRICT", |
| 964 | } |
| 965 | |
| 966 | var OfpFlowModCommand_value = map[string]int32{ |
| 967 | "OFPFC_ADD": 0, |
| 968 | "OFPFC_MODIFY": 1, |
| 969 | "OFPFC_MODIFY_STRICT": 2, |
| 970 | "OFPFC_DELETE": 3, |
| 971 | "OFPFC_DELETE_STRICT": 4, |
| 972 | } |
| 973 | |
| 974 | func (x OfpFlowModCommand) String() string { |
| 975 | return proto.EnumName(OfpFlowModCommand_name, int32(x)) |
| 976 | } |
| 977 | |
| 978 | func (OfpFlowModCommand) EnumDescriptor() ([]byte, []int) { |
| 979 | return fileDescriptor_08e3a4e375aeddc7, []int{19} |
| 980 | } |
| 981 | |
| 982 | type OfpFlowModFlags int32 |
| 983 | |
| 984 | const ( |
| 985 | OfpFlowModFlags_OFPFF_INVALID OfpFlowModFlags = 0 |
| 986 | OfpFlowModFlags_OFPFF_SEND_FLOW_REM OfpFlowModFlags = 1 |
| 987 | OfpFlowModFlags_OFPFF_CHECK_OVERLAP OfpFlowModFlags = 2 |
| 988 | OfpFlowModFlags_OFPFF_RESET_COUNTS OfpFlowModFlags = 4 |
| 989 | OfpFlowModFlags_OFPFF_NO_PKT_COUNTS OfpFlowModFlags = 8 |
| 990 | OfpFlowModFlags_OFPFF_NO_BYT_COUNTS OfpFlowModFlags = 16 |
| 991 | ) |
| 992 | |
| 993 | var OfpFlowModFlags_name = map[int32]string{ |
| 994 | 0: "OFPFF_INVALID", |
| 995 | 1: "OFPFF_SEND_FLOW_REM", |
| 996 | 2: "OFPFF_CHECK_OVERLAP", |
| 997 | 4: "OFPFF_RESET_COUNTS", |
| 998 | 8: "OFPFF_NO_PKT_COUNTS", |
| 999 | 16: "OFPFF_NO_BYT_COUNTS", |
| 1000 | } |
| 1001 | |
| 1002 | var OfpFlowModFlags_value = map[string]int32{ |
| 1003 | "OFPFF_INVALID": 0, |
| 1004 | "OFPFF_SEND_FLOW_REM": 1, |
| 1005 | "OFPFF_CHECK_OVERLAP": 2, |
| 1006 | "OFPFF_RESET_COUNTS": 4, |
| 1007 | "OFPFF_NO_PKT_COUNTS": 8, |
| 1008 | "OFPFF_NO_BYT_COUNTS": 16, |
| 1009 | } |
| 1010 | |
| 1011 | func (x OfpFlowModFlags) String() string { |
| 1012 | return proto.EnumName(OfpFlowModFlags_name, int32(x)) |
| 1013 | } |
| 1014 | |
| 1015 | func (OfpFlowModFlags) EnumDescriptor() ([]byte, []int) { |
| 1016 | return fileDescriptor_08e3a4e375aeddc7, []int{20} |
| 1017 | } |
| 1018 | |
| 1019 | // Group numbering. Groups can use any number up to OFPG_MAX. |
| 1020 | type OfpGroup int32 |
| 1021 | |
| 1022 | const ( |
| 1023 | OfpGroup_OFPG_INVALID OfpGroup = 0 |
| 1024 | // Last usable group number. |
| 1025 | OfpGroup_OFPG_MAX OfpGroup = 2147483392 |
| 1026 | // Fake groups. |
| 1027 | OfpGroup_OFPG_ALL OfpGroup = 2147483644 |
| 1028 | OfpGroup_OFPG_ANY OfpGroup = 2147483647 |
| 1029 | ) |
| 1030 | |
| 1031 | var OfpGroup_name = map[int32]string{ |
| 1032 | 0: "OFPG_INVALID", |
| 1033 | 2147483392: "OFPG_MAX", |
| 1034 | 2147483644: "OFPG_ALL", |
| 1035 | 2147483647: "OFPG_ANY", |
| 1036 | } |
| 1037 | |
| 1038 | var OfpGroup_value = map[string]int32{ |
| 1039 | "OFPG_INVALID": 0, |
| 1040 | "OFPG_MAX": 2147483392, |
| 1041 | "OFPG_ALL": 2147483644, |
| 1042 | "OFPG_ANY": 2147483647, |
| 1043 | } |
| 1044 | |
| 1045 | func (x OfpGroup) String() string { |
| 1046 | return proto.EnumName(OfpGroup_name, int32(x)) |
| 1047 | } |
| 1048 | |
| 1049 | func (OfpGroup) EnumDescriptor() ([]byte, []int) { |
| 1050 | return fileDescriptor_08e3a4e375aeddc7, []int{21} |
| 1051 | } |
| 1052 | |
| 1053 | // Group commands |
| 1054 | type OfpGroupModCommand int32 |
| 1055 | |
| 1056 | const ( |
| 1057 | OfpGroupModCommand_OFPGC_ADD OfpGroupModCommand = 0 |
| 1058 | OfpGroupModCommand_OFPGC_MODIFY OfpGroupModCommand = 1 |
| 1059 | OfpGroupModCommand_OFPGC_DELETE OfpGroupModCommand = 2 |
| 1060 | ) |
| 1061 | |
| 1062 | var OfpGroupModCommand_name = map[int32]string{ |
| 1063 | 0: "OFPGC_ADD", |
| 1064 | 1: "OFPGC_MODIFY", |
| 1065 | 2: "OFPGC_DELETE", |
| 1066 | } |
| 1067 | |
| 1068 | var OfpGroupModCommand_value = map[string]int32{ |
| 1069 | "OFPGC_ADD": 0, |
| 1070 | "OFPGC_MODIFY": 1, |
| 1071 | "OFPGC_DELETE": 2, |
| 1072 | } |
| 1073 | |
| 1074 | func (x OfpGroupModCommand) String() string { |
| 1075 | return proto.EnumName(OfpGroupModCommand_name, int32(x)) |
| 1076 | } |
| 1077 | |
| 1078 | func (OfpGroupModCommand) EnumDescriptor() ([]byte, []int) { |
| 1079 | return fileDescriptor_08e3a4e375aeddc7, []int{22} |
| 1080 | } |
| 1081 | |
| 1082 | // Group types. Values in the range [128; 255] are reserved for experimental |
| 1083 | // use. |
| 1084 | type OfpGroupType int32 |
| 1085 | |
| 1086 | const ( |
| 1087 | OfpGroupType_OFPGT_ALL OfpGroupType = 0 |
| 1088 | OfpGroupType_OFPGT_SELECT OfpGroupType = 1 |
| 1089 | OfpGroupType_OFPGT_INDIRECT OfpGroupType = 2 |
| 1090 | OfpGroupType_OFPGT_FF OfpGroupType = 3 |
| 1091 | ) |
| 1092 | |
| 1093 | var OfpGroupType_name = map[int32]string{ |
| 1094 | 0: "OFPGT_ALL", |
| 1095 | 1: "OFPGT_SELECT", |
| 1096 | 2: "OFPGT_INDIRECT", |
| 1097 | 3: "OFPGT_FF", |
| 1098 | } |
| 1099 | |
| 1100 | var OfpGroupType_value = map[string]int32{ |
| 1101 | "OFPGT_ALL": 0, |
| 1102 | "OFPGT_SELECT": 1, |
| 1103 | "OFPGT_INDIRECT": 2, |
| 1104 | "OFPGT_FF": 3, |
| 1105 | } |
| 1106 | |
| 1107 | func (x OfpGroupType) String() string { |
| 1108 | return proto.EnumName(OfpGroupType_name, int32(x)) |
| 1109 | } |
| 1110 | |
| 1111 | func (OfpGroupType) EnumDescriptor() ([]byte, []int) { |
| 1112 | return fileDescriptor_08e3a4e375aeddc7, []int{23} |
| 1113 | } |
| 1114 | |
| 1115 | // Why is this packet being sent to the controller? |
| 1116 | type OfpPacketInReason int32 |
| 1117 | |
| 1118 | const ( |
| 1119 | OfpPacketInReason_OFPR_NO_MATCH OfpPacketInReason = 0 |
| 1120 | OfpPacketInReason_OFPR_ACTION OfpPacketInReason = 1 |
| 1121 | OfpPacketInReason_OFPR_INVALID_TTL OfpPacketInReason = 2 |
| 1122 | ) |
| 1123 | |
| 1124 | var OfpPacketInReason_name = map[int32]string{ |
| 1125 | 0: "OFPR_NO_MATCH", |
| 1126 | 1: "OFPR_ACTION", |
| 1127 | 2: "OFPR_INVALID_TTL", |
| 1128 | } |
| 1129 | |
| 1130 | var OfpPacketInReason_value = map[string]int32{ |
| 1131 | "OFPR_NO_MATCH": 0, |
| 1132 | "OFPR_ACTION": 1, |
| 1133 | "OFPR_INVALID_TTL": 2, |
| 1134 | } |
| 1135 | |
| 1136 | func (x OfpPacketInReason) String() string { |
| 1137 | return proto.EnumName(OfpPacketInReason_name, int32(x)) |
| 1138 | } |
| 1139 | |
| 1140 | func (OfpPacketInReason) EnumDescriptor() ([]byte, []int) { |
| 1141 | return fileDescriptor_08e3a4e375aeddc7, []int{24} |
| 1142 | } |
| 1143 | |
| 1144 | // Why was this flow removed? |
| 1145 | type OfpFlowRemovedReason int32 |
| 1146 | |
| 1147 | const ( |
| 1148 | OfpFlowRemovedReason_OFPRR_IDLE_TIMEOUT OfpFlowRemovedReason = 0 |
| 1149 | OfpFlowRemovedReason_OFPRR_HARD_TIMEOUT OfpFlowRemovedReason = 1 |
| 1150 | OfpFlowRemovedReason_OFPRR_DELETE OfpFlowRemovedReason = 2 |
| 1151 | OfpFlowRemovedReason_OFPRR_GROUP_DELETE OfpFlowRemovedReason = 3 |
| 1152 | OfpFlowRemovedReason_OFPRR_METER_DELETE OfpFlowRemovedReason = 4 |
| 1153 | ) |
| 1154 | |
| 1155 | var OfpFlowRemovedReason_name = map[int32]string{ |
| 1156 | 0: "OFPRR_IDLE_TIMEOUT", |
| 1157 | 1: "OFPRR_HARD_TIMEOUT", |
| 1158 | 2: "OFPRR_DELETE", |
| 1159 | 3: "OFPRR_GROUP_DELETE", |
| 1160 | 4: "OFPRR_METER_DELETE", |
| 1161 | } |
| 1162 | |
| 1163 | var OfpFlowRemovedReason_value = map[string]int32{ |
| 1164 | "OFPRR_IDLE_TIMEOUT": 0, |
| 1165 | "OFPRR_HARD_TIMEOUT": 1, |
| 1166 | "OFPRR_DELETE": 2, |
| 1167 | "OFPRR_GROUP_DELETE": 3, |
| 1168 | "OFPRR_METER_DELETE": 4, |
| 1169 | } |
| 1170 | |
| 1171 | func (x OfpFlowRemovedReason) String() string { |
| 1172 | return proto.EnumName(OfpFlowRemovedReason_name, int32(x)) |
| 1173 | } |
| 1174 | |
| 1175 | func (OfpFlowRemovedReason) EnumDescriptor() ([]byte, []int) { |
| 1176 | return fileDescriptor_08e3a4e375aeddc7, []int{25} |
| 1177 | } |
| 1178 | |
| 1179 | // Meter numbering. Flow meters can use any number up to OFPM_MAX. |
| 1180 | type OfpMeter int32 |
| 1181 | |
| 1182 | const ( |
| 1183 | OfpMeter_OFPM_ZERO OfpMeter = 0 |
| 1184 | // Last usable meter. |
| 1185 | OfpMeter_OFPM_MAX OfpMeter = 2147418112 |
| 1186 | // Virtual meters. |
| 1187 | OfpMeter_OFPM_SLOWPATH OfpMeter = 2147483645 |
| 1188 | OfpMeter_OFPM_CONTROLLER OfpMeter = 2147483646 |
| 1189 | OfpMeter_OFPM_ALL OfpMeter = 2147483647 |
| 1190 | ) |
| 1191 | |
| 1192 | var OfpMeter_name = map[int32]string{ |
| 1193 | 0: "OFPM_ZERO", |
| 1194 | 2147418112: "OFPM_MAX", |
| 1195 | 2147483645: "OFPM_SLOWPATH", |
| 1196 | 2147483646: "OFPM_CONTROLLER", |
| 1197 | 2147483647: "OFPM_ALL", |
| 1198 | } |
| 1199 | |
| 1200 | var OfpMeter_value = map[string]int32{ |
| 1201 | "OFPM_ZERO": 0, |
| 1202 | "OFPM_MAX": 2147418112, |
| 1203 | "OFPM_SLOWPATH": 2147483645, |
| 1204 | "OFPM_CONTROLLER": 2147483646, |
| 1205 | "OFPM_ALL": 2147483647, |
| 1206 | } |
| 1207 | |
| 1208 | func (x OfpMeter) String() string { |
| 1209 | return proto.EnumName(OfpMeter_name, int32(x)) |
| 1210 | } |
| 1211 | |
| 1212 | func (OfpMeter) EnumDescriptor() ([]byte, []int) { |
| 1213 | return fileDescriptor_08e3a4e375aeddc7, []int{26} |
| 1214 | } |
| 1215 | |
| 1216 | // Meter band types |
| 1217 | type OfpMeterBandType int32 |
| 1218 | |
| 1219 | const ( |
| 1220 | OfpMeterBandType_OFPMBT_INVALID OfpMeterBandType = 0 |
| 1221 | OfpMeterBandType_OFPMBT_DROP OfpMeterBandType = 1 |
| 1222 | OfpMeterBandType_OFPMBT_DSCP_REMARK OfpMeterBandType = 2 |
| 1223 | OfpMeterBandType_OFPMBT_EXPERIMENTER OfpMeterBandType = 65535 |
| 1224 | ) |
| 1225 | |
| 1226 | var OfpMeterBandType_name = map[int32]string{ |
| 1227 | 0: "OFPMBT_INVALID", |
| 1228 | 1: "OFPMBT_DROP", |
| 1229 | 2: "OFPMBT_DSCP_REMARK", |
| 1230 | 65535: "OFPMBT_EXPERIMENTER", |
| 1231 | } |
| 1232 | |
| 1233 | var OfpMeterBandType_value = map[string]int32{ |
| 1234 | "OFPMBT_INVALID": 0, |
| 1235 | "OFPMBT_DROP": 1, |
| 1236 | "OFPMBT_DSCP_REMARK": 2, |
| 1237 | "OFPMBT_EXPERIMENTER": 65535, |
| 1238 | } |
| 1239 | |
| 1240 | func (x OfpMeterBandType) String() string { |
| 1241 | return proto.EnumName(OfpMeterBandType_name, int32(x)) |
| 1242 | } |
| 1243 | |
| 1244 | func (OfpMeterBandType) EnumDescriptor() ([]byte, []int) { |
| 1245 | return fileDescriptor_08e3a4e375aeddc7, []int{27} |
| 1246 | } |
| 1247 | |
| 1248 | // Meter commands |
| 1249 | type OfpMeterModCommand int32 |
| 1250 | |
| 1251 | const ( |
| 1252 | OfpMeterModCommand_OFPMC_ADD OfpMeterModCommand = 0 |
| 1253 | OfpMeterModCommand_OFPMC_MODIFY OfpMeterModCommand = 1 |
| 1254 | OfpMeterModCommand_OFPMC_DELETE OfpMeterModCommand = 2 |
| 1255 | ) |
| 1256 | |
| 1257 | var OfpMeterModCommand_name = map[int32]string{ |
| 1258 | 0: "OFPMC_ADD", |
| 1259 | 1: "OFPMC_MODIFY", |
| 1260 | 2: "OFPMC_DELETE", |
| 1261 | } |
| 1262 | |
| 1263 | var OfpMeterModCommand_value = map[string]int32{ |
| 1264 | "OFPMC_ADD": 0, |
| 1265 | "OFPMC_MODIFY": 1, |
| 1266 | "OFPMC_DELETE": 2, |
| 1267 | } |
| 1268 | |
| 1269 | func (x OfpMeterModCommand) String() string { |
| 1270 | return proto.EnumName(OfpMeterModCommand_name, int32(x)) |
| 1271 | } |
| 1272 | |
| 1273 | func (OfpMeterModCommand) EnumDescriptor() ([]byte, []int) { |
| 1274 | return fileDescriptor_08e3a4e375aeddc7, []int{28} |
| 1275 | } |
| 1276 | |
| 1277 | // Meter configuration flags |
| 1278 | type OfpMeterFlags int32 |
| 1279 | |
| 1280 | const ( |
| 1281 | OfpMeterFlags_OFPMF_INVALID OfpMeterFlags = 0 |
| 1282 | OfpMeterFlags_OFPMF_KBPS OfpMeterFlags = 1 |
| 1283 | OfpMeterFlags_OFPMF_PKTPS OfpMeterFlags = 2 |
| 1284 | OfpMeterFlags_OFPMF_BURST OfpMeterFlags = 4 |
| 1285 | OfpMeterFlags_OFPMF_STATS OfpMeterFlags = 8 |
| 1286 | ) |
| 1287 | |
| 1288 | var OfpMeterFlags_name = map[int32]string{ |
| 1289 | 0: "OFPMF_INVALID", |
| 1290 | 1: "OFPMF_KBPS", |
| 1291 | 2: "OFPMF_PKTPS", |
| 1292 | 4: "OFPMF_BURST", |
| 1293 | 8: "OFPMF_STATS", |
| 1294 | } |
| 1295 | |
| 1296 | var OfpMeterFlags_value = map[string]int32{ |
| 1297 | "OFPMF_INVALID": 0, |
| 1298 | "OFPMF_KBPS": 1, |
| 1299 | "OFPMF_PKTPS": 2, |
| 1300 | "OFPMF_BURST": 4, |
| 1301 | "OFPMF_STATS": 8, |
| 1302 | } |
| 1303 | |
| 1304 | func (x OfpMeterFlags) String() string { |
| 1305 | return proto.EnumName(OfpMeterFlags_name, int32(x)) |
| 1306 | } |
| 1307 | |
| 1308 | func (OfpMeterFlags) EnumDescriptor() ([]byte, []int) { |
| 1309 | return fileDescriptor_08e3a4e375aeddc7, []int{29} |
| 1310 | } |
| 1311 | |
| 1312 | // Values for 'type' in ofp_error_message. These values are immutable: they |
| 1313 | // will not change in future versions of the protocol (although new values may |
| 1314 | // be added). |
| 1315 | type OfpErrorType int32 |
| 1316 | |
| 1317 | const ( |
| 1318 | OfpErrorType_OFPET_HELLO_FAILED OfpErrorType = 0 |
| 1319 | OfpErrorType_OFPET_BAD_REQUEST OfpErrorType = 1 |
| 1320 | OfpErrorType_OFPET_BAD_ACTION OfpErrorType = 2 |
| 1321 | OfpErrorType_OFPET_BAD_INSTRUCTION OfpErrorType = 3 |
| 1322 | OfpErrorType_OFPET_BAD_MATCH OfpErrorType = 4 |
| 1323 | OfpErrorType_OFPET_FLOW_MOD_FAILED OfpErrorType = 5 |
| 1324 | OfpErrorType_OFPET_GROUP_MOD_FAILED OfpErrorType = 6 |
| 1325 | OfpErrorType_OFPET_PORT_MOD_FAILED OfpErrorType = 7 |
| 1326 | OfpErrorType_OFPET_TABLE_MOD_FAILED OfpErrorType = 8 |
| 1327 | OfpErrorType_OFPET_QUEUE_OP_FAILED OfpErrorType = 9 |
| 1328 | OfpErrorType_OFPET_SWITCH_CONFIG_FAILED OfpErrorType = 10 |
| 1329 | OfpErrorType_OFPET_ROLE_REQUEST_FAILED OfpErrorType = 11 |
| 1330 | OfpErrorType_OFPET_METER_MOD_FAILED OfpErrorType = 12 |
| 1331 | OfpErrorType_OFPET_TABLE_FEATURES_FAILED OfpErrorType = 13 |
| 1332 | OfpErrorType_OFPET_EXPERIMENTER OfpErrorType = 65535 |
| 1333 | ) |
| 1334 | |
| 1335 | var OfpErrorType_name = map[int32]string{ |
| 1336 | 0: "OFPET_HELLO_FAILED", |
| 1337 | 1: "OFPET_BAD_REQUEST", |
| 1338 | 2: "OFPET_BAD_ACTION", |
| 1339 | 3: "OFPET_BAD_INSTRUCTION", |
| 1340 | 4: "OFPET_BAD_MATCH", |
| 1341 | 5: "OFPET_FLOW_MOD_FAILED", |
| 1342 | 6: "OFPET_GROUP_MOD_FAILED", |
| 1343 | 7: "OFPET_PORT_MOD_FAILED", |
| 1344 | 8: "OFPET_TABLE_MOD_FAILED", |
| 1345 | 9: "OFPET_QUEUE_OP_FAILED", |
| 1346 | 10: "OFPET_SWITCH_CONFIG_FAILED", |
| 1347 | 11: "OFPET_ROLE_REQUEST_FAILED", |
| 1348 | 12: "OFPET_METER_MOD_FAILED", |
| 1349 | 13: "OFPET_TABLE_FEATURES_FAILED", |
| 1350 | 65535: "OFPET_EXPERIMENTER", |
| 1351 | } |
| 1352 | |
| 1353 | var OfpErrorType_value = map[string]int32{ |
| 1354 | "OFPET_HELLO_FAILED": 0, |
| 1355 | "OFPET_BAD_REQUEST": 1, |
| 1356 | "OFPET_BAD_ACTION": 2, |
| 1357 | "OFPET_BAD_INSTRUCTION": 3, |
| 1358 | "OFPET_BAD_MATCH": 4, |
| 1359 | "OFPET_FLOW_MOD_FAILED": 5, |
| 1360 | "OFPET_GROUP_MOD_FAILED": 6, |
| 1361 | "OFPET_PORT_MOD_FAILED": 7, |
| 1362 | "OFPET_TABLE_MOD_FAILED": 8, |
| 1363 | "OFPET_QUEUE_OP_FAILED": 9, |
| 1364 | "OFPET_SWITCH_CONFIG_FAILED": 10, |
| 1365 | "OFPET_ROLE_REQUEST_FAILED": 11, |
| 1366 | "OFPET_METER_MOD_FAILED": 12, |
| 1367 | "OFPET_TABLE_FEATURES_FAILED": 13, |
| 1368 | "OFPET_EXPERIMENTER": 65535, |
| 1369 | } |
| 1370 | |
| 1371 | func (x OfpErrorType) String() string { |
| 1372 | return proto.EnumName(OfpErrorType_name, int32(x)) |
| 1373 | } |
| 1374 | |
| 1375 | func (OfpErrorType) EnumDescriptor() ([]byte, []int) { |
| 1376 | return fileDescriptor_08e3a4e375aeddc7, []int{30} |
| 1377 | } |
| 1378 | |
| 1379 | // ofp_error_msg 'code' values for OFPET_HELLO_FAILED. 'data' contains an |
| 1380 | // ASCII text string that may give failure details. |
| 1381 | type OfpHelloFailedCode int32 |
| 1382 | |
| 1383 | const ( |
| 1384 | OfpHelloFailedCode_OFPHFC_INCOMPATIBLE OfpHelloFailedCode = 0 |
| 1385 | OfpHelloFailedCode_OFPHFC_EPERM OfpHelloFailedCode = 1 |
| 1386 | ) |
| 1387 | |
| 1388 | var OfpHelloFailedCode_name = map[int32]string{ |
| 1389 | 0: "OFPHFC_INCOMPATIBLE", |
| 1390 | 1: "OFPHFC_EPERM", |
| 1391 | } |
| 1392 | |
| 1393 | var OfpHelloFailedCode_value = map[string]int32{ |
| 1394 | "OFPHFC_INCOMPATIBLE": 0, |
| 1395 | "OFPHFC_EPERM": 1, |
| 1396 | } |
| 1397 | |
| 1398 | func (x OfpHelloFailedCode) String() string { |
| 1399 | return proto.EnumName(OfpHelloFailedCode_name, int32(x)) |
| 1400 | } |
| 1401 | |
| 1402 | func (OfpHelloFailedCode) EnumDescriptor() ([]byte, []int) { |
| 1403 | return fileDescriptor_08e3a4e375aeddc7, []int{31} |
| 1404 | } |
| 1405 | |
| 1406 | // ofp_error_msg 'code' values for OFPET_BAD_REQUEST. 'data' contains at least |
| 1407 | // the first 64 bytes of the failed request. |
| 1408 | type OfpBadRequestCode int32 |
| 1409 | |
| 1410 | const ( |
| 1411 | OfpBadRequestCode_OFPBRC_BAD_VERSION OfpBadRequestCode = 0 |
| 1412 | OfpBadRequestCode_OFPBRC_BAD_TYPE OfpBadRequestCode = 1 |
| 1413 | OfpBadRequestCode_OFPBRC_BAD_MULTIPART OfpBadRequestCode = 2 |
| 1414 | OfpBadRequestCode_OFPBRC_BAD_EXPERIMENTER OfpBadRequestCode = 3 |
| 1415 | OfpBadRequestCode_OFPBRC_BAD_EXP_TYPE OfpBadRequestCode = 4 |
| 1416 | OfpBadRequestCode_OFPBRC_EPERM OfpBadRequestCode = 5 |
| 1417 | OfpBadRequestCode_OFPBRC_BAD_LEN OfpBadRequestCode = 6 |
| 1418 | OfpBadRequestCode_OFPBRC_BUFFER_EMPTY OfpBadRequestCode = 7 |
| 1419 | OfpBadRequestCode_OFPBRC_BUFFER_UNKNOWN OfpBadRequestCode = 8 |
| 1420 | OfpBadRequestCode_OFPBRC_BAD_TABLE_ID OfpBadRequestCode = 9 |
| 1421 | OfpBadRequestCode_OFPBRC_IS_SLAVE OfpBadRequestCode = 10 |
| 1422 | OfpBadRequestCode_OFPBRC_BAD_PORT OfpBadRequestCode = 11 |
| 1423 | OfpBadRequestCode_OFPBRC_BAD_PACKET OfpBadRequestCode = 12 |
| 1424 | OfpBadRequestCode_OFPBRC_MULTIPART_BUFFER_OVERFLOW OfpBadRequestCode = 13 |
| 1425 | ) |
| 1426 | |
| 1427 | var OfpBadRequestCode_name = map[int32]string{ |
| 1428 | 0: "OFPBRC_BAD_VERSION", |
| 1429 | 1: "OFPBRC_BAD_TYPE", |
| 1430 | 2: "OFPBRC_BAD_MULTIPART", |
| 1431 | 3: "OFPBRC_BAD_EXPERIMENTER", |
| 1432 | 4: "OFPBRC_BAD_EXP_TYPE", |
| 1433 | 5: "OFPBRC_EPERM", |
| 1434 | 6: "OFPBRC_BAD_LEN", |
| 1435 | 7: "OFPBRC_BUFFER_EMPTY", |
| 1436 | 8: "OFPBRC_BUFFER_UNKNOWN", |
| 1437 | 9: "OFPBRC_BAD_TABLE_ID", |
| 1438 | 10: "OFPBRC_IS_SLAVE", |
| 1439 | 11: "OFPBRC_BAD_PORT", |
| 1440 | 12: "OFPBRC_BAD_PACKET", |
| 1441 | 13: "OFPBRC_MULTIPART_BUFFER_OVERFLOW", |
| 1442 | } |
| 1443 | |
| 1444 | var OfpBadRequestCode_value = map[string]int32{ |
| 1445 | "OFPBRC_BAD_VERSION": 0, |
| 1446 | "OFPBRC_BAD_TYPE": 1, |
| 1447 | "OFPBRC_BAD_MULTIPART": 2, |
| 1448 | "OFPBRC_BAD_EXPERIMENTER": 3, |
| 1449 | "OFPBRC_BAD_EXP_TYPE": 4, |
| 1450 | "OFPBRC_EPERM": 5, |
| 1451 | "OFPBRC_BAD_LEN": 6, |
| 1452 | "OFPBRC_BUFFER_EMPTY": 7, |
| 1453 | "OFPBRC_BUFFER_UNKNOWN": 8, |
| 1454 | "OFPBRC_BAD_TABLE_ID": 9, |
| 1455 | "OFPBRC_IS_SLAVE": 10, |
| 1456 | "OFPBRC_BAD_PORT": 11, |
| 1457 | "OFPBRC_BAD_PACKET": 12, |
| 1458 | "OFPBRC_MULTIPART_BUFFER_OVERFLOW": 13, |
| 1459 | } |
| 1460 | |
| 1461 | func (x OfpBadRequestCode) String() string { |
| 1462 | return proto.EnumName(OfpBadRequestCode_name, int32(x)) |
| 1463 | } |
| 1464 | |
| 1465 | func (OfpBadRequestCode) EnumDescriptor() ([]byte, []int) { |
| 1466 | return fileDescriptor_08e3a4e375aeddc7, []int{32} |
| 1467 | } |
| 1468 | |
| 1469 | // ofp_error_msg 'code' values for OFPET_BAD_ACTION. 'data' contains at least |
| 1470 | // the first 64 bytes of the failed request. |
| 1471 | type OfpBadActionCode int32 |
| 1472 | |
| 1473 | const ( |
| 1474 | OfpBadActionCode_OFPBAC_BAD_TYPE OfpBadActionCode = 0 |
| 1475 | OfpBadActionCode_OFPBAC_BAD_LEN OfpBadActionCode = 1 |
| 1476 | OfpBadActionCode_OFPBAC_BAD_EXPERIMENTER OfpBadActionCode = 2 |
| 1477 | OfpBadActionCode_OFPBAC_BAD_EXP_TYPE OfpBadActionCode = 3 |
| 1478 | OfpBadActionCode_OFPBAC_BAD_OUT_PORT OfpBadActionCode = 4 |
| 1479 | OfpBadActionCode_OFPBAC_BAD_ARGUMENT OfpBadActionCode = 5 |
| 1480 | OfpBadActionCode_OFPBAC_EPERM OfpBadActionCode = 6 |
| 1481 | OfpBadActionCode_OFPBAC_TOO_MANY OfpBadActionCode = 7 |
| 1482 | OfpBadActionCode_OFPBAC_BAD_QUEUE OfpBadActionCode = 8 |
| 1483 | OfpBadActionCode_OFPBAC_BAD_OUT_GROUP OfpBadActionCode = 9 |
| 1484 | OfpBadActionCode_OFPBAC_MATCH_INCONSISTENT OfpBadActionCode = 10 |
| 1485 | OfpBadActionCode_OFPBAC_UNSUPPORTED_ORDER OfpBadActionCode = 11 |
| 1486 | OfpBadActionCode_OFPBAC_BAD_TAG OfpBadActionCode = 12 |
| 1487 | OfpBadActionCode_OFPBAC_BAD_SET_TYPE OfpBadActionCode = 13 |
| 1488 | OfpBadActionCode_OFPBAC_BAD_SET_LEN OfpBadActionCode = 14 |
| 1489 | OfpBadActionCode_OFPBAC_BAD_SET_ARGUMENT OfpBadActionCode = 15 |
| 1490 | ) |
| 1491 | |
| 1492 | var OfpBadActionCode_name = map[int32]string{ |
| 1493 | 0: "OFPBAC_BAD_TYPE", |
| 1494 | 1: "OFPBAC_BAD_LEN", |
| 1495 | 2: "OFPBAC_BAD_EXPERIMENTER", |
| 1496 | 3: "OFPBAC_BAD_EXP_TYPE", |
| 1497 | 4: "OFPBAC_BAD_OUT_PORT", |
| 1498 | 5: "OFPBAC_BAD_ARGUMENT", |
| 1499 | 6: "OFPBAC_EPERM", |
| 1500 | 7: "OFPBAC_TOO_MANY", |
| 1501 | 8: "OFPBAC_BAD_QUEUE", |
| 1502 | 9: "OFPBAC_BAD_OUT_GROUP", |
| 1503 | 10: "OFPBAC_MATCH_INCONSISTENT", |
| 1504 | 11: "OFPBAC_UNSUPPORTED_ORDER", |
| 1505 | 12: "OFPBAC_BAD_TAG", |
| 1506 | 13: "OFPBAC_BAD_SET_TYPE", |
| 1507 | 14: "OFPBAC_BAD_SET_LEN", |
| 1508 | 15: "OFPBAC_BAD_SET_ARGUMENT", |
| 1509 | } |
| 1510 | |
| 1511 | var OfpBadActionCode_value = map[string]int32{ |
| 1512 | "OFPBAC_BAD_TYPE": 0, |
| 1513 | "OFPBAC_BAD_LEN": 1, |
| 1514 | "OFPBAC_BAD_EXPERIMENTER": 2, |
| 1515 | "OFPBAC_BAD_EXP_TYPE": 3, |
| 1516 | "OFPBAC_BAD_OUT_PORT": 4, |
| 1517 | "OFPBAC_BAD_ARGUMENT": 5, |
| 1518 | "OFPBAC_EPERM": 6, |
| 1519 | "OFPBAC_TOO_MANY": 7, |
| 1520 | "OFPBAC_BAD_QUEUE": 8, |
| 1521 | "OFPBAC_BAD_OUT_GROUP": 9, |
| 1522 | "OFPBAC_MATCH_INCONSISTENT": 10, |
| 1523 | "OFPBAC_UNSUPPORTED_ORDER": 11, |
| 1524 | "OFPBAC_BAD_TAG": 12, |
| 1525 | "OFPBAC_BAD_SET_TYPE": 13, |
| 1526 | "OFPBAC_BAD_SET_LEN": 14, |
| 1527 | "OFPBAC_BAD_SET_ARGUMENT": 15, |
| 1528 | } |
| 1529 | |
| 1530 | func (x OfpBadActionCode) String() string { |
| 1531 | return proto.EnumName(OfpBadActionCode_name, int32(x)) |
| 1532 | } |
| 1533 | |
| 1534 | func (OfpBadActionCode) EnumDescriptor() ([]byte, []int) { |
| 1535 | return fileDescriptor_08e3a4e375aeddc7, []int{33} |
| 1536 | } |
| 1537 | |
| 1538 | // ofp_error_msg 'code' values for OFPET_BAD_INSTRUCTION. 'data' contains at |
| 1539 | // least the first 64 bytes of the failed request. |
| 1540 | type OfpBadInstructionCode int32 |
| 1541 | |
| 1542 | const ( |
| 1543 | OfpBadInstructionCode_OFPBIC_UNKNOWN_INST OfpBadInstructionCode = 0 |
| 1544 | OfpBadInstructionCode_OFPBIC_UNSUP_INST OfpBadInstructionCode = 1 |
| 1545 | OfpBadInstructionCode_OFPBIC_BAD_TABLE_ID OfpBadInstructionCode = 2 |
| 1546 | OfpBadInstructionCode_OFPBIC_UNSUP_METADATA OfpBadInstructionCode = 3 |
| 1547 | OfpBadInstructionCode_OFPBIC_UNSUP_METADATA_MASK OfpBadInstructionCode = 4 |
| 1548 | OfpBadInstructionCode_OFPBIC_BAD_EXPERIMENTER OfpBadInstructionCode = 5 |
| 1549 | OfpBadInstructionCode_OFPBIC_BAD_EXP_TYPE OfpBadInstructionCode = 6 |
| 1550 | OfpBadInstructionCode_OFPBIC_BAD_LEN OfpBadInstructionCode = 7 |
| 1551 | OfpBadInstructionCode_OFPBIC_EPERM OfpBadInstructionCode = 8 |
| 1552 | ) |
| 1553 | |
| 1554 | var OfpBadInstructionCode_name = map[int32]string{ |
| 1555 | 0: "OFPBIC_UNKNOWN_INST", |
| 1556 | 1: "OFPBIC_UNSUP_INST", |
| 1557 | 2: "OFPBIC_BAD_TABLE_ID", |
| 1558 | 3: "OFPBIC_UNSUP_METADATA", |
| 1559 | 4: "OFPBIC_UNSUP_METADATA_MASK", |
| 1560 | 5: "OFPBIC_BAD_EXPERIMENTER", |
| 1561 | 6: "OFPBIC_BAD_EXP_TYPE", |
| 1562 | 7: "OFPBIC_BAD_LEN", |
| 1563 | 8: "OFPBIC_EPERM", |
| 1564 | } |
| 1565 | |
| 1566 | var OfpBadInstructionCode_value = map[string]int32{ |
| 1567 | "OFPBIC_UNKNOWN_INST": 0, |
| 1568 | "OFPBIC_UNSUP_INST": 1, |
| 1569 | "OFPBIC_BAD_TABLE_ID": 2, |
| 1570 | "OFPBIC_UNSUP_METADATA": 3, |
| 1571 | "OFPBIC_UNSUP_METADATA_MASK": 4, |
| 1572 | "OFPBIC_BAD_EXPERIMENTER": 5, |
| 1573 | "OFPBIC_BAD_EXP_TYPE": 6, |
| 1574 | "OFPBIC_BAD_LEN": 7, |
| 1575 | "OFPBIC_EPERM": 8, |
| 1576 | } |
| 1577 | |
| 1578 | func (x OfpBadInstructionCode) String() string { |
| 1579 | return proto.EnumName(OfpBadInstructionCode_name, int32(x)) |
| 1580 | } |
| 1581 | |
| 1582 | func (OfpBadInstructionCode) EnumDescriptor() ([]byte, []int) { |
| 1583 | return fileDescriptor_08e3a4e375aeddc7, []int{34} |
| 1584 | } |
| 1585 | |
| 1586 | // ofp_error_msg 'code' values for OFPET_BAD_MATCH. 'data' contains at least |
| 1587 | // the first 64 bytes of the failed request. |
| 1588 | type OfpBadMatchCode int32 |
| 1589 | |
| 1590 | const ( |
| 1591 | OfpBadMatchCode_OFPBMC_BAD_TYPE OfpBadMatchCode = 0 |
| 1592 | OfpBadMatchCode_OFPBMC_BAD_LEN OfpBadMatchCode = 1 |
| 1593 | OfpBadMatchCode_OFPBMC_BAD_TAG OfpBadMatchCode = 2 |
| 1594 | OfpBadMatchCode_OFPBMC_BAD_DL_ADDR_MASK OfpBadMatchCode = 3 |
| 1595 | OfpBadMatchCode_OFPBMC_BAD_NW_ADDR_MASK OfpBadMatchCode = 4 |
| 1596 | OfpBadMatchCode_OFPBMC_BAD_WILDCARDS OfpBadMatchCode = 5 |
| 1597 | OfpBadMatchCode_OFPBMC_BAD_FIELD OfpBadMatchCode = 6 |
| 1598 | OfpBadMatchCode_OFPBMC_BAD_VALUE OfpBadMatchCode = 7 |
| 1599 | OfpBadMatchCode_OFPBMC_BAD_MASK OfpBadMatchCode = 8 |
| 1600 | OfpBadMatchCode_OFPBMC_BAD_PREREQ OfpBadMatchCode = 9 |
| 1601 | OfpBadMatchCode_OFPBMC_DUP_FIELD OfpBadMatchCode = 10 |
| 1602 | OfpBadMatchCode_OFPBMC_EPERM OfpBadMatchCode = 11 |
| 1603 | ) |
| 1604 | |
| 1605 | var OfpBadMatchCode_name = map[int32]string{ |
| 1606 | 0: "OFPBMC_BAD_TYPE", |
| 1607 | 1: "OFPBMC_BAD_LEN", |
| 1608 | 2: "OFPBMC_BAD_TAG", |
| 1609 | 3: "OFPBMC_BAD_DL_ADDR_MASK", |
| 1610 | 4: "OFPBMC_BAD_NW_ADDR_MASK", |
| 1611 | 5: "OFPBMC_BAD_WILDCARDS", |
| 1612 | 6: "OFPBMC_BAD_FIELD", |
| 1613 | 7: "OFPBMC_BAD_VALUE", |
| 1614 | 8: "OFPBMC_BAD_MASK", |
| 1615 | 9: "OFPBMC_BAD_PREREQ", |
| 1616 | 10: "OFPBMC_DUP_FIELD", |
| 1617 | 11: "OFPBMC_EPERM", |
| 1618 | } |
| 1619 | |
| 1620 | var OfpBadMatchCode_value = map[string]int32{ |
| 1621 | "OFPBMC_BAD_TYPE": 0, |
| 1622 | "OFPBMC_BAD_LEN": 1, |
| 1623 | "OFPBMC_BAD_TAG": 2, |
| 1624 | "OFPBMC_BAD_DL_ADDR_MASK": 3, |
| 1625 | "OFPBMC_BAD_NW_ADDR_MASK": 4, |
| 1626 | "OFPBMC_BAD_WILDCARDS": 5, |
| 1627 | "OFPBMC_BAD_FIELD": 6, |
| 1628 | "OFPBMC_BAD_VALUE": 7, |
| 1629 | "OFPBMC_BAD_MASK": 8, |
| 1630 | "OFPBMC_BAD_PREREQ": 9, |
| 1631 | "OFPBMC_DUP_FIELD": 10, |
| 1632 | "OFPBMC_EPERM": 11, |
| 1633 | } |
| 1634 | |
| 1635 | func (x OfpBadMatchCode) String() string { |
| 1636 | return proto.EnumName(OfpBadMatchCode_name, int32(x)) |
| 1637 | } |
| 1638 | |
| 1639 | func (OfpBadMatchCode) EnumDescriptor() ([]byte, []int) { |
| 1640 | return fileDescriptor_08e3a4e375aeddc7, []int{35} |
| 1641 | } |
| 1642 | |
| 1643 | // ofp_error_msg 'code' values for OFPET_FLOW_MOD_FAILED. 'data' contains |
| 1644 | // at least the first 64 bytes of the failed request. |
| 1645 | type OfpFlowModFailedCode int32 |
| 1646 | |
| 1647 | const ( |
| 1648 | OfpFlowModFailedCode_OFPFMFC_UNKNOWN OfpFlowModFailedCode = 0 |
| 1649 | OfpFlowModFailedCode_OFPFMFC_TABLE_FULL OfpFlowModFailedCode = 1 |
| 1650 | OfpFlowModFailedCode_OFPFMFC_BAD_TABLE_ID OfpFlowModFailedCode = 2 |
| 1651 | OfpFlowModFailedCode_OFPFMFC_OVERLAP OfpFlowModFailedCode = 3 |
| 1652 | OfpFlowModFailedCode_OFPFMFC_EPERM OfpFlowModFailedCode = 4 |
| 1653 | OfpFlowModFailedCode_OFPFMFC_BAD_TIMEOUT OfpFlowModFailedCode = 5 |
| 1654 | OfpFlowModFailedCode_OFPFMFC_BAD_COMMAND OfpFlowModFailedCode = 6 |
| 1655 | OfpFlowModFailedCode_OFPFMFC_BAD_FLAGS OfpFlowModFailedCode = 7 |
| 1656 | ) |
| 1657 | |
| 1658 | var OfpFlowModFailedCode_name = map[int32]string{ |
| 1659 | 0: "OFPFMFC_UNKNOWN", |
| 1660 | 1: "OFPFMFC_TABLE_FULL", |
| 1661 | 2: "OFPFMFC_BAD_TABLE_ID", |
| 1662 | 3: "OFPFMFC_OVERLAP", |
| 1663 | 4: "OFPFMFC_EPERM", |
| 1664 | 5: "OFPFMFC_BAD_TIMEOUT", |
| 1665 | 6: "OFPFMFC_BAD_COMMAND", |
| 1666 | 7: "OFPFMFC_BAD_FLAGS", |
| 1667 | } |
| 1668 | |
| 1669 | var OfpFlowModFailedCode_value = map[string]int32{ |
| 1670 | "OFPFMFC_UNKNOWN": 0, |
| 1671 | "OFPFMFC_TABLE_FULL": 1, |
| 1672 | "OFPFMFC_BAD_TABLE_ID": 2, |
| 1673 | "OFPFMFC_OVERLAP": 3, |
| 1674 | "OFPFMFC_EPERM": 4, |
| 1675 | "OFPFMFC_BAD_TIMEOUT": 5, |
| 1676 | "OFPFMFC_BAD_COMMAND": 6, |
| 1677 | "OFPFMFC_BAD_FLAGS": 7, |
| 1678 | } |
| 1679 | |
| 1680 | func (x OfpFlowModFailedCode) String() string { |
| 1681 | return proto.EnumName(OfpFlowModFailedCode_name, int32(x)) |
| 1682 | } |
| 1683 | |
| 1684 | func (OfpFlowModFailedCode) EnumDescriptor() ([]byte, []int) { |
| 1685 | return fileDescriptor_08e3a4e375aeddc7, []int{36} |
| 1686 | } |
| 1687 | |
| 1688 | // ofp_error_msg 'code' values for OFPET_GROUP_MOD_FAILED. 'data' contains |
| 1689 | // at least the first 64 bytes of the failed request. |
| 1690 | type OfpGroupModFailedCode int32 |
| 1691 | |
| 1692 | const ( |
| 1693 | OfpGroupModFailedCode_OFPGMFC_GROUP_EXISTS OfpGroupModFailedCode = 0 |
| 1694 | OfpGroupModFailedCode_OFPGMFC_INVALID_GROUP OfpGroupModFailedCode = 1 |
| 1695 | OfpGroupModFailedCode_OFPGMFC_WEIGHT_UNSUPPORTED OfpGroupModFailedCode = 2 |
| 1696 | OfpGroupModFailedCode_OFPGMFC_OUT_OF_GROUPS OfpGroupModFailedCode = 3 |
| 1697 | OfpGroupModFailedCode_OFPGMFC_OUT_OF_BUCKETS OfpGroupModFailedCode = 4 |
| 1698 | OfpGroupModFailedCode_OFPGMFC_CHAINING_UNSUPPORTED OfpGroupModFailedCode = 5 |
| 1699 | OfpGroupModFailedCode_OFPGMFC_WATCH_UNSUPPORTED OfpGroupModFailedCode = 6 |
| 1700 | OfpGroupModFailedCode_OFPGMFC_LOOP OfpGroupModFailedCode = 7 |
| 1701 | OfpGroupModFailedCode_OFPGMFC_UNKNOWN_GROUP OfpGroupModFailedCode = 8 |
| 1702 | OfpGroupModFailedCode_OFPGMFC_CHAINED_GROUP OfpGroupModFailedCode = 9 |
| 1703 | OfpGroupModFailedCode_OFPGMFC_BAD_TYPE OfpGroupModFailedCode = 10 |
| 1704 | OfpGroupModFailedCode_OFPGMFC_BAD_COMMAND OfpGroupModFailedCode = 11 |
| 1705 | OfpGroupModFailedCode_OFPGMFC_BAD_BUCKET OfpGroupModFailedCode = 12 |
| 1706 | OfpGroupModFailedCode_OFPGMFC_BAD_WATCH OfpGroupModFailedCode = 13 |
| 1707 | OfpGroupModFailedCode_OFPGMFC_EPERM OfpGroupModFailedCode = 14 |
| 1708 | ) |
| 1709 | |
| 1710 | var OfpGroupModFailedCode_name = map[int32]string{ |
| 1711 | 0: "OFPGMFC_GROUP_EXISTS", |
| 1712 | 1: "OFPGMFC_INVALID_GROUP", |
| 1713 | 2: "OFPGMFC_WEIGHT_UNSUPPORTED", |
| 1714 | 3: "OFPGMFC_OUT_OF_GROUPS", |
| 1715 | 4: "OFPGMFC_OUT_OF_BUCKETS", |
| 1716 | 5: "OFPGMFC_CHAINING_UNSUPPORTED", |
| 1717 | 6: "OFPGMFC_WATCH_UNSUPPORTED", |
| 1718 | 7: "OFPGMFC_LOOP", |
| 1719 | 8: "OFPGMFC_UNKNOWN_GROUP", |
| 1720 | 9: "OFPGMFC_CHAINED_GROUP", |
| 1721 | 10: "OFPGMFC_BAD_TYPE", |
| 1722 | 11: "OFPGMFC_BAD_COMMAND", |
| 1723 | 12: "OFPGMFC_BAD_BUCKET", |
| 1724 | 13: "OFPGMFC_BAD_WATCH", |
| 1725 | 14: "OFPGMFC_EPERM", |
| 1726 | } |
| 1727 | |
| 1728 | var OfpGroupModFailedCode_value = map[string]int32{ |
| 1729 | "OFPGMFC_GROUP_EXISTS": 0, |
| 1730 | "OFPGMFC_INVALID_GROUP": 1, |
| 1731 | "OFPGMFC_WEIGHT_UNSUPPORTED": 2, |
| 1732 | "OFPGMFC_OUT_OF_GROUPS": 3, |
| 1733 | "OFPGMFC_OUT_OF_BUCKETS": 4, |
| 1734 | "OFPGMFC_CHAINING_UNSUPPORTED": 5, |
| 1735 | "OFPGMFC_WATCH_UNSUPPORTED": 6, |
| 1736 | "OFPGMFC_LOOP": 7, |
| 1737 | "OFPGMFC_UNKNOWN_GROUP": 8, |
| 1738 | "OFPGMFC_CHAINED_GROUP": 9, |
| 1739 | "OFPGMFC_BAD_TYPE": 10, |
| 1740 | "OFPGMFC_BAD_COMMAND": 11, |
| 1741 | "OFPGMFC_BAD_BUCKET": 12, |
| 1742 | "OFPGMFC_BAD_WATCH": 13, |
| 1743 | "OFPGMFC_EPERM": 14, |
| 1744 | } |
| 1745 | |
| 1746 | func (x OfpGroupModFailedCode) String() string { |
| 1747 | return proto.EnumName(OfpGroupModFailedCode_name, int32(x)) |
| 1748 | } |
| 1749 | |
| 1750 | func (OfpGroupModFailedCode) EnumDescriptor() ([]byte, []int) { |
| 1751 | return fileDescriptor_08e3a4e375aeddc7, []int{37} |
| 1752 | } |
| 1753 | |
| 1754 | // ofp_error_msg 'code' values for OFPET_PORT_MOD_FAILED. 'data' contains |
| 1755 | // at least the first 64 bytes of the failed request. |
| 1756 | type OfpPortModFailedCode int32 |
| 1757 | |
| 1758 | const ( |
| 1759 | OfpPortModFailedCode_OFPPMFC_BAD_PORT OfpPortModFailedCode = 0 |
| 1760 | OfpPortModFailedCode_OFPPMFC_BAD_HW_ADDR OfpPortModFailedCode = 1 |
| 1761 | OfpPortModFailedCode_OFPPMFC_BAD_CONFIG OfpPortModFailedCode = 2 |
| 1762 | OfpPortModFailedCode_OFPPMFC_BAD_ADVERTISE OfpPortModFailedCode = 3 |
| 1763 | OfpPortModFailedCode_OFPPMFC_EPERM OfpPortModFailedCode = 4 |
| 1764 | ) |
| 1765 | |
| 1766 | var OfpPortModFailedCode_name = map[int32]string{ |
| 1767 | 0: "OFPPMFC_BAD_PORT", |
| 1768 | 1: "OFPPMFC_BAD_HW_ADDR", |
| 1769 | 2: "OFPPMFC_BAD_CONFIG", |
| 1770 | 3: "OFPPMFC_BAD_ADVERTISE", |
| 1771 | 4: "OFPPMFC_EPERM", |
| 1772 | } |
| 1773 | |
| 1774 | var OfpPortModFailedCode_value = map[string]int32{ |
| 1775 | "OFPPMFC_BAD_PORT": 0, |
| 1776 | "OFPPMFC_BAD_HW_ADDR": 1, |
| 1777 | "OFPPMFC_BAD_CONFIG": 2, |
| 1778 | "OFPPMFC_BAD_ADVERTISE": 3, |
| 1779 | "OFPPMFC_EPERM": 4, |
| 1780 | } |
| 1781 | |
| 1782 | func (x OfpPortModFailedCode) String() string { |
| 1783 | return proto.EnumName(OfpPortModFailedCode_name, int32(x)) |
| 1784 | } |
| 1785 | |
| 1786 | func (OfpPortModFailedCode) EnumDescriptor() ([]byte, []int) { |
| 1787 | return fileDescriptor_08e3a4e375aeddc7, []int{38} |
| 1788 | } |
| 1789 | |
| 1790 | // ofp_error_msg 'code' values for OFPET_TABLE_MOD_FAILED. 'data' contains |
| 1791 | // at least the first 64 bytes of the failed request. |
| 1792 | type OfpTableModFailedCode int32 |
| 1793 | |
| 1794 | const ( |
| 1795 | OfpTableModFailedCode_OFPTMFC_BAD_TABLE OfpTableModFailedCode = 0 |
| 1796 | OfpTableModFailedCode_OFPTMFC_BAD_CONFIG OfpTableModFailedCode = 1 |
| 1797 | OfpTableModFailedCode_OFPTMFC_EPERM OfpTableModFailedCode = 2 |
| 1798 | ) |
| 1799 | |
| 1800 | var OfpTableModFailedCode_name = map[int32]string{ |
| 1801 | 0: "OFPTMFC_BAD_TABLE", |
| 1802 | 1: "OFPTMFC_BAD_CONFIG", |
| 1803 | 2: "OFPTMFC_EPERM", |
| 1804 | } |
| 1805 | |
| 1806 | var OfpTableModFailedCode_value = map[string]int32{ |
| 1807 | "OFPTMFC_BAD_TABLE": 0, |
| 1808 | "OFPTMFC_BAD_CONFIG": 1, |
| 1809 | "OFPTMFC_EPERM": 2, |
| 1810 | } |
| 1811 | |
| 1812 | func (x OfpTableModFailedCode) String() string { |
| 1813 | return proto.EnumName(OfpTableModFailedCode_name, int32(x)) |
| 1814 | } |
| 1815 | |
| 1816 | func (OfpTableModFailedCode) EnumDescriptor() ([]byte, []int) { |
| 1817 | return fileDescriptor_08e3a4e375aeddc7, []int{39} |
| 1818 | } |
| 1819 | |
| 1820 | // ofp_error msg 'code' values for OFPET_QUEUE_OP_FAILED. 'data' contains |
| 1821 | // at least the first 64 bytes of the failed request |
| 1822 | type OfpQueueOpFailedCode int32 |
| 1823 | |
| 1824 | const ( |
| 1825 | OfpQueueOpFailedCode_OFPQOFC_BAD_PORT OfpQueueOpFailedCode = 0 |
| 1826 | OfpQueueOpFailedCode_OFPQOFC_BAD_QUEUE OfpQueueOpFailedCode = 1 |
| 1827 | OfpQueueOpFailedCode_OFPQOFC_EPERM OfpQueueOpFailedCode = 2 |
| 1828 | ) |
| 1829 | |
| 1830 | var OfpQueueOpFailedCode_name = map[int32]string{ |
| 1831 | 0: "OFPQOFC_BAD_PORT", |
| 1832 | 1: "OFPQOFC_BAD_QUEUE", |
| 1833 | 2: "OFPQOFC_EPERM", |
| 1834 | } |
| 1835 | |
| 1836 | var OfpQueueOpFailedCode_value = map[string]int32{ |
| 1837 | "OFPQOFC_BAD_PORT": 0, |
| 1838 | "OFPQOFC_BAD_QUEUE": 1, |
| 1839 | "OFPQOFC_EPERM": 2, |
| 1840 | } |
| 1841 | |
| 1842 | func (x OfpQueueOpFailedCode) String() string { |
| 1843 | return proto.EnumName(OfpQueueOpFailedCode_name, int32(x)) |
| 1844 | } |
| 1845 | |
| 1846 | func (OfpQueueOpFailedCode) EnumDescriptor() ([]byte, []int) { |
| 1847 | return fileDescriptor_08e3a4e375aeddc7, []int{40} |
| 1848 | } |
| 1849 | |
| 1850 | // ofp_error_msg 'code' values for OFPET_SWITCH_CONFIG_FAILED. 'data' contains |
| 1851 | // at least the first 64 bytes of the failed request. |
| 1852 | type OfpSwitchConfigFailedCode int32 |
| 1853 | |
| 1854 | const ( |
| 1855 | OfpSwitchConfigFailedCode_OFPSCFC_BAD_FLAGS OfpSwitchConfigFailedCode = 0 |
| 1856 | OfpSwitchConfigFailedCode_OFPSCFC_BAD_LEN OfpSwitchConfigFailedCode = 1 |
| 1857 | OfpSwitchConfigFailedCode_OFPSCFC_EPERM OfpSwitchConfigFailedCode = 2 |
| 1858 | ) |
| 1859 | |
| 1860 | var OfpSwitchConfigFailedCode_name = map[int32]string{ |
| 1861 | 0: "OFPSCFC_BAD_FLAGS", |
| 1862 | 1: "OFPSCFC_BAD_LEN", |
| 1863 | 2: "OFPSCFC_EPERM", |
| 1864 | } |
| 1865 | |
| 1866 | var OfpSwitchConfigFailedCode_value = map[string]int32{ |
| 1867 | "OFPSCFC_BAD_FLAGS": 0, |
| 1868 | "OFPSCFC_BAD_LEN": 1, |
| 1869 | "OFPSCFC_EPERM": 2, |
| 1870 | } |
| 1871 | |
| 1872 | func (x OfpSwitchConfigFailedCode) String() string { |
| 1873 | return proto.EnumName(OfpSwitchConfigFailedCode_name, int32(x)) |
| 1874 | } |
| 1875 | |
| 1876 | func (OfpSwitchConfigFailedCode) EnumDescriptor() ([]byte, []int) { |
| 1877 | return fileDescriptor_08e3a4e375aeddc7, []int{41} |
| 1878 | } |
| 1879 | |
| 1880 | // ofp_error_msg 'code' values for OFPET_ROLE_REQUEST_FAILED. 'data' contains |
| 1881 | // at least the first 64 bytes of the failed request. |
| 1882 | type OfpRoleRequestFailedCode int32 |
| 1883 | |
| 1884 | const ( |
| 1885 | OfpRoleRequestFailedCode_OFPRRFC_STALE OfpRoleRequestFailedCode = 0 |
| 1886 | OfpRoleRequestFailedCode_OFPRRFC_UNSUP OfpRoleRequestFailedCode = 1 |
| 1887 | OfpRoleRequestFailedCode_OFPRRFC_BAD_ROLE OfpRoleRequestFailedCode = 2 |
| 1888 | ) |
| 1889 | |
| 1890 | var OfpRoleRequestFailedCode_name = map[int32]string{ |
| 1891 | 0: "OFPRRFC_STALE", |
| 1892 | 1: "OFPRRFC_UNSUP", |
| 1893 | 2: "OFPRRFC_BAD_ROLE", |
| 1894 | } |
| 1895 | |
| 1896 | var OfpRoleRequestFailedCode_value = map[string]int32{ |
| 1897 | "OFPRRFC_STALE": 0, |
| 1898 | "OFPRRFC_UNSUP": 1, |
| 1899 | "OFPRRFC_BAD_ROLE": 2, |
| 1900 | } |
| 1901 | |
| 1902 | func (x OfpRoleRequestFailedCode) String() string { |
| 1903 | return proto.EnumName(OfpRoleRequestFailedCode_name, int32(x)) |
| 1904 | } |
| 1905 | |
| 1906 | func (OfpRoleRequestFailedCode) EnumDescriptor() ([]byte, []int) { |
| 1907 | return fileDescriptor_08e3a4e375aeddc7, []int{42} |
| 1908 | } |
| 1909 | |
| 1910 | // ofp_error_msg 'code' values for OFPET_METER_MOD_FAILED. 'data' contains |
| 1911 | // at least the first 64 bytes of the failed request. |
| 1912 | type OfpMeterModFailedCode int32 |
| 1913 | |
| 1914 | const ( |
Esin Karaman | ccb714b | 2019-11-29 15:02:06 +0000 | [diff] [blame] | 1915 | OfpMeterModFailedCode_OFPMMFC_UNKNOWN OfpMeterModFailedCode = 0 |
| 1916 | OfpMeterModFailedCode_OFPMMFC_METER_EXISTS OfpMeterModFailedCode = 1 |
| 1917 | OfpMeterModFailedCode_OFPMMFC_INVALID_METER OfpMeterModFailedCode = 2 |
| 1918 | OfpMeterModFailedCode_OFPMMFC_UNKNOWN_METER OfpMeterModFailedCode = 3 |
| 1919 | OfpMeterModFailedCode_OFPMMFC_BAD_COMMAND OfpMeterModFailedCode = 4 |
| 1920 | OfpMeterModFailedCode_OFPMMFC_BAD_FLAGS OfpMeterModFailedCode = 5 |
| 1921 | OfpMeterModFailedCode_OFPMMFC_BAD_RATE OfpMeterModFailedCode = 6 |
| 1922 | OfpMeterModFailedCode_OFPMMFC_BAD_BURST OfpMeterModFailedCode = 7 |
| 1923 | OfpMeterModFailedCode_OFPMMFC_BAD_BAND OfpMeterModFailedCode = 8 |
| 1924 | OfpMeterModFailedCode_OFPMMFC_BAD_BAND_DETAIL OfpMeterModFailedCode = 9 |
| 1925 | OfpMeterModFailedCode_OFPMMFC_OUT_OF_METERS OfpMeterModFailedCode = 10 |
| 1926 | OfpMeterModFailedCode_OFPMMFC_OUT_OF_BANDS OfpMeterModFailedCode = 11 |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 1927 | ) |
| 1928 | |
| 1929 | var OfpMeterModFailedCode_name = map[int32]string{ |
| 1930 | 0: "OFPMMFC_UNKNOWN", |
| 1931 | 1: "OFPMMFC_METER_EXISTS", |
| 1932 | 2: "OFPMMFC_INVALID_METER", |
| 1933 | 3: "OFPMMFC_UNKNOWN_METER", |
| 1934 | 4: "OFPMMFC_BAD_COMMAND", |
| 1935 | 5: "OFPMMFC_BAD_FLAGS", |
| 1936 | 6: "OFPMMFC_BAD_RATE", |
| 1937 | 7: "OFPMMFC_BAD_BURST", |
| 1938 | 8: "OFPMMFC_BAD_BAND", |
Esin Karaman | ccb714b | 2019-11-29 15:02:06 +0000 | [diff] [blame] | 1939 | 9: "OFPMMFC_BAD_BAND_DETAIL", |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 1940 | 10: "OFPMMFC_OUT_OF_METERS", |
| 1941 | 11: "OFPMMFC_OUT_OF_BANDS", |
| 1942 | } |
| 1943 | |
| 1944 | var OfpMeterModFailedCode_value = map[string]int32{ |
Esin Karaman | ccb714b | 2019-11-29 15:02:06 +0000 | [diff] [blame] | 1945 | "OFPMMFC_UNKNOWN": 0, |
| 1946 | "OFPMMFC_METER_EXISTS": 1, |
| 1947 | "OFPMMFC_INVALID_METER": 2, |
| 1948 | "OFPMMFC_UNKNOWN_METER": 3, |
| 1949 | "OFPMMFC_BAD_COMMAND": 4, |
| 1950 | "OFPMMFC_BAD_FLAGS": 5, |
| 1951 | "OFPMMFC_BAD_RATE": 6, |
| 1952 | "OFPMMFC_BAD_BURST": 7, |
| 1953 | "OFPMMFC_BAD_BAND": 8, |
| 1954 | "OFPMMFC_BAD_BAND_DETAIL": 9, |
| 1955 | "OFPMMFC_OUT_OF_METERS": 10, |
| 1956 | "OFPMMFC_OUT_OF_BANDS": 11, |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 1957 | } |
| 1958 | |
| 1959 | func (x OfpMeterModFailedCode) String() string { |
| 1960 | return proto.EnumName(OfpMeterModFailedCode_name, int32(x)) |
| 1961 | } |
| 1962 | |
| 1963 | func (OfpMeterModFailedCode) EnumDescriptor() ([]byte, []int) { |
| 1964 | return fileDescriptor_08e3a4e375aeddc7, []int{43} |
| 1965 | } |
| 1966 | |
| 1967 | // ofp_error_msg 'code' values for OFPET_TABLE_FEATURES_FAILED. 'data' contains |
| 1968 | // at least the first 64 bytes of the failed request. |
| 1969 | type OfpTableFeaturesFailedCode int32 |
| 1970 | |
| 1971 | const ( |
| 1972 | OfpTableFeaturesFailedCode_OFPTFFC_BAD_TABLE OfpTableFeaturesFailedCode = 0 |
| 1973 | OfpTableFeaturesFailedCode_OFPTFFC_BAD_METADATA OfpTableFeaturesFailedCode = 1 |
| 1974 | OfpTableFeaturesFailedCode_OFPTFFC_BAD_TYPE OfpTableFeaturesFailedCode = 2 |
| 1975 | OfpTableFeaturesFailedCode_OFPTFFC_BAD_LEN OfpTableFeaturesFailedCode = 3 |
| 1976 | OfpTableFeaturesFailedCode_OFPTFFC_BAD_ARGUMENT OfpTableFeaturesFailedCode = 4 |
| 1977 | OfpTableFeaturesFailedCode_OFPTFFC_EPERM OfpTableFeaturesFailedCode = 5 |
| 1978 | ) |
| 1979 | |
| 1980 | var OfpTableFeaturesFailedCode_name = map[int32]string{ |
| 1981 | 0: "OFPTFFC_BAD_TABLE", |
| 1982 | 1: "OFPTFFC_BAD_METADATA", |
| 1983 | 2: "OFPTFFC_BAD_TYPE", |
| 1984 | 3: "OFPTFFC_BAD_LEN", |
| 1985 | 4: "OFPTFFC_BAD_ARGUMENT", |
| 1986 | 5: "OFPTFFC_EPERM", |
| 1987 | } |
| 1988 | |
| 1989 | var OfpTableFeaturesFailedCode_value = map[string]int32{ |
| 1990 | "OFPTFFC_BAD_TABLE": 0, |
| 1991 | "OFPTFFC_BAD_METADATA": 1, |
| 1992 | "OFPTFFC_BAD_TYPE": 2, |
| 1993 | "OFPTFFC_BAD_LEN": 3, |
| 1994 | "OFPTFFC_BAD_ARGUMENT": 4, |
| 1995 | "OFPTFFC_EPERM": 5, |
| 1996 | } |
| 1997 | |
| 1998 | func (x OfpTableFeaturesFailedCode) String() string { |
| 1999 | return proto.EnumName(OfpTableFeaturesFailedCode_name, int32(x)) |
| 2000 | } |
| 2001 | |
| 2002 | func (OfpTableFeaturesFailedCode) EnumDescriptor() ([]byte, []int) { |
| 2003 | return fileDescriptor_08e3a4e375aeddc7, []int{44} |
| 2004 | } |
| 2005 | |
| 2006 | type OfpMultipartType int32 |
| 2007 | |
| 2008 | const ( |
| 2009 | // Description of this OpenFlow switch. |
| 2010 | // The request body is empty. |
| 2011 | // The reply body is struct ofp_desc. |
| 2012 | OfpMultipartType_OFPMP_DESC OfpMultipartType = 0 |
| 2013 | // Individual flow statistics. |
| 2014 | // The request body is struct ofp_flow_stats_request. |
| 2015 | // The reply body is an array of struct ofp_flow_stats. |
| 2016 | OfpMultipartType_OFPMP_FLOW OfpMultipartType = 1 |
| 2017 | // Aggregate flow statistics. |
| 2018 | // The request body is struct ofp_aggregate_stats_request. |
| 2019 | // The reply body is struct ofp_aggregate_stats_reply. |
| 2020 | OfpMultipartType_OFPMP_AGGREGATE OfpMultipartType = 2 |
| 2021 | // Flow table statistics. |
| 2022 | // The request body is empty. |
| 2023 | // The reply body is an array of struct ofp_table_stats. |
| 2024 | OfpMultipartType_OFPMP_TABLE OfpMultipartType = 3 |
| 2025 | // Port statistics. |
| 2026 | // The request body is struct ofp_port_stats_request. |
| 2027 | // The reply body is an array of struct ofp_port_stats. |
| 2028 | OfpMultipartType_OFPMP_PORT_STATS OfpMultipartType = 4 |
| 2029 | // Queue statistics for a port |
| 2030 | // The request body is struct ofp_queue_stats_request. |
| 2031 | // The reply body is an array of struct ofp_queue_stats |
| 2032 | OfpMultipartType_OFPMP_QUEUE OfpMultipartType = 5 |
| 2033 | // Group counter statistics. |
| 2034 | // The request body is struct ofp_group_stats_request. |
| 2035 | // The reply is an array of struct ofp_group_stats. |
| 2036 | OfpMultipartType_OFPMP_GROUP OfpMultipartType = 6 |
| 2037 | // Group description. |
| 2038 | // The request body is empty. |
| 2039 | // The reply body is an array of struct ofp_group_desc. |
| 2040 | OfpMultipartType_OFPMP_GROUP_DESC OfpMultipartType = 7 |
| 2041 | // Group features. |
| 2042 | // The request body is empty. |
| 2043 | // The reply body is struct ofp_group_features. |
| 2044 | OfpMultipartType_OFPMP_GROUP_FEATURES OfpMultipartType = 8 |
| 2045 | // Meter statistics. |
| 2046 | // The request body is struct ofp_meter_multipart_requests. |
| 2047 | // The reply body is an array of struct ofp_meter_stats. |
| 2048 | OfpMultipartType_OFPMP_METER OfpMultipartType = 9 |
| 2049 | // Meter configuration. |
| 2050 | // The request body is struct ofp_meter_multipart_requests. |
| 2051 | // The reply body is an array of struct ofp_meter_config. |
| 2052 | OfpMultipartType_OFPMP_METER_CONFIG OfpMultipartType = 10 |
| 2053 | // Meter features. |
| 2054 | // The request body is empty. |
| 2055 | // The reply body is struct ofp_meter_features. |
| 2056 | OfpMultipartType_OFPMP_METER_FEATURES OfpMultipartType = 11 |
| 2057 | // Table features. |
| 2058 | // The request body is either empty or contains an array of |
| 2059 | // struct ofp_table_features containing the controller's |
| 2060 | // desired view of the switch. If the switch is unable to |
| 2061 | // set the specified view an error is returned. |
| 2062 | // The reply body is an array of struct ofp_table_features. |
| 2063 | OfpMultipartType_OFPMP_TABLE_FEATURES OfpMultipartType = 12 |
| 2064 | // Port description. |
| 2065 | // The request body is empty. |
| 2066 | // The reply body is an array of struct ofp_port. |
| 2067 | OfpMultipartType_OFPMP_PORT_DESC OfpMultipartType = 13 |
| 2068 | // Experimenter extension. |
| 2069 | // The request and reply bodies begin with |
| 2070 | // struct ofp_experimenter_multipart_header. |
| 2071 | // The request and reply bodies are otherwise experimenter-defined. |
| 2072 | OfpMultipartType_OFPMP_EXPERIMENTER OfpMultipartType = 65535 |
| 2073 | ) |
| 2074 | |
| 2075 | var OfpMultipartType_name = map[int32]string{ |
| 2076 | 0: "OFPMP_DESC", |
| 2077 | 1: "OFPMP_FLOW", |
| 2078 | 2: "OFPMP_AGGREGATE", |
| 2079 | 3: "OFPMP_TABLE", |
| 2080 | 4: "OFPMP_PORT_STATS", |
| 2081 | 5: "OFPMP_QUEUE", |
| 2082 | 6: "OFPMP_GROUP", |
| 2083 | 7: "OFPMP_GROUP_DESC", |
| 2084 | 8: "OFPMP_GROUP_FEATURES", |
| 2085 | 9: "OFPMP_METER", |
| 2086 | 10: "OFPMP_METER_CONFIG", |
| 2087 | 11: "OFPMP_METER_FEATURES", |
| 2088 | 12: "OFPMP_TABLE_FEATURES", |
| 2089 | 13: "OFPMP_PORT_DESC", |
| 2090 | 65535: "OFPMP_EXPERIMENTER", |
| 2091 | } |
| 2092 | |
| 2093 | var OfpMultipartType_value = map[string]int32{ |
| 2094 | "OFPMP_DESC": 0, |
| 2095 | "OFPMP_FLOW": 1, |
| 2096 | "OFPMP_AGGREGATE": 2, |
| 2097 | "OFPMP_TABLE": 3, |
| 2098 | "OFPMP_PORT_STATS": 4, |
| 2099 | "OFPMP_QUEUE": 5, |
| 2100 | "OFPMP_GROUP": 6, |
| 2101 | "OFPMP_GROUP_DESC": 7, |
| 2102 | "OFPMP_GROUP_FEATURES": 8, |
| 2103 | "OFPMP_METER": 9, |
| 2104 | "OFPMP_METER_CONFIG": 10, |
| 2105 | "OFPMP_METER_FEATURES": 11, |
| 2106 | "OFPMP_TABLE_FEATURES": 12, |
| 2107 | "OFPMP_PORT_DESC": 13, |
| 2108 | "OFPMP_EXPERIMENTER": 65535, |
| 2109 | } |
| 2110 | |
| 2111 | func (x OfpMultipartType) String() string { |
| 2112 | return proto.EnumName(OfpMultipartType_name, int32(x)) |
| 2113 | } |
| 2114 | |
| 2115 | func (OfpMultipartType) EnumDescriptor() ([]byte, []int) { |
| 2116 | return fileDescriptor_08e3a4e375aeddc7, []int{45} |
| 2117 | } |
| 2118 | |
| 2119 | type OfpMultipartRequestFlags int32 |
| 2120 | |
| 2121 | const ( |
| 2122 | OfpMultipartRequestFlags_OFPMPF_REQ_INVALID OfpMultipartRequestFlags = 0 |
| 2123 | OfpMultipartRequestFlags_OFPMPF_REQ_MORE OfpMultipartRequestFlags = 1 |
| 2124 | ) |
| 2125 | |
| 2126 | var OfpMultipartRequestFlags_name = map[int32]string{ |
| 2127 | 0: "OFPMPF_REQ_INVALID", |
| 2128 | 1: "OFPMPF_REQ_MORE", |
| 2129 | } |
| 2130 | |
| 2131 | var OfpMultipartRequestFlags_value = map[string]int32{ |
| 2132 | "OFPMPF_REQ_INVALID": 0, |
| 2133 | "OFPMPF_REQ_MORE": 1, |
| 2134 | } |
| 2135 | |
| 2136 | func (x OfpMultipartRequestFlags) String() string { |
| 2137 | return proto.EnumName(OfpMultipartRequestFlags_name, int32(x)) |
| 2138 | } |
| 2139 | |
| 2140 | func (OfpMultipartRequestFlags) EnumDescriptor() ([]byte, []int) { |
| 2141 | return fileDescriptor_08e3a4e375aeddc7, []int{46} |
| 2142 | } |
| 2143 | |
| 2144 | type OfpMultipartReplyFlags int32 |
| 2145 | |
| 2146 | const ( |
| 2147 | OfpMultipartReplyFlags_OFPMPF_REPLY_INVALID OfpMultipartReplyFlags = 0 |
| 2148 | OfpMultipartReplyFlags_OFPMPF_REPLY_MORE OfpMultipartReplyFlags = 1 |
| 2149 | ) |
| 2150 | |
| 2151 | var OfpMultipartReplyFlags_name = map[int32]string{ |
| 2152 | 0: "OFPMPF_REPLY_INVALID", |
| 2153 | 1: "OFPMPF_REPLY_MORE", |
| 2154 | } |
| 2155 | |
| 2156 | var OfpMultipartReplyFlags_value = map[string]int32{ |
| 2157 | "OFPMPF_REPLY_INVALID": 0, |
| 2158 | "OFPMPF_REPLY_MORE": 1, |
| 2159 | } |
| 2160 | |
| 2161 | func (x OfpMultipartReplyFlags) String() string { |
| 2162 | return proto.EnumName(OfpMultipartReplyFlags_name, int32(x)) |
| 2163 | } |
| 2164 | |
| 2165 | func (OfpMultipartReplyFlags) EnumDescriptor() ([]byte, []int) { |
| 2166 | return fileDescriptor_08e3a4e375aeddc7, []int{47} |
| 2167 | } |
| 2168 | |
| 2169 | // Table Feature property types. |
| 2170 | // Low order bit cleared indicates a property for a regular Flow Entry. |
| 2171 | // Low order bit set indicates a property for the Table-Miss Flow Entry. |
| 2172 | type OfpTableFeaturePropType int32 |
| 2173 | |
| 2174 | const ( |
| 2175 | OfpTableFeaturePropType_OFPTFPT_INSTRUCTIONS OfpTableFeaturePropType = 0 |
| 2176 | OfpTableFeaturePropType_OFPTFPT_INSTRUCTIONS_MISS OfpTableFeaturePropType = 1 |
| 2177 | OfpTableFeaturePropType_OFPTFPT_NEXT_TABLES OfpTableFeaturePropType = 2 |
| 2178 | OfpTableFeaturePropType_OFPTFPT_NEXT_TABLES_MISS OfpTableFeaturePropType = 3 |
| 2179 | OfpTableFeaturePropType_OFPTFPT_WRITE_ACTIONS OfpTableFeaturePropType = 4 |
| 2180 | OfpTableFeaturePropType_OFPTFPT_WRITE_ACTIONS_MISS OfpTableFeaturePropType = 5 |
| 2181 | OfpTableFeaturePropType_OFPTFPT_APPLY_ACTIONS OfpTableFeaturePropType = 6 |
| 2182 | OfpTableFeaturePropType_OFPTFPT_APPLY_ACTIONS_MISS OfpTableFeaturePropType = 7 |
| 2183 | OfpTableFeaturePropType_OFPTFPT_MATCH OfpTableFeaturePropType = 8 |
| 2184 | OfpTableFeaturePropType_OFPTFPT_WILDCARDS OfpTableFeaturePropType = 10 |
| 2185 | OfpTableFeaturePropType_OFPTFPT_WRITE_SETFIELD OfpTableFeaturePropType = 12 |
| 2186 | OfpTableFeaturePropType_OFPTFPT_WRITE_SETFIELD_MISS OfpTableFeaturePropType = 13 |
| 2187 | OfpTableFeaturePropType_OFPTFPT_APPLY_SETFIELD OfpTableFeaturePropType = 14 |
| 2188 | OfpTableFeaturePropType_OFPTFPT_APPLY_SETFIELD_MISS OfpTableFeaturePropType = 15 |
| 2189 | OfpTableFeaturePropType_OFPTFPT_EXPERIMENTER OfpTableFeaturePropType = 65534 |
| 2190 | OfpTableFeaturePropType_OFPTFPT_EXPERIMENTER_MISS OfpTableFeaturePropType = 65535 |
| 2191 | ) |
| 2192 | |
| 2193 | var OfpTableFeaturePropType_name = map[int32]string{ |
| 2194 | 0: "OFPTFPT_INSTRUCTIONS", |
| 2195 | 1: "OFPTFPT_INSTRUCTIONS_MISS", |
| 2196 | 2: "OFPTFPT_NEXT_TABLES", |
| 2197 | 3: "OFPTFPT_NEXT_TABLES_MISS", |
| 2198 | 4: "OFPTFPT_WRITE_ACTIONS", |
| 2199 | 5: "OFPTFPT_WRITE_ACTIONS_MISS", |
| 2200 | 6: "OFPTFPT_APPLY_ACTIONS", |
| 2201 | 7: "OFPTFPT_APPLY_ACTIONS_MISS", |
| 2202 | 8: "OFPTFPT_MATCH", |
| 2203 | 10: "OFPTFPT_WILDCARDS", |
| 2204 | 12: "OFPTFPT_WRITE_SETFIELD", |
| 2205 | 13: "OFPTFPT_WRITE_SETFIELD_MISS", |
| 2206 | 14: "OFPTFPT_APPLY_SETFIELD", |
| 2207 | 15: "OFPTFPT_APPLY_SETFIELD_MISS", |
| 2208 | 65534: "OFPTFPT_EXPERIMENTER", |
| 2209 | 65535: "OFPTFPT_EXPERIMENTER_MISS", |
| 2210 | } |
| 2211 | |
| 2212 | var OfpTableFeaturePropType_value = map[string]int32{ |
| 2213 | "OFPTFPT_INSTRUCTIONS": 0, |
| 2214 | "OFPTFPT_INSTRUCTIONS_MISS": 1, |
| 2215 | "OFPTFPT_NEXT_TABLES": 2, |
| 2216 | "OFPTFPT_NEXT_TABLES_MISS": 3, |
| 2217 | "OFPTFPT_WRITE_ACTIONS": 4, |
| 2218 | "OFPTFPT_WRITE_ACTIONS_MISS": 5, |
| 2219 | "OFPTFPT_APPLY_ACTIONS": 6, |
| 2220 | "OFPTFPT_APPLY_ACTIONS_MISS": 7, |
| 2221 | "OFPTFPT_MATCH": 8, |
| 2222 | "OFPTFPT_WILDCARDS": 10, |
| 2223 | "OFPTFPT_WRITE_SETFIELD": 12, |
| 2224 | "OFPTFPT_WRITE_SETFIELD_MISS": 13, |
| 2225 | "OFPTFPT_APPLY_SETFIELD": 14, |
| 2226 | "OFPTFPT_APPLY_SETFIELD_MISS": 15, |
| 2227 | "OFPTFPT_EXPERIMENTER": 65534, |
| 2228 | "OFPTFPT_EXPERIMENTER_MISS": 65535, |
| 2229 | } |
| 2230 | |
| 2231 | func (x OfpTableFeaturePropType) String() string { |
| 2232 | return proto.EnumName(OfpTableFeaturePropType_name, int32(x)) |
| 2233 | } |
| 2234 | |
| 2235 | func (OfpTableFeaturePropType) EnumDescriptor() ([]byte, []int) { |
| 2236 | return fileDescriptor_08e3a4e375aeddc7, []int{48} |
| 2237 | } |
| 2238 | |
| 2239 | // Group configuration flags |
| 2240 | type OfpGroupCapabilities int32 |
| 2241 | |
| 2242 | const ( |
| 2243 | OfpGroupCapabilities_OFPGFC_INVALID OfpGroupCapabilities = 0 |
| 2244 | OfpGroupCapabilities_OFPGFC_SELECT_WEIGHT OfpGroupCapabilities = 1 |
| 2245 | OfpGroupCapabilities_OFPGFC_SELECT_LIVENESS OfpGroupCapabilities = 2 |
| 2246 | OfpGroupCapabilities_OFPGFC_CHAINING OfpGroupCapabilities = 4 |
| 2247 | OfpGroupCapabilities_OFPGFC_CHAINING_CHECKS OfpGroupCapabilities = 8 |
| 2248 | ) |
| 2249 | |
| 2250 | var OfpGroupCapabilities_name = map[int32]string{ |
| 2251 | 0: "OFPGFC_INVALID", |
| 2252 | 1: "OFPGFC_SELECT_WEIGHT", |
| 2253 | 2: "OFPGFC_SELECT_LIVENESS", |
| 2254 | 4: "OFPGFC_CHAINING", |
| 2255 | 8: "OFPGFC_CHAINING_CHECKS", |
| 2256 | } |
| 2257 | |
| 2258 | var OfpGroupCapabilities_value = map[string]int32{ |
| 2259 | "OFPGFC_INVALID": 0, |
| 2260 | "OFPGFC_SELECT_WEIGHT": 1, |
| 2261 | "OFPGFC_SELECT_LIVENESS": 2, |
| 2262 | "OFPGFC_CHAINING": 4, |
| 2263 | "OFPGFC_CHAINING_CHECKS": 8, |
| 2264 | } |
| 2265 | |
| 2266 | func (x OfpGroupCapabilities) String() string { |
| 2267 | return proto.EnumName(OfpGroupCapabilities_name, int32(x)) |
| 2268 | } |
| 2269 | |
| 2270 | func (OfpGroupCapabilities) EnumDescriptor() ([]byte, []int) { |
| 2271 | return fileDescriptor_08e3a4e375aeddc7, []int{49} |
| 2272 | } |
| 2273 | |
| 2274 | type OfpQueueProperties int32 |
| 2275 | |
| 2276 | const ( |
| 2277 | OfpQueueProperties_OFPQT_INVALID OfpQueueProperties = 0 |
| 2278 | OfpQueueProperties_OFPQT_MIN_RATE OfpQueueProperties = 1 |
| 2279 | OfpQueueProperties_OFPQT_MAX_RATE OfpQueueProperties = 2 |
| 2280 | OfpQueueProperties_OFPQT_EXPERIMENTER OfpQueueProperties = 65535 |
| 2281 | ) |
| 2282 | |
| 2283 | var OfpQueueProperties_name = map[int32]string{ |
| 2284 | 0: "OFPQT_INVALID", |
| 2285 | 1: "OFPQT_MIN_RATE", |
| 2286 | 2: "OFPQT_MAX_RATE", |
| 2287 | 65535: "OFPQT_EXPERIMENTER", |
| 2288 | } |
| 2289 | |
| 2290 | var OfpQueueProperties_value = map[string]int32{ |
| 2291 | "OFPQT_INVALID": 0, |
| 2292 | "OFPQT_MIN_RATE": 1, |
| 2293 | "OFPQT_MAX_RATE": 2, |
| 2294 | "OFPQT_EXPERIMENTER": 65535, |
| 2295 | } |
| 2296 | |
| 2297 | func (x OfpQueueProperties) String() string { |
| 2298 | return proto.EnumName(OfpQueueProperties_name, int32(x)) |
| 2299 | } |
| 2300 | |
| 2301 | func (OfpQueueProperties) EnumDescriptor() ([]byte, []int) { |
| 2302 | return fileDescriptor_08e3a4e375aeddc7, []int{50} |
| 2303 | } |
| 2304 | |
| 2305 | // Controller roles. |
| 2306 | type OfpControllerRole int32 |
| 2307 | |
| 2308 | const ( |
| 2309 | OfpControllerRole_OFPCR_ROLE_NOCHANGE OfpControllerRole = 0 |
| 2310 | OfpControllerRole_OFPCR_ROLE_EQUAL OfpControllerRole = 1 |
| 2311 | OfpControllerRole_OFPCR_ROLE_MASTER OfpControllerRole = 2 |
| 2312 | OfpControllerRole_OFPCR_ROLE_SLAVE OfpControllerRole = 3 |
| 2313 | ) |
| 2314 | |
| 2315 | var OfpControllerRole_name = map[int32]string{ |
| 2316 | 0: "OFPCR_ROLE_NOCHANGE", |
| 2317 | 1: "OFPCR_ROLE_EQUAL", |
| 2318 | 2: "OFPCR_ROLE_MASTER", |
| 2319 | 3: "OFPCR_ROLE_SLAVE", |
| 2320 | } |
| 2321 | |
| 2322 | var OfpControllerRole_value = map[string]int32{ |
| 2323 | "OFPCR_ROLE_NOCHANGE": 0, |
| 2324 | "OFPCR_ROLE_EQUAL": 1, |
| 2325 | "OFPCR_ROLE_MASTER": 2, |
| 2326 | "OFPCR_ROLE_SLAVE": 3, |
| 2327 | } |
| 2328 | |
| 2329 | func (x OfpControllerRole) String() string { |
| 2330 | return proto.EnumName(OfpControllerRole_name, int32(x)) |
| 2331 | } |
| 2332 | |
| 2333 | func (OfpControllerRole) EnumDescriptor() ([]byte, []int) { |
| 2334 | return fileDescriptor_08e3a4e375aeddc7, []int{51} |
| 2335 | } |
| 2336 | |
| 2337 | // Header on all OpenFlow packets. |
| 2338 | type OfpHeader struct { |
| 2339 | Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` |
| 2340 | Type OfpType `protobuf:"varint,2,opt,name=type,proto3,enum=openflow_13.OfpType" json:"type,omitempty"` |
| 2341 | Xid uint32 `protobuf:"varint,3,opt,name=xid,proto3" json:"xid,omitempty"` |
| 2342 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 2343 | XXX_unrecognized []byte `json:"-"` |
| 2344 | XXX_sizecache int32 `json:"-"` |
| 2345 | } |
| 2346 | |
| 2347 | func (m *OfpHeader) Reset() { *m = OfpHeader{} } |
| 2348 | func (m *OfpHeader) String() string { return proto.CompactTextString(m) } |
| 2349 | func (*OfpHeader) ProtoMessage() {} |
| 2350 | func (*OfpHeader) Descriptor() ([]byte, []int) { |
| 2351 | return fileDescriptor_08e3a4e375aeddc7, []int{0} |
| 2352 | } |
| 2353 | |
| 2354 | func (m *OfpHeader) XXX_Unmarshal(b []byte) error { |
| 2355 | return xxx_messageInfo_OfpHeader.Unmarshal(m, b) |
| 2356 | } |
| 2357 | func (m *OfpHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 2358 | return xxx_messageInfo_OfpHeader.Marshal(b, m, deterministic) |
| 2359 | } |
| 2360 | func (m *OfpHeader) XXX_Merge(src proto.Message) { |
| 2361 | xxx_messageInfo_OfpHeader.Merge(m, src) |
| 2362 | } |
| 2363 | func (m *OfpHeader) XXX_Size() int { |
| 2364 | return xxx_messageInfo_OfpHeader.Size(m) |
| 2365 | } |
| 2366 | func (m *OfpHeader) XXX_DiscardUnknown() { |
| 2367 | xxx_messageInfo_OfpHeader.DiscardUnknown(m) |
| 2368 | } |
| 2369 | |
| 2370 | var xxx_messageInfo_OfpHeader proto.InternalMessageInfo |
| 2371 | |
| 2372 | func (m *OfpHeader) GetVersion() uint32 { |
| 2373 | if m != nil { |
| 2374 | return m.Version |
| 2375 | } |
| 2376 | return 0 |
| 2377 | } |
| 2378 | |
| 2379 | func (m *OfpHeader) GetType() OfpType { |
| 2380 | if m != nil { |
| 2381 | return m.Type |
| 2382 | } |
| 2383 | return OfpType_OFPT_HELLO |
| 2384 | } |
| 2385 | |
| 2386 | func (m *OfpHeader) GetXid() uint32 { |
| 2387 | if m != nil { |
| 2388 | return m.Xid |
| 2389 | } |
| 2390 | return 0 |
| 2391 | } |
| 2392 | |
| 2393 | // Common header for all Hello Elements |
| 2394 | type OfpHelloElemHeader struct { |
| 2395 | Type OfpHelloElemType `protobuf:"varint,1,opt,name=type,proto3,enum=openflow_13.OfpHelloElemType" json:"type,omitempty"` |
| 2396 | // Types that are valid to be assigned to Element: |
| 2397 | // *OfpHelloElemHeader_Versionbitmap |
| 2398 | Element isOfpHelloElemHeader_Element `protobuf_oneof:"element"` |
| 2399 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 2400 | XXX_unrecognized []byte `json:"-"` |
| 2401 | XXX_sizecache int32 `json:"-"` |
| 2402 | } |
| 2403 | |
| 2404 | func (m *OfpHelloElemHeader) Reset() { *m = OfpHelloElemHeader{} } |
| 2405 | func (m *OfpHelloElemHeader) String() string { return proto.CompactTextString(m) } |
| 2406 | func (*OfpHelloElemHeader) ProtoMessage() {} |
| 2407 | func (*OfpHelloElemHeader) Descriptor() ([]byte, []int) { |
| 2408 | return fileDescriptor_08e3a4e375aeddc7, []int{1} |
| 2409 | } |
| 2410 | |
| 2411 | func (m *OfpHelloElemHeader) XXX_Unmarshal(b []byte) error { |
| 2412 | return xxx_messageInfo_OfpHelloElemHeader.Unmarshal(m, b) |
| 2413 | } |
| 2414 | func (m *OfpHelloElemHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 2415 | return xxx_messageInfo_OfpHelloElemHeader.Marshal(b, m, deterministic) |
| 2416 | } |
| 2417 | func (m *OfpHelloElemHeader) XXX_Merge(src proto.Message) { |
| 2418 | xxx_messageInfo_OfpHelloElemHeader.Merge(m, src) |
| 2419 | } |
| 2420 | func (m *OfpHelloElemHeader) XXX_Size() int { |
| 2421 | return xxx_messageInfo_OfpHelloElemHeader.Size(m) |
| 2422 | } |
| 2423 | func (m *OfpHelloElemHeader) XXX_DiscardUnknown() { |
| 2424 | xxx_messageInfo_OfpHelloElemHeader.DiscardUnknown(m) |
| 2425 | } |
| 2426 | |
| 2427 | var xxx_messageInfo_OfpHelloElemHeader proto.InternalMessageInfo |
| 2428 | |
| 2429 | func (m *OfpHelloElemHeader) GetType() OfpHelloElemType { |
| 2430 | if m != nil { |
| 2431 | return m.Type |
| 2432 | } |
| 2433 | return OfpHelloElemType_OFPHET_INVALID |
| 2434 | } |
| 2435 | |
| 2436 | type isOfpHelloElemHeader_Element interface { |
| 2437 | isOfpHelloElemHeader_Element() |
| 2438 | } |
| 2439 | |
| 2440 | type OfpHelloElemHeader_Versionbitmap struct { |
| 2441 | Versionbitmap *OfpHelloElemVersionbitmap `protobuf:"bytes,2,opt,name=versionbitmap,proto3,oneof"` |
| 2442 | } |
| 2443 | |
| 2444 | func (*OfpHelloElemHeader_Versionbitmap) isOfpHelloElemHeader_Element() {} |
| 2445 | |
| 2446 | func (m *OfpHelloElemHeader) GetElement() isOfpHelloElemHeader_Element { |
| 2447 | if m != nil { |
| 2448 | return m.Element |
| 2449 | } |
| 2450 | return nil |
| 2451 | } |
| 2452 | |
| 2453 | func (m *OfpHelloElemHeader) GetVersionbitmap() *OfpHelloElemVersionbitmap { |
| 2454 | if x, ok := m.GetElement().(*OfpHelloElemHeader_Versionbitmap); ok { |
| 2455 | return x.Versionbitmap |
| 2456 | } |
| 2457 | return nil |
| 2458 | } |
| 2459 | |
| 2460 | // XXX_OneofWrappers is for the internal use of the proto package. |
| 2461 | func (*OfpHelloElemHeader) XXX_OneofWrappers() []interface{} { |
| 2462 | return []interface{}{ |
| 2463 | (*OfpHelloElemHeader_Versionbitmap)(nil), |
| 2464 | } |
| 2465 | } |
| 2466 | |
| 2467 | // Version bitmap Hello Element |
| 2468 | type OfpHelloElemVersionbitmap struct { |
| 2469 | Bitmaps []uint32 `protobuf:"varint,2,rep,packed,name=bitmaps,proto3" json:"bitmaps,omitempty"` |
| 2470 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 2471 | XXX_unrecognized []byte `json:"-"` |
| 2472 | XXX_sizecache int32 `json:"-"` |
| 2473 | } |
| 2474 | |
| 2475 | func (m *OfpHelloElemVersionbitmap) Reset() { *m = OfpHelloElemVersionbitmap{} } |
| 2476 | func (m *OfpHelloElemVersionbitmap) String() string { return proto.CompactTextString(m) } |
| 2477 | func (*OfpHelloElemVersionbitmap) ProtoMessage() {} |
| 2478 | func (*OfpHelloElemVersionbitmap) Descriptor() ([]byte, []int) { |
| 2479 | return fileDescriptor_08e3a4e375aeddc7, []int{2} |
| 2480 | } |
| 2481 | |
| 2482 | func (m *OfpHelloElemVersionbitmap) XXX_Unmarshal(b []byte) error { |
| 2483 | return xxx_messageInfo_OfpHelloElemVersionbitmap.Unmarshal(m, b) |
| 2484 | } |
| 2485 | func (m *OfpHelloElemVersionbitmap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 2486 | return xxx_messageInfo_OfpHelloElemVersionbitmap.Marshal(b, m, deterministic) |
| 2487 | } |
| 2488 | func (m *OfpHelloElemVersionbitmap) XXX_Merge(src proto.Message) { |
| 2489 | xxx_messageInfo_OfpHelloElemVersionbitmap.Merge(m, src) |
| 2490 | } |
| 2491 | func (m *OfpHelloElemVersionbitmap) XXX_Size() int { |
| 2492 | return xxx_messageInfo_OfpHelloElemVersionbitmap.Size(m) |
| 2493 | } |
| 2494 | func (m *OfpHelloElemVersionbitmap) XXX_DiscardUnknown() { |
| 2495 | xxx_messageInfo_OfpHelloElemVersionbitmap.DiscardUnknown(m) |
| 2496 | } |
| 2497 | |
| 2498 | var xxx_messageInfo_OfpHelloElemVersionbitmap proto.InternalMessageInfo |
| 2499 | |
| 2500 | func (m *OfpHelloElemVersionbitmap) GetBitmaps() []uint32 { |
| 2501 | if m != nil { |
| 2502 | return m.Bitmaps |
| 2503 | } |
| 2504 | return nil |
| 2505 | } |
| 2506 | |
| 2507 | // OFPT_HELLO. This message includes zero or more hello elements having |
| 2508 | // variable size. Unknown elements types must be ignored/skipped, to allow |
| 2509 | // for future extensions. |
| 2510 | type OfpHello struct { |
| 2511 | // Hello element list |
| 2512 | Elements []*OfpHelloElemHeader `protobuf:"bytes,1,rep,name=elements,proto3" json:"elements,omitempty"` |
| 2513 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 2514 | XXX_unrecognized []byte `json:"-"` |
| 2515 | XXX_sizecache int32 `json:"-"` |
| 2516 | } |
| 2517 | |
| 2518 | func (m *OfpHello) Reset() { *m = OfpHello{} } |
| 2519 | func (m *OfpHello) String() string { return proto.CompactTextString(m) } |
| 2520 | func (*OfpHello) ProtoMessage() {} |
| 2521 | func (*OfpHello) Descriptor() ([]byte, []int) { |
| 2522 | return fileDescriptor_08e3a4e375aeddc7, []int{3} |
| 2523 | } |
| 2524 | |
| 2525 | func (m *OfpHello) XXX_Unmarshal(b []byte) error { |
| 2526 | return xxx_messageInfo_OfpHello.Unmarshal(m, b) |
| 2527 | } |
| 2528 | func (m *OfpHello) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 2529 | return xxx_messageInfo_OfpHello.Marshal(b, m, deterministic) |
| 2530 | } |
| 2531 | func (m *OfpHello) XXX_Merge(src proto.Message) { |
| 2532 | xxx_messageInfo_OfpHello.Merge(m, src) |
| 2533 | } |
| 2534 | func (m *OfpHello) XXX_Size() int { |
| 2535 | return xxx_messageInfo_OfpHello.Size(m) |
| 2536 | } |
| 2537 | func (m *OfpHello) XXX_DiscardUnknown() { |
| 2538 | xxx_messageInfo_OfpHello.DiscardUnknown(m) |
| 2539 | } |
| 2540 | |
| 2541 | var xxx_messageInfo_OfpHello proto.InternalMessageInfo |
| 2542 | |
| 2543 | func (m *OfpHello) GetElements() []*OfpHelloElemHeader { |
| 2544 | if m != nil { |
| 2545 | return m.Elements |
| 2546 | } |
| 2547 | return nil |
| 2548 | } |
| 2549 | |
| 2550 | // Switch configuration. |
| 2551 | type OfpSwitchConfig struct { |
| 2552 | //ofp_header header; |
| 2553 | Flags uint32 `protobuf:"varint,1,opt,name=flags,proto3" json:"flags,omitempty"` |
| 2554 | MissSendLen uint32 `protobuf:"varint,2,opt,name=miss_send_len,json=missSendLen,proto3" json:"miss_send_len,omitempty"` |
| 2555 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 2556 | XXX_unrecognized []byte `json:"-"` |
| 2557 | XXX_sizecache int32 `json:"-"` |
| 2558 | } |
| 2559 | |
| 2560 | func (m *OfpSwitchConfig) Reset() { *m = OfpSwitchConfig{} } |
| 2561 | func (m *OfpSwitchConfig) String() string { return proto.CompactTextString(m) } |
| 2562 | func (*OfpSwitchConfig) ProtoMessage() {} |
| 2563 | func (*OfpSwitchConfig) Descriptor() ([]byte, []int) { |
| 2564 | return fileDescriptor_08e3a4e375aeddc7, []int{4} |
| 2565 | } |
| 2566 | |
| 2567 | func (m *OfpSwitchConfig) XXX_Unmarshal(b []byte) error { |
| 2568 | return xxx_messageInfo_OfpSwitchConfig.Unmarshal(m, b) |
| 2569 | } |
| 2570 | func (m *OfpSwitchConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 2571 | return xxx_messageInfo_OfpSwitchConfig.Marshal(b, m, deterministic) |
| 2572 | } |
| 2573 | func (m *OfpSwitchConfig) XXX_Merge(src proto.Message) { |
| 2574 | xxx_messageInfo_OfpSwitchConfig.Merge(m, src) |
| 2575 | } |
| 2576 | func (m *OfpSwitchConfig) XXX_Size() int { |
| 2577 | return xxx_messageInfo_OfpSwitchConfig.Size(m) |
| 2578 | } |
| 2579 | func (m *OfpSwitchConfig) XXX_DiscardUnknown() { |
| 2580 | xxx_messageInfo_OfpSwitchConfig.DiscardUnknown(m) |
| 2581 | } |
| 2582 | |
| 2583 | var xxx_messageInfo_OfpSwitchConfig proto.InternalMessageInfo |
| 2584 | |
| 2585 | func (m *OfpSwitchConfig) GetFlags() uint32 { |
| 2586 | if m != nil { |
| 2587 | return m.Flags |
| 2588 | } |
| 2589 | return 0 |
| 2590 | } |
| 2591 | |
| 2592 | func (m *OfpSwitchConfig) GetMissSendLen() uint32 { |
| 2593 | if m != nil { |
| 2594 | return m.MissSendLen |
| 2595 | } |
| 2596 | return 0 |
| 2597 | } |
| 2598 | |
| 2599 | // Configure/Modify behavior of a flow table |
| 2600 | type OfpTableMod struct { |
| 2601 | //ofp_header header; |
| 2602 | TableId uint32 `protobuf:"varint,1,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"` |
| 2603 | Config uint32 `protobuf:"varint,2,opt,name=config,proto3" json:"config,omitempty"` |
| 2604 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 2605 | XXX_unrecognized []byte `json:"-"` |
| 2606 | XXX_sizecache int32 `json:"-"` |
| 2607 | } |
| 2608 | |
| 2609 | func (m *OfpTableMod) Reset() { *m = OfpTableMod{} } |
| 2610 | func (m *OfpTableMod) String() string { return proto.CompactTextString(m) } |
| 2611 | func (*OfpTableMod) ProtoMessage() {} |
| 2612 | func (*OfpTableMod) Descriptor() ([]byte, []int) { |
| 2613 | return fileDescriptor_08e3a4e375aeddc7, []int{5} |
| 2614 | } |
| 2615 | |
| 2616 | func (m *OfpTableMod) XXX_Unmarshal(b []byte) error { |
| 2617 | return xxx_messageInfo_OfpTableMod.Unmarshal(m, b) |
| 2618 | } |
| 2619 | func (m *OfpTableMod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 2620 | return xxx_messageInfo_OfpTableMod.Marshal(b, m, deterministic) |
| 2621 | } |
| 2622 | func (m *OfpTableMod) XXX_Merge(src proto.Message) { |
| 2623 | xxx_messageInfo_OfpTableMod.Merge(m, src) |
| 2624 | } |
| 2625 | func (m *OfpTableMod) XXX_Size() int { |
| 2626 | return xxx_messageInfo_OfpTableMod.Size(m) |
| 2627 | } |
| 2628 | func (m *OfpTableMod) XXX_DiscardUnknown() { |
| 2629 | xxx_messageInfo_OfpTableMod.DiscardUnknown(m) |
| 2630 | } |
| 2631 | |
| 2632 | var xxx_messageInfo_OfpTableMod proto.InternalMessageInfo |
| 2633 | |
| 2634 | func (m *OfpTableMod) GetTableId() uint32 { |
| 2635 | if m != nil { |
| 2636 | return m.TableId |
| 2637 | } |
| 2638 | return 0 |
| 2639 | } |
| 2640 | |
| 2641 | func (m *OfpTableMod) GetConfig() uint32 { |
| 2642 | if m != nil { |
| 2643 | return m.Config |
| 2644 | } |
| 2645 | return 0 |
| 2646 | } |
| 2647 | |
| 2648 | // Description of a port |
| 2649 | type OfpPort struct { |
| 2650 | PortNo uint32 `protobuf:"varint,1,opt,name=port_no,json=portNo,proto3" json:"port_no,omitempty"` |
| 2651 | HwAddr []uint32 `protobuf:"varint,2,rep,packed,name=hw_addr,json=hwAddr,proto3" json:"hw_addr,omitempty"` |
| 2652 | Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` |
| 2653 | Config uint32 `protobuf:"varint,4,opt,name=config,proto3" json:"config,omitempty"` |
| 2654 | State uint32 `protobuf:"varint,5,opt,name=state,proto3" json:"state,omitempty"` |
| 2655 | // Bitmaps of OFPPF_* that describe features. All bits zeroed if |
| 2656 | // unsupported or unavailable. |
| 2657 | Curr uint32 `protobuf:"varint,6,opt,name=curr,proto3" json:"curr,omitempty"` |
| 2658 | Advertised uint32 `protobuf:"varint,7,opt,name=advertised,proto3" json:"advertised,omitempty"` |
| 2659 | Supported uint32 `protobuf:"varint,8,opt,name=supported,proto3" json:"supported,omitempty"` |
| 2660 | Peer uint32 `protobuf:"varint,9,opt,name=peer,proto3" json:"peer,omitempty"` |
| 2661 | CurrSpeed uint32 `protobuf:"varint,10,opt,name=curr_speed,json=currSpeed,proto3" json:"curr_speed,omitempty"` |
| 2662 | MaxSpeed uint32 `protobuf:"varint,11,opt,name=max_speed,json=maxSpeed,proto3" json:"max_speed,omitempty"` |
| 2663 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 2664 | XXX_unrecognized []byte `json:"-"` |
| 2665 | XXX_sizecache int32 `json:"-"` |
| 2666 | } |
| 2667 | |
| 2668 | func (m *OfpPort) Reset() { *m = OfpPort{} } |
| 2669 | func (m *OfpPort) String() string { return proto.CompactTextString(m) } |
| 2670 | func (*OfpPort) ProtoMessage() {} |
| 2671 | func (*OfpPort) Descriptor() ([]byte, []int) { |
| 2672 | return fileDescriptor_08e3a4e375aeddc7, []int{6} |
| 2673 | } |
| 2674 | |
| 2675 | func (m *OfpPort) XXX_Unmarshal(b []byte) error { |
| 2676 | return xxx_messageInfo_OfpPort.Unmarshal(m, b) |
| 2677 | } |
| 2678 | func (m *OfpPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 2679 | return xxx_messageInfo_OfpPort.Marshal(b, m, deterministic) |
| 2680 | } |
| 2681 | func (m *OfpPort) XXX_Merge(src proto.Message) { |
| 2682 | xxx_messageInfo_OfpPort.Merge(m, src) |
| 2683 | } |
| 2684 | func (m *OfpPort) XXX_Size() int { |
| 2685 | return xxx_messageInfo_OfpPort.Size(m) |
| 2686 | } |
| 2687 | func (m *OfpPort) XXX_DiscardUnknown() { |
| 2688 | xxx_messageInfo_OfpPort.DiscardUnknown(m) |
| 2689 | } |
| 2690 | |
| 2691 | var xxx_messageInfo_OfpPort proto.InternalMessageInfo |
| 2692 | |
| 2693 | func (m *OfpPort) GetPortNo() uint32 { |
| 2694 | if m != nil { |
| 2695 | return m.PortNo |
| 2696 | } |
| 2697 | return 0 |
| 2698 | } |
| 2699 | |
| 2700 | func (m *OfpPort) GetHwAddr() []uint32 { |
| 2701 | if m != nil { |
| 2702 | return m.HwAddr |
| 2703 | } |
| 2704 | return nil |
| 2705 | } |
| 2706 | |
| 2707 | func (m *OfpPort) GetName() string { |
| 2708 | if m != nil { |
| 2709 | return m.Name |
| 2710 | } |
| 2711 | return "" |
| 2712 | } |
| 2713 | |
| 2714 | func (m *OfpPort) GetConfig() uint32 { |
| 2715 | if m != nil { |
| 2716 | return m.Config |
| 2717 | } |
| 2718 | return 0 |
| 2719 | } |
| 2720 | |
| 2721 | func (m *OfpPort) GetState() uint32 { |
| 2722 | if m != nil { |
| 2723 | return m.State |
| 2724 | } |
| 2725 | return 0 |
| 2726 | } |
| 2727 | |
| 2728 | func (m *OfpPort) GetCurr() uint32 { |
| 2729 | if m != nil { |
| 2730 | return m.Curr |
| 2731 | } |
| 2732 | return 0 |
| 2733 | } |
| 2734 | |
| 2735 | func (m *OfpPort) GetAdvertised() uint32 { |
| 2736 | if m != nil { |
| 2737 | return m.Advertised |
| 2738 | } |
| 2739 | return 0 |
| 2740 | } |
| 2741 | |
| 2742 | func (m *OfpPort) GetSupported() uint32 { |
| 2743 | if m != nil { |
| 2744 | return m.Supported |
| 2745 | } |
| 2746 | return 0 |
| 2747 | } |
| 2748 | |
| 2749 | func (m *OfpPort) GetPeer() uint32 { |
| 2750 | if m != nil { |
| 2751 | return m.Peer |
| 2752 | } |
| 2753 | return 0 |
| 2754 | } |
| 2755 | |
| 2756 | func (m *OfpPort) GetCurrSpeed() uint32 { |
| 2757 | if m != nil { |
| 2758 | return m.CurrSpeed |
| 2759 | } |
| 2760 | return 0 |
| 2761 | } |
| 2762 | |
| 2763 | func (m *OfpPort) GetMaxSpeed() uint32 { |
| 2764 | if m != nil { |
| 2765 | return m.MaxSpeed |
| 2766 | } |
| 2767 | return 0 |
| 2768 | } |
| 2769 | |
| 2770 | // Switch features. |
| 2771 | type OfpSwitchFeatures struct { |
| 2772 | //ofp_header header; |
| 2773 | DatapathId uint64 `protobuf:"varint,1,opt,name=datapath_id,json=datapathId,proto3" json:"datapath_id,omitempty"` |
| 2774 | NBuffers uint32 `protobuf:"varint,2,opt,name=n_buffers,json=nBuffers,proto3" json:"n_buffers,omitempty"` |
| 2775 | NTables uint32 `protobuf:"varint,3,opt,name=n_tables,json=nTables,proto3" json:"n_tables,omitempty"` |
| 2776 | AuxiliaryId uint32 `protobuf:"varint,4,opt,name=auxiliary_id,json=auxiliaryId,proto3" json:"auxiliary_id,omitempty"` |
| 2777 | // Features. |
| 2778 | Capabilities uint32 `protobuf:"varint,5,opt,name=capabilities,proto3" json:"capabilities,omitempty"` |
| 2779 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 2780 | XXX_unrecognized []byte `json:"-"` |
| 2781 | XXX_sizecache int32 `json:"-"` |
| 2782 | } |
| 2783 | |
| 2784 | func (m *OfpSwitchFeatures) Reset() { *m = OfpSwitchFeatures{} } |
| 2785 | func (m *OfpSwitchFeatures) String() string { return proto.CompactTextString(m) } |
| 2786 | func (*OfpSwitchFeatures) ProtoMessage() {} |
| 2787 | func (*OfpSwitchFeatures) Descriptor() ([]byte, []int) { |
| 2788 | return fileDescriptor_08e3a4e375aeddc7, []int{7} |
| 2789 | } |
| 2790 | |
| 2791 | func (m *OfpSwitchFeatures) XXX_Unmarshal(b []byte) error { |
| 2792 | return xxx_messageInfo_OfpSwitchFeatures.Unmarshal(m, b) |
| 2793 | } |
| 2794 | func (m *OfpSwitchFeatures) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 2795 | return xxx_messageInfo_OfpSwitchFeatures.Marshal(b, m, deterministic) |
| 2796 | } |
| 2797 | func (m *OfpSwitchFeatures) XXX_Merge(src proto.Message) { |
| 2798 | xxx_messageInfo_OfpSwitchFeatures.Merge(m, src) |
| 2799 | } |
| 2800 | func (m *OfpSwitchFeatures) XXX_Size() int { |
| 2801 | return xxx_messageInfo_OfpSwitchFeatures.Size(m) |
| 2802 | } |
| 2803 | func (m *OfpSwitchFeatures) XXX_DiscardUnknown() { |
| 2804 | xxx_messageInfo_OfpSwitchFeatures.DiscardUnknown(m) |
| 2805 | } |
| 2806 | |
| 2807 | var xxx_messageInfo_OfpSwitchFeatures proto.InternalMessageInfo |
| 2808 | |
| 2809 | func (m *OfpSwitchFeatures) GetDatapathId() uint64 { |
| 2810 | if m != nil { |
| 2811 | return m.DatapathId |
| 2812 | } |
| 2813 | return 0 |
| 2814 | } |
| 2815 | |
| 2816 | func (m *OfpSwitchFeatures) GetNBuffers() uint32 { |
| 2817 | if m != nil { |
| 2818 | return m.NBuffers |
| 2819 | } |
| 2820 | return 0 |
| 2821 | } |
| 2822 | |
| 2823 | func (m *OfpSwitchFeatures) GetNTables() uint32 { |
| 2824 | if m != nil { |
| 2825 | return m.NTables |
| 2826 | } |
| 2827 | return 0 |
| 2828 | } |
| 2829 | |
| 2830 | func (m *OfpSwitchFeatures) GetAuxiliaryId() uint32 { |
| 2831 | if m != nil { |
| 2832 | return m.AuxiliaryId |
| 2833 | } |
| 2834 | return 0 |
| 2835 | } |
| 2836 | |
| 2837 | func (m *OfpSwitchFeatures) GetCapabilities() uint32 { |
| 2838 | if m != nil { |
| 2839 | return m.Capabilities |
| 2840 | } |
| 2841 | return 0 |
| 2842 | } |
| 2843 | |
| 2844 | // A physical port has changed in the datapath |
| 2845 | type OfpPortStatus struct { |
| 2846 | //ofp_header header; |
| 2847 | Reason OfpPortReason `protobuf:"varint,1,opt,name=reason,proto3,enum=openflow_13.OfpPortReason" json:"reason,omitempty"` |
| 2848 | Desc *OfpPort `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"` |
| 2849 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 2850 | XXX_unrecognized []byte `json:"-"` |
| 2851 | XXX_sizecache int32 `json:"-"` |
| 2852 | } |
| 2853 | |
| 2854 | func (m *OfpPortStatus) Reset() { *m = OfpPortStatus{} } |
| 2855 | func (m *OfpPortStatus) String() string { return proto.CompactTextString(m) } |
| 2856 | func (*OfpPortStatus) ProtoMessage() {} |
| 2857 | func (*OfpPortStatus) Descriptor() ([]byte, []int) { |
| 2858 | return fileDescriptor_08e3a4e375aeddc7, []int{8} |
| 2859 | } |
| 2860 | |
| 2861 | func (m *OfpPortStatus) XXX_Unmarshal(b []byte) error { |
| 2862 | return xxx_messageInfo_OfpPortStatus.Unmarshal(m, b) |
| 2863 | } |
| 2864 | func (m *OfpPortStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 2865 | return xxx_messageInfo_OfpPortStatus.Marshal(b, m, deterministic) |
| 2866 | } |
| 2867 | func (m *OfpPortStatus) XXX_Merge(src proto.Message) { |
| 2868 | xxx_messageInfo_OfpPortStatus.Merge(m, src) |
| 2869 | } |
| 2870 | func (m *OfpPortStatus) XXX_Size() int { |
| 2871 | return xxx_messageInfo_OfpPortStatus.Size(m) |
| 2872 | } |
| 2873 | func (m *OfpPortStatus) XXX_DiscardUnknown() { |
| 2874 | xxx_messageInfo_OfpPortStatus.DiscardUnknown(m) |
| 2875 | } |
| 2876 | |
| 2877 | var xxx_messageInfo_OfpPortStatus proto.InternalMessageInfo |
| 2878 | |
| 2879 | func (m *OfpPortStatus) GetReason() OfpPortReason { |
| 2880 | if m != nil { |
| 2881 | return m.Reason |
| 2882 | } |
| 2883 | return OfpPortReason_OFPPR_ADD |
| 2884 | } |
| 2885 | |
| 2886 | func (m *OfpPortStatus) GetDesc() *OfpPort { |
| 2887 | if m != nil { |
| 2888 | return m.Desc |
| 2889 | } |
| 2890 | return nil |
| 2891 | } |
| 2892 | |
| 2893 | // Modify behavior of the physical port |
| 2894 | type OfpPortMod struct { |
| 2895 | //ofp_header header; |
| 2896 | PortNo uint32 `protobuf:"varint,1,opt,name=port_no,json=portNo,proto3" json:"port_no,omitempty"` |
| 2897 | HwAddr []uint32 `protobuf:"varint,2,rep,packed,name=hw_addr,json=hwAddr,proto3" json:"hw_addr,omitempty"` |
| 2898 | // The hardware address is not |
| 2899 | //configurable. This is used to |
| 2900 | //sanity-check the request, so it must |
| 2901 | //be the same as returned in an |
| 2902 | //ofp_port struct. |
| 2903 | Config uint32 `protobuf:"varint,3,opt,name=config,proto3" json:"config,omitempty"` |
| 2904 | Mask uint32 `protobuf:"varint,4,opt,name=mask,proto3" json:"mask,omitempty"` |
| 2905 | Advertise uint32 `protobuf:"varint,5,opt,name=advertise,proto3" json:"advertise,omitempty"` |
| 2906 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 2907 | XXX_unrecognized []byte `json:"-"` |
| 2908 | XXX_sizecache int32 `json:"-"` |
| 2909 | } |
| 2910 | |
| 2911 | func (m *OfpPortMod) Reset() { *m = OfpPortMod{} } |
| 2912 | func (m *OfpPortMod) String() string { return proto.CompactTextString(m) } |
| 2913 | func (*OfpPortMod) ProtoMessage() {} |
| 2914 | func (*OfpPortMod) Descriptor() ([]byte, []int) { |
| 2915 | return fileDescriptor_08e3a4e375aeddc7, []int{9} |
| 2916 | } |
| 2917 | |
| 2918 | func (m *OfpPortMod) XXX_Unmarshal(b []byte) error { |
| 2919 | return xxx_messageInfo_OfpPortMod.Unmarshal(m, b) |
| 2920 | } |
| 2921 | func (m *OfpPortMod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 2922 | return xxx_messageInfo_OfpPortMod.Marshal(b, m, deterministic) |
| 2923 | } |
| 2924 | func (m *OfpPortMod) XXX_Merge(src proto.Message) { |
| 2925 | xxx_messageInfo_OfpPortMod.Merge(m, src) |
| 2926 | } |
| 2927 | func (m *OfpPortMod) XXX_Size() int { |
| 2928 | return xxx_messageInfo_OfpPortMod.Size(m) |
| 2929 | } |
| 2930 | func (m *OfpPortMod) XXX_DiscardUnknown() { |
| 2931 | xxx_messageInfo_OfpPortMod.DiscardUnknown(m) |
| 2932 | } |
| 2933 | |
| 2934 | var xxx_messageInfo_OfpPortMod proto.InternalMessageInfo |
| 2935 | |
| 2936 | func (m *OfpPortMod) GetPortNo() uint32 { |
| 2937 | if m != nil { |
| 2938 | return m.PortNo |
| 2939 | } |
| 2940 | return 0 |
| 2941 | } |
| 2942 | |
| 2943 | func (m *OfpPortMod) GetHwAddr() []uint32 { |
| 2944 | if m != nil { |
| 2945 | return m.HwAddr |
| 2946 | } |
| 2947 | return nil |
| 2948 | } |
| 2949 | |
| 2950 | func (m *OfpPortMod) GetConfig() uint32 { |
| 2951 | if m != nil { |
| 2952 | return m.Config |
| 2953 | } |
| 2954 | return 0 |
| 2955 | } |
| 2956 | |
| 2957 | func (m *OfpPortMod) GetMask() uint32 { |
| 2958 | if m != nil { |
| 2959 | return m.Mask |
| 2960 | } |
| 2961 | return 0 |
| 2962 | } |
| 2963 | |
| 2964 | func (m *OfpPortMod) GetAdvertise() uint32 { |
| 2965 | if m != nil { |
| 2966 | return m.Advertise |
| 2967 | } |
| 2968 | return 0 |
| 2969 | } |
| 2970 | |
| 2971 | // Fields to match against flows |
| 2972 | type OfpMatch struct { |
| 2973 | Type OfpMatchType `protobuf:"varint,1,opt,name=type,proto3,enum=openflow_13.OfpMatchType" json:"type,omitempty"` |
| 2974 | OxmFields []*OfpOxmField `protobuf:"bytes,2,rep,name=oxm_fields,json=oxmFields,proto3" json:"oxm_fields,omitempty"` |
| 2975 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 2976 | XXX_unrecognized []byte `json:"-"` |
| 2977 | XXX_sizecache int32 `json:"-"` |
| 2978 | } |
| 2979 | |
| 2980 | func (m *OfpMatch) Reset() { *m = OfpMatch{} } |
| 2981 | func (m *OfpMatch) String() string { return proto.CompactTextString(m) } |
| 2982 | func (*OfpMatch) ProtoMessage() {} |
| 2983 | func (*OfpMatch) Descriptor() ([]byte, []int) { |
| 2984 | return fileDescriptor_08e3a4e375aeddc7, []int{10} |
| 2985 | } |
| 2986 | |
| 2987 | func (m *OfpMatch) XXX_Unmarshal(b []byte) error { |
| 2988 | return xxx_messageInfo_OfpMatch.Unmarshal(m, b) |
| 2989 | } |
| 2990 | func (m *OfpMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 2991 | return xxx_messageInfo_OfpMatch.Marshal(b, m, deterministic) |
| 2992 | } |
| 2993 | func (m *OfpMatch) XXX_Merge(src proto.Message) { |
| 2994 | xxx_messageInfo_OfpMatch.Merge(m, src) |
| 2995 | } |
| 2996 | func (m *OfpMatch) XXX_Size() int { |
| 2997 | return xxx_messageInfo_OfpMatch.Size(m) |
| 2998 | } |
| 2999 | func (m *OfpMatch) XXX_DiscardUnknown() { |
| 3000 | xxx_messageInfo_OfpMatch.DiscardUnknown(m) |
| 3001 | } |
| 3002 | |
| 3003 | var xxx_messageInfo_OfpMatch proto.InternalMessageInfo |
| 3004 | |
| 3005 | func (m *OfpMatch) GetType() OfpMatchType { |
| 3006 | if m != nil { |
| 3007 | return m.Type |
| 3008 | } |
| 3009 | return OfpMatchType_OFPMT_STANDARD |
| 3010 | } |
| 3011 | |
| 3012 | func (m *OfpMatch) GetOxmFields() []*OfpOxmField { |
| 3013 | if m != nil { |
| 3014 | return m.OxmFields |
| 3015 | } |
| 3016 | return nil |
| 3017 | } |
| 3018 | |
| 3019 | // OXM Flow match fields |
| 3020 | type OfpOxmField struct { |
| 3021 | OxmClass OfpOxmClass `protobuf:"varint,1,opt,name=oxm_class,json=oxmClass,proto3,enum=openflow_13.OfpOxmClass" json:"oxm_class,omitempty"` |
| 3022 | // Types that are valid to be assigned to Field: |
| 3023 | // *OfpOxmField_OfbField |
| 3024 | // *OfpOxmField_ExperimenterField |
| 3025 | Field isOfpOxmField_Field `protobuf_oneof:"field"` |
| 3026 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 3027 | XXX_unrecognized []byte `json:"-"` |
| 3028 | XXX_sizecache int32 `json:"-"` |
| 3029 | } |
| 3030 | |
| 3031 | func (m *OfpOxmField) Reset() { *m = OfpOxmField{} } |
| 3032 | func (m *OfpOxmField) String() string { return proto.CompactTextString(m) } |
| 3033 | func (*OfpOxmField) ProtoMessage() {} |
| 3034 | func (*OfpOxmField) Descriptor() ([]byte, []int) { |
| 3035 | return fileDescriptor_08e3a4e375aeddc7, []int{11} |
| 3036 | } |
| 3037 | |
| 3038 | func (m *OfpOxmField) XXX_Unmarshal(b []byte) error { |
| 3039 | return xxx_messageInfo_OfpOxmField.Unmarshal(m, b) |
| 3040 | } |
| 3041 | func (m *OfpOxmField) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 3042 | return xxx_messageInfo_OfpOxmField.Marshal(b, m, deterministic) |
| 3043 | } |
| 3044 | func (m *OfpOxmField) XXX_Merge(src proto.Message) { |
| 3045 | xxx_messageInfo_OfpOxmField.Merge(m, src) |
| 3046 | } |
| 3047 | func (m *OfpOxmField) XXX_Size() int { |
| 3048 | return xxx_messageInfo_OfpOxmField.Size(m) |
| 3049 | } |
| 3050 | func (m *OfpOxmField) XXX_DiscardUnknown() { |
| 3051 | xxx_messageInfo_OfpOxmField.DiscardUnknown(m) |
| 3052 | } |
| 3053 | |
| 3054 | var xxx_messageInfo_OfpOxmField proto.InternalMessageInfo |
| 3055 | |
| 3056 | func (m *OfpOxmField) GetOxmClass() OfpOxmClass { |
| 3057 | if m != nil { |
| 3058 | return m.OxmClass |
| 3059 | } |
| 3060 | return OfpOxmClass_OFPXMC_NXM_0 |
| 3061 | } |
| 3062 | |
| 3063 | type isOfpOxmField_Field interface { |
| 3064 | isOfpOxmField_Field() |
| 3065 | } |
| 3066 | |
| 3067 | type OfpOxmField_OfbField struct { |
| 3068 | OfbField *OfpOxmOfbField `protobuf:"bytes,4,opt,name=ofb_field,json=ofbField,proto3,oneof"` |
| 3069 | } |
| 3070 | |
| 3071 | type OfpOxmField_ExperimenterField struct { |
| 3072 | ExperimenterField *OfpOxmExperimenterField `protobuf:"bytes,5,opt,name=experimenter_field,json=experimenterField,proto3,oneof"` |
| 3073 | } |
| 3074 | |
| 3075 | func (*OfpOxmField_OfbField) isOfpOxmField_Field() {} |
| 3076 | |
| 3077 | func (*OfpOxmField_ExperimenterField) isOfpOxmField_Field() {} |
| 3078 | |
| 3079 | func (m *OfpOxmField) GetField() isOfpOxmField_Field { |
| 3080 | if m != nil { |
| 3081 | return m.Field |
| 3082 | } |
| 3083 | return nil |
| 3084 | } |
| 3085 | |
| 3086 | func (m *OfpOxmField) GetOfbField() *OfpOxmOfbField { |
| 3087 | if x, ok := m.GetField().(*OfpOxmField_OfbField); ok { |
| 3088 | return x.OfbField |
| 3089 | } |
| 3090 | return nil |
| 3091 | } |
| 3092 | |
| 3093 | func (m *OfpOxmField) GetExperimenterField() *OfpOxmExperimenterField { |
| 3094 | if x, ok := m.GetField().(*OfpOxmField_ExperimenterField); ok { |
| 3095 | return x.ExperimenterField |
| 3096 | } |
| 3097 | return nil |
| 3098 | } |
| 3099 | |
| 3100 | // XXX_OneofWrappers is for the internal use of the proto package. |
| 3101 | func (*OfpOxmField) XXX_OneofWrappers() []interface{} { |
| 3102 | return []interface{}{ |
| 3103 | (*OfpOxmField_OfbField)(nil), |
| 3104 | (*OfpOxmField_ExperimenterField)(nil), |
| 3105 | } |
| 3106 | } |
| 3107 | |
| 3108 | // OXM OpenFlow Basic Match Field |
| 3109 | type OfpOxmOfbField struct { |
| 3110 | Type OxmOfbFieldTypes `protobuf:"varint,1,opt,name=type,proto3,enum=openflow_13.OxmOfbFieldTypes" json:"type,omitempty"` |
| 3111 | HasMask bool `protobuf:"varint,2,opt,name=has_mask,json=hasMask,proto3" json:"has_mask,omitempty"` |
| 3112 | // Types that are valid to be assigned to Value: |
| 3113 | // *OfpOxmOfbField_Port |
| 3114 | // *OfpOxmOfbField_PhysicalPort |
| 3115 | // *OfpOxmOfbField_TableMetadata |
| 3116 | // *OfpOxmOfbField_EthDst |
| 3117 | // *OfpOxmOfbField_EthSrc |
| 3118 | // *OfpOxmOfbField_EthType |
| 3119 | // *OfpOxmOfbField_VlanVid |
| 3120 | // *OfpOxmOfbField_VlanPcp |
| 3121 | // *OfpOxmOfbField_IpDscp |
| 3122 | // *OfpOxmOfbField_IpEcn |
| 3123 | // *OfpOxmOfbField_IpProto |
| 3124 | // *OfpOxmOfbField_Ipv4Src |
| 3125 | // *OfpOxmOfbField_Ipv4Dst |
| 3126 | // *OfpOxmOfbField_TcpSrc |
| 3127 | // *OfpOxmOfbField_TcpDst |
| 3128 | // *OfpOxmOfbField_UdpSrc |
| 3129 | // *OfpOxmOfbField_UdpDst |
| 3130 | // *OfpOxmOfbField_SctpSrc |
| 3131 | // *OfpOxmOfbField_SctpDst |
| 3132 | // *OfpOxmOfbField_Icmpv4Type |
| 3133 | // *OfpOxmOfbField_Icmpv4Code |
| 3134 | // *OfpOxmOfbField_ArpOp |
| 3135 | // *OfpOxmOfbField_ArpSpa |
| 3136 | // *OfpOxmOfbField_ArpTpa |
| 3137 | // *OfpOxmOfbField_ArpSha |
| 3138 | // *OfpOxmOfbField_ArpTha |
| 3139 | // *OfpOxmOfbField_Ipv6Src |
| 3140 | // *OfpOxmOfbField_Ipv6Dst |
| 3141 | // *OfpOxmOfbField_Ipv6Flabel |
| 3142 | // *OfpOxmOfbField_Icmpv6Type |
| 3143 | // *OfpOxmOfbField_Icmpv6Code |
| 3144 | // *OfpOxmOfbField_Ipv6NdTarget |
| 3145 | // *OfpOxmOfbField_Ipv6NdSsl |
| 3146 | // *OfpOxmOfbField_Ipv6NdTll |
| 3147 | // *OfpOxmOfbField_MplsLabel |
| 3148 | // *OfpOxmOfbField_MplsTc |
| 3149 | // *OfpOxmOfbField_MplsBos |
| 3150 | // *OfpOxmOfbField_PbbIsid |
| 3151 | // *OfpOxmOfbField_TunnelId |
| 3152 | // *OfpOxmOfbField_Ipv6Exthdr |
| 3153 | Value isOfpOxmOfbField_Value `protobuf_oneof:"value"` |
| 3154 | // Optional mask values (must be present when has_mask is true |
| 3155 | // |
| 3156 | // Types that are valid to be assigned to Mask: |
| 3157 | // *OfpOxmOfbField_TableMetadataMask |
| 3158 | // *OfpOxmOfbField_EthDstMask |
| 3159 | // *OfpOxmOfbField_EthSrcMask |
| 3160 | // *OfpOxmOfbField_VlanVidMask |
| 3161 | // *OfpOxmOfbField_Ipv4SrcMask |
| 3162 | // *OfpOxmOfbField_Ipv4DstMask |
| 3163 | // *OfpOxmOfbField_ArpSpaMask |
| 3164 | // *OfpOxmOfbField_ArpTpaMask |
| 3165 | // *OfpOxmOfbField_Ipv6SrcMask |
| 3166 | // *OfpOxmOfbField_Ipv6DstMask |
| 3167 | // *OfpOxmOfbField_Ipv6FlabelMask |
| 3168 | // *OfpOxmOfbField_PbbIsidMask |
| 3169 | // *OfpOxmOfbField_TunnelIdMask |
| 3170 | // *OfpOxmOfbField_Ipv6ExthdrMask |
| 3171 | Mask isOfpOxmOfbField_Mask `protobuf_oneof:"mask"` |
| 3172 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 3173 | XXX_unrecognized []byte `json:"-"` |
| 3174 | XXX_sizecache int32 `json:"-"` |
| 3175 | } |
| 3176 | |
| 3177 | func (m *OfpOxmOfbField) Reset() { *m = OfpOxmOfbField{} } |
| 3178 | func (m *OfpOxmOfbField) String() string { return proto.CompactTextString(m) } |
| 3179 | func (*OfpOxmOfbField) ProtoMessage() {} |
| 3180 | func (*OfpOxmOfbField) Descriptor() ([]byte, []int) { |
| 3181 | return fileDescriptor_08e3a4e375aeddc7, []int{12} |
| 3182 | } |
| 3183 | |
| 3184 | func (m *OfpOxmOfbField) XXX_Unmarshal(b []byte) error { |
| 3185 | return xxx_messageInfo_OfpOxmOfbField.Unmarshal(m, b) |
| 3186 | } |
| 3187 | func (m *OfpOxmOfbField) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 3188 | return xxx_messageInfo_OfpOxmOfbField.Marshal(b, m, deterministic) |
| 3189 | } |
| 3190 | func (m *OfpOxmOfbField) XXX_Merge(src proto.Message) { |
| 3191 | xxx_messageInfo_OfpOxmOfbField.Merge(m, src) |
| 3192 | } |
| 3193 | func (m *OfpOxmOfbField) XXX_Size() int { |
| 3194 | return xxx_messageInfo_OfpOxmOfbField.Size(m) |
| 3195 | } |
| 3196 | func (m *OfpOxmOfbField) XXX_DiscardUnknown() { |
| 3197 | xxx_messageInfo_OfpOxmOfbField.DiscardUnknown(m) |
| 3198 | } |
| 3199 | |
| 3200 | var xxx_messageInfo_OfpOxmOfbField proto.InternalMessageInfo |
| 3201 | |
| 3202 | func (m *OfpOxmOfbField) GetType() OxmOfbFieldTypes { |
| 3203 | if m != nil { |
| 3204 | return m.Type |
| 3205 | } |
| 3206 | return OxmOfbFieldTypes_OFPXMT_OFB_IN_PORT |
| 3207 | } |
| 3208 | |
| 3209 | func (m *OfpOxmOfbField) GetHasMask() bool { |
| 3210 | if m != nil { |
| 3211 | return m.HasMask |
| 3212 | } |
| 3213 | return false |
| 3214 | } |
| 3215 | |
| 3216 | type isOfpOxmOfbField_Value interface { |
| 3217 | isOfpOxmOfbField_Value() |
| 3218 | } |
| 3219 | |
| 3220 | type OfpOxmOfbField_Port struct { |
| 3221 | Port uint32 `protobuf:"varint,3,opt,name=port,proto3,oneof"` |
| 3222 | } |
| 3223 | |
| 3224 | type OfpOxmOfbField_PhysicalPort struct { |
| 3225 | PhysicalPort uint32 `protobuf:"varint,4,opt,name=physical_port,json=physicalPort,proto3,oneof"` |
| 3226 | } |
| 3227 | |
| 3228 | type OfpOxmOfbField_TableMetadata struct { |
| 3229 | TableMetadata uint64 `protobuf:"varint,5,opt,name=table_metadata,json=tableMetadata,proto3,oneof"` |
| 3230 | } |
| 3231 | |
| 3232 | type OfpOxmOfbField_EthDst struct { |
| 3233 | EthDst []byte `protobuf:"bytes,6,opt,name=eth_dst,json=ethDst,proto3,oneof"` |
| 3234 | } |
| 3235 | |
| 3236 | type OfpOxmOfbField_EthSrc struct { |
| 3237 | EthSrc []byte `protobuf:"bytes,7,opt,name=eth_src,json=ethSrc,proto3,oneof"` |
| 3238 | } |
| 3239 | |
| 3240 | type OfpOxmOfbField_EthType struct { |
| 3241 | EthType uint32 `protobuf:"varint,8,opt,name=eth_type,json=ethType,proto3,oneof"` |
| 3242 | } |
| 3243 | |
| 3244 | type OfpOxmOfbField_VlanVid struct { |
| 3245 | VlanVid uint32 `protobuf:"varint,9,opt,name=vlan_vid,json=vlanVid,proto3,oneof"` |
| 3246 | } |
| 3247 | |
| 3248 | type OfpOxmOfbField_VlanPcp struct { |
| 3249 | VlanPcp uint32 `protobuf:"varint,10,opt,name=vlan_pcp,json=vlanPcp,proto3,oneof"` |
| 3250 | } |
| 3251 | |
| 3252 | type OfpOxmOfbField_IpDscp struct { |
| 3253 | IpDscp uint32 `protobuf:"varint,11,opt,name=ip_dscp,json=ipDscp,proto3,oneof"` |
| 3254 | } |
| 3255 | |
| 3256 | type OfpOxmOfbField_IpEcn struct { |
| 3257 | IpEcn uint32 `protobuf:"varint,12,opt,name=ip_ecn,json=ipEcn,proto3,oneof"` |
| 3258 | } |
| 3259 | |
| 3260 | type OfpOxmOfbField_IpProto struct { |
| 3261 | IpProto uint32 `protobuf:"varint,13,opt,name=ip_proto,json=ipProto,proto3,oneof"` |
| 3262 | } |
| 3263 | |
| 3264 | type OfpOxmOfbField_Ipv4Src struct { |
| 3265 | Ipv4Src uint32 `protobuf:"varint,14,opt,name=ipv4_src,json=ipv4Src,proto3,oneof"` |
| 3266 | } |
| 3267 | |
| 3268 | type OfpOxmOfbField_Ipv4Dst struct { |
| 3269 | Ipv4Dst uint32 `protobuf:"varint,15,opt,name=ipv4_dst,json=ipv4Dst,proto3,oneof"` |
| 3270 | } |
| 3271 | |
| 3272 | type OfpOxmOfbField_TcpSrc struct { |
| 3273 | TcpSrc uint32 `protobuf:"varint,16,opt,name=tcp_src,json=tcpSrc,proto3,oneof"` |
| 3274 | } |
| 3275 | |
| 3276 | type OfpOxmOfbField_TcpDst struct { |
| 3277 | TcpDst uint32 `protobuf:"varint,17,opt,name=tcp_dst,json=tcpDst,proto3,oneof"` |
| 3278 | } |
| 3279 | |
| 3280 | type OfpOxmOfbField_UdpSrc struct { |
| 3281 | UdpSrc uint32 `protobuf:"varint,18,opt,name=udp_src,json=udpSrc,proto3,oneof"` |
| 3282 | } |
| 3283 | |
| 3284 | type OfpOxmOfbField_UdpDst struct { |
| 3285 | UdpDst uint32 `protobuf:"varint,19,opt,name=udp_dst,json=udpDst,proto3,oneof"` |
| 3286 | } |
| 3287 | |
| 3288 | type OfpOxmOfbField_SctpSrc struct { |
| 3289 | SctpSrc uint32 `protobuf:"varint,20,opt,name=sctp_src,json=sctpSrc,proto3,oneof"` |
| 3290 | } |
| 3291 | |
| 3292 | type OfpOxmOfbField_SctpDst struct { |
| 3293 | SctpDst uint32 `protobuf:"varint,21,opt,name=sctp_dst,json=sctpDst,proto3,oneof"` |
| 3294 | } |
| 3295 | |
| 3296 | type OfpOxmOfbField_Icmpv4Type struct { |
| 3297 | Icmpv4Type uint32 `protobuf:"varint,22,opt,name=icmpv4_type,json=icmpv4Type,proto3,oneof"` |
| 3298 | } |
| 3299 | |
| 3300 | type OfpOxmOfbField_Icmpv4Code struct { |
| 3301 | Icmpv4Code uint32 `protobuf:"varint,23,opt,name=icmpv4_code,json=icmpv4Code,proto3,oneof"` |
| 3302 | } |
| 3303 | |
| 3304 | type OfpOxmOfbField_ArpOp struct { |
| 3305 | ArpOp uint32 `protobuf:"varint,24,opt,name=arp_op,json=arpOp,proto3,oneof"` |
| 3306 | } |
| 3307 | |
| 3308 | type OfpOxmOfbField_ArpSpa struct { |
| 3309 | ArpSpa uint32 `protobuf:"varint,25,opt,name=arp_spa,json=arpSpa,proto3,oneof"` |
| 3310 | } |
| 3311 | |
| 3312 | type OfpOxmOfbField_ArpTpa struct { |
| 3313 | ArpTpa uint32 `protobuf:"varint,26,opt,name=arp_tpa,json=arpTpa,proto3,oneof"` |
| 3314 | } |
| 3315 | |
| 3316 | type OfpOxmOfbField_ArpSha struct { |
| 3317 | ArpSha []byte `protobuf:"bytes,27,opt,name=arp_sha,json=arpSha,proto3,oneof"` |
| 3318 | } |
| 3319 | |
| 3320 | type OfpOxmOfbField_ArpTha struct { |
| 3321 | ArpTha []byte `protobuf:"bytes,28,opt,name=arp_tha,json=arpTha,proto3,oneof"` |
| 3322 | } |
| 3323 | |
| 3324 | type OfpOxmOfbField_Ipv6Src struct { |
| 3325 | Ipv6Src []byte `protobuf:"bytes,29,opt,name=ipv6_src,json=ipv6Src,proto3,oneof"` |
| 3326 | } |
| 3327 | |
| 3328 | type OfpOxmOfbField_Ipv6Dst struct { |
| 3329 | Ipv6Dst []byte `protobuf:"bytes,30,opt,name=ipv6_dst,json=ipv6Dst,proto3,oneof"` |
| 3330 | } |
| 3331 | |
| 3332 | type OfpOxmOfbField_Ipv6Flabel struct { |
| 3333 | Ipv6Flabel uint32 `protobuf:"varint,31,opt,name=ipv6_flabel,json=ipv6Flabel,proto3,oneof"` |
| 3334 | } |
| 3335 | |
| 3336 | type OfpOxmOfbField_Icmpv6Type struct { |
| 3337 | Icmpv6Type uint32 `protobuf:"varint,32,opt,name=icmpv6_type,json=icmpv6Type,proto3,oneof"` |
| 3338 | } |
| 3339 | |
| 3340 | type OfpOxmOfbField_Icmpv6Code struct { |
| 3341 | Icmpv6Code uint32 `protobuf:"varint,33,opt,name=icmpv6_code,json=icmpv6Code,proto3,oneof"` |
| 3342 | } |
| 3343 | |
| 3344 | type OfpOxmOfbField_Ipv6NdTarget struct { |
| 3345 | Ipv6NdTarget []byte `protobuf:"bytes,34,opt,name=ipv6_nd_target,json=ipv6NdTarget,proto3,oneof"` |
| 3346 | } |
| 3347 | |
| 3348 | type OfpOxmOfbField_Ipv6NdSsl struct { |
| 3349 | Ipv6NdSsl []byte `protobuf:"bytes,35,opt,name=ipv6_nd_ssl,json=ipv6NdSsl,proto3,oneof"` |
| 3350 | } |
| 3351 | |
| 3352 | type OfpOxmOfbField_Ipv6NdTll struct { |
| 3353 | Ipv6NdTll []byte `protobuf:"bytes,36,opt,name=ipv6_nd_tll,json=ipv6NdTll,proto3,oneof"` |
| 3354 | } |
| 3355 | |
| 3356 | type OfpOxmOfbField_MplsLabel struct { |
| 3357 | MplsLabel uint32 `protobuf:"varint,37,opt,name=mpls_label,json=mplsLabel,proto3,oneof"` |
| 3358 | } |
| 3359 | |
| 3360 | type OfpOxmOfbField_MplsTc struct { |
| 3361 | MplsTc uint32 `protobuf:"varint,38,opt,name=mpls_tc,json=mplsTc,proto3,oneof"` |
| 3362 | } |
| 3363 | |
| 3364 | type OfpOxmOfbField_MplsBos struct { |
| 3365 | MplsBos uint32 `protobuf:"varint,39,opt,name=mpls_bos,json=mplsBos,proto3,oneof"` |
| 3366 | } |
| 3367 | |
| 3368 | type OfpOxmOfbField_PbbIsid struct { |
| 3369 | PbbIsid uint32 `protobuf:"varint,40,opt,name=pbb_isid,json=pbbIsid,proto3,oneof"` |
| 3370 | } |
| 3371 | |
| 3372 | type OfpOxmOfbField_TunnelId struct { |
| 3373 | TunnelId uint64 `protobuf:"varint,41,opt,name=tunnel_id,json=tunnelId,proto3,oneof"` |
| 3374 | } |
| 3375 | |
| 3376 | type OfpOxmOfbField_Ipv6Exthdr struct { |
| 3377 | Ipv6Exthdr uint32 `protobuf:"varint,42,opt,name=ipv6_exthdr,json=ipv6Exthdr,proto3,oneof"` |
| 3378 | } |
| 3379 | |
| 3380 | func (*OfpOxmOfbField_Port) isOfpOxmOfbField_Value() {} |
| 3381 | |
| 3382 | func (*OfpOxmOfbField_PhysicalPort) isOfpOxmOfbField_Value() {} |
| 3383 | |
| 3384 | func (*OfpOxmOfbField_TableMetadata) isOfpOxmOfbField_Value() {} |
| 3385 | |
| 3386 | func (*OfpOxmOfbField_EthDst) isOfpOxmOfbField_Value() {} |
| 3387 | |
| 3388 | func (*OfpOxmOfbField_EthSrc) isOfpOxmOfbField_Value() {} |
| 3389 | |
| 3390 | func (*OfpOxmOfbField_EthType) isOfpOxmOfbField_Value() {} |
| 3391 | |
| 3392 | func (*OfpOxmOfbField_VlanVid) isOfpOxmOfbField_Value() {} |
| 3393 | |
| 3394 | func (*OfpOxmOfbField_VlanPcp) isOfpOxmOfbField_Value() {} |
| 3395 | |
| 3396 | func (*OfpOxmOfbField_IpDscp) isOfpOxmOfbField_Value() {} |
| 3397 | |
| 3398 | func (*OfpOxmOfbField_IpEcn) isOfpOxmOfbField_Value() {} |
| 3399 | |
| 3400 | func (*OfpOxmOfbField_IpProto) isOfpOxmOfbField_Value() {} |
| 3401 | |
| 3402 | func (*OfpOxmOfbField_Ipv4Src) isOfpOxmOfbField_Value() {} |
| 3403 | |
| 3404 | func (*OfpOxmOfbField_Ipv4Dst) isOfpOxmOfbField_Value() {} |
| 3405 | |
| 3406 | func (*OfpOxmOfbField_TcpSrc) isOfpOxmOfbField_Value() {} |
| 3407 | |
| 3408 | func (*OfpOxmOfbField_TcpDst) isOfpOxmOfbField_Value() {} |
| 3409 | |
| 3410 | func (*OfpOxmOfbField_UdpSrc) isOfpOxmOfbField_Value() {} |
| 3411 | |
| 3412 | func (*OfpOxmOfbField_UdpDst) isOfpOxmOfbField_Value() {} |
| 3413 | |
| 3414 | func (*OfpOxmOfbField_SctpSrc) isOfpOxmOfbField_Value() {} |
| 3415 | |
| 3416 | func (*OfpOxmOfbField_SctpDst) isOfpOxmOfbField_Value() {} |
| 3417 | |
| 3418 | func (*OfpOxmOfbField_Icmpv4Type) isOfpOxmOfbField_Value() {} |
| 3419 | |
| 3420 | func (*OfpOxmOfbField_Icmpv4Code) isOfpOxmOfbField_Value() {} |
| 3421 | |
| 3422 | func (*OfpOxmOfbField_ArpOp) isOfpOxmOfbField_Value() {} |
| 3423 | |
| 3424 | func (*OfpOxmOfbField_ArpSpa) isOfpOxmOfbField_Value() {} |
| 3425 | |
| 3426 | func (*OfpOxmOfbField_ArpTpa) isOfpOxmOfbField_Value() {} |
| 3427 | |
| 3428 | func (*OfpOxmOfbField_ArpSha) isOfpOxmOfbField_Value() {} |
| 3429 | |
| 3430 | func (*OfpOxmOfbField_ArpTha) isOfpOxmOfbField_Value() {} |
| 3431 | |
| 3432 | func (*OfpOxmOfbField_Ipv6Src) isOfpOxmOfbField_Value() {} |
| 3433 | |
| 3434 | func (*OfpOxmOfbField_Ipv6Dst) isOfpOxmOfbField_Value() {} |
| 3435 | |
| 3436 | func (*OfpOxmOfbField_Ipv6Flabel) isOfpOxmOfbField_Value() {} |
| 3437 | |
| 3438 | func (*OfpOxmOfbField_Icmpv6Type) isOfpOxmOfbField_Value() {} |
| 3439 | |
| 3440 | func (*OfpOxmOfbField_Icmpv6Code) isOfpOxmOfbField_Value() {} |
| 3441 | |
| 3442 | func (*OfpOxmOfbField_Ipv6NdTarget) isOfpOxmOfbField_Value() {} |
| 3443 | |
| 3444 | func (*OfpOxmOfbField_Ipv6NdSsl) isOfpOxmOfbField_Value() {} |
| 3445 | |
| 3446 | func (*OfpOxmOfbField_Ipv6NdTll) isOfpOxmOfbField_Value() {} |
| 3447 | |
| 3448 | func (*OfpOxmOfbField_MplsLabel) isOfpOxmOfbField_Value() {} |
| 3449 | |
| 3450 | func (*OfpOxmOfbField_MplsTc) isOfpOxmOfbField_Value() {} |
| 3451 | |
| 3452 | func (*OfpOxmOfbField_MplsBos) isOfpOxmOfbField_Value() {} |
| 3453 | |
| 3454 | func (*OfpOxmOfbField_PbbIsid) isOfpOxmOfbField_Value() {} |
| 3455 | |
| 3456 | func (*OfpOxmOfbField_TunnelId) isOfpOxmOfbField_Value() {} |
| 3457 | |
| 3458 | func (*OfpOxmOfbField_Ipv6Exthdr) isOfpOxmOfbField_Value() {} |
| 3459 | |
| 3460 | func (m *OfpOxmOfbField) GetValue() isOfpOxmOfbField_Value { |
| 3461 | if m != nil { |
| 3462 | return m.Value |
| 3463 | } |
| 3464 | return nil |
| 3465 | } |
| 3466 | |
| 3467 | func (m *OfpOxmOfbField) GetPort() uint32 { |
| 3468 | if x, ok := m.GetValue().(*OfpOxmOfbField_Port); ok { |
| 3469 | return x.Port |
| 3470 | } |
| 3471 | return 0 |
| 3472 | } |
| 3473 | |
| 3474 | func (m *OfpOxmOfbField) GetPhysicalPort() uint32 { |
| 3475 | if x, ok := m.GetValue().(*OfpOxmOfbField_PhysicalPort); ok { |
| 3476 | return x.PhysicalPort |
| 3477 | } |
| 3478 | return 0 |
| 3479 | } |
| 3480 | |
| 3481 | func (m *OfpOxmOfbField) GetTableMetadata() uint64 { |
| 3482 | if x, ok := m.GetValue().(*OfpOxmOfbField_TableMetadata); ok { |
| 3483 | return x.TableMetadata |
| 3484 | } |
| 3485 | return 0 |
| 3486 | } |
| 3487 | |
| 3488 | func (m *OfpOxmOfbField) GetEthDst() []byte { |
| 3489 | if x, ok := m.GetValue().(*OfpOxmOfbField_EthDst); ok { |
| 3490 | return x.EthDst |
| 3491 | } |
| 3492 | return nil |
| 3493 | } |
| 3494 | |
| 3495 | func (m *OfpOxmOfbField) GetEthSrc() []byte { |
| 3496 | if x, ok := m.GetValue().(*OfpOxmOfbField_EthSrc); ok { |
| 3497 | return x.EthSrc |
| 3498 | } |
| 3499 | return nil |
| 3500 | } |
| 3501 | |
| 3502 | func (m *OfpOxmOfbField) GetEthType() uint32 { |
| 3503 | if x, ok := m.GetValue().(*OfpOxmOfbField_EthType); ok { |
| 3504 | return x.EthType |
| 3505 | } |
| 3506 | return 0 |
| 3507 | } |
| 3508 | |
| 3509 | func (m *OfpOxmOfbField) GetVlanVid() uint32 { |
| 3510 | if x, ok := m.GetValue().(*OfpOxmOfbField_VlanVid); ok { |
| 3511 | return x.VlanVid |
| 3512 | } |
| 3513 | return 0 |
| 3514 | } |
| 3515 | |
| 3516 | func (m *OfpOxmOfbField) GetVlanPcp() uint32 { |
| 3517 | if x, ok := m.GetValue().(*OfpOxmOfbField_VlanPcp); ok { |
| 3518 | return x.VlanPcp |
| 3519 | } |
| 3520 | return 0 |
| 3521 | } |
| 3522 | |
| 3523 | func (m *OfpOxmOfbField) GetIpDscp() uint32 { |
| 3524 | if x, ok := m.GetValue().(*OfpOxmOfbField_IpDscp); ok { |
| 3525 | return x.IpDscp |
| 3526 | } |
| 3527 | return 0 |
| 3528 | } |
| 3529 | |
| 3530 | func (m *OfpOxmOfbField) GetIpEcn() uint32 { |
| 3531 | if x, ok := m.GetValue().(*OfpOxmOfbField_IpEcn); ok { |
| 3532 | return x.IpEcn |
| 3533 | } |
| 3534 | return 0 |
| 3535 | } |
| 3536 | |
| 3537 | func (m *OfpOxmOfbField) GetIpProto() uint32 { |
| 3538 | if x, ok := m.GetValue().(*OfpOxmOfbField_IpProto); ok { |
| 3539 | return x.IpProto |
| 3540 | } |
| 3541 | return 0 |
| 3542 | } |
| 3543 | |
| 3544 | func (m *OfpOxmOfbField) GetIpv4Src() uint32 { |
| 3545 | if x, ok := m.GetValue().(*OfpOxmOfbField_Ipv4Src); ok { |
| 3546 | return x.Ipv4Src |
| 3547 | } |
| 3548 | return 0 |
| 3549 | } |
| 3550 | |
| 3551 | func (m *OfpOxmOfbField) GetIpv4Dst() uint32 { |
| 3552 | if x, ok := m.GetValue().(*OfpOxmOfbField_Ipv4Dst); ok { |
| 3553 | return x.Ipv4Dst |
| 3554 | } |
| 3555 | return 0 |
| 3556 | } |
| 3557 | |
| 3558 | func (m *OfpOxmOfbField) GetTcpSrc() uint32 { |
| 3559 | if x, ok := m.GetValue().(*OfpOxmOfbField_TcpSrc); ok { |
| 3560 | return x.TcpSrc |
| 3561 | } |
| 3562 | return 0 |
| 3563 | } |
| 3564 | |
| 3565 | func (m *OfpOxmOfbField) GetTcpDst() uint32 { |
| 3566 | if x, ok := m.GetValue().(*OfpOxmOfbField_TcpDst); ok { |
| 3567 | return x.TcpDst |
| 3568 | } |
| 3569 | return 0 |
| 3570 | } |
| 3571 | |
| 3572 | func (m *OfpOxmOfbField) GetUdpSrc() uint32 { |
| 3573 | if x, ok := m.GetValue().(*OfpOxmOfbField_UdpSrc); ok { |
| 3574 | return x.UdpSrc |
| 3575 | } |
| 3576 | return 0 |
| 3577 | } |
| 3578 | |
| 3579 | func (m *OfpOxmOfbField) GetUdpDst() uint32 { |
| 3580 | if x, ok := m.GetValue().(*OfpOxmOfbField_UdpDst); ok { |
| 3581 | return x.UdpDst |
| 3582 | } |
| 3583 | return 0 |
| 3584 | } |
| 3585 | |
| 3586 | func (m *OfpOxmOfbField) GetSctpSrc() uint32 { |
| 3587 | if x, ok := m.GetValue().(*OfpOxmOfbField_SctpSrc); ok { |
| 3588 | return x.SctpSrc |
| 3589 | } |
| 3590 | return 0 |
| 3591 | } |
| 3592 | |
| 3593 | func (m *OfpOxmOfbField) GetSctpDst() uint32 { |
| 3594 | if x, ok := m.GetValue().(*OfpOxmOfbField_SctpDst); ok { |
| 3595 | return x.SctpDst |
| 3596 | } |
| 3597 | return 0 |
| 3598 | } |
| 3599 | |
| 3600 | func (m *OfpOxmOfbField) GetIcmpv4Type() uint32 { |
| 3601 | if x, ok := m.GetValue().(*OfpOxmOfbField_Icmpv4Type); ok { |
| 3602 | return x.Icmpv4Type |
| 3603 | } |
| 3604 | return 0 |
| 3605 | } |
| 3606 | |
| 3607 | func (m *OfpOxmOfbField) GetIcmpv4Code() uint32 { |
| 3608 | if x, ok := m.GetValue().(*OfpOxmOfbField_Icmpv4Code); ok { |
| 3609 | return x.Icmpv4Code |
| 3610 | } |
| 3611 | return 0 |
| 3612 | } |
| 3613 | |
| 3614 | func (m *OfpOxmOfbField) GetArpOp() uint32 { |
| 3615 | if x, ok := m.GetValue().(*OfpOxmOfbField_ArpOp); ok { |
| 3616 | return x.ArpOp |
| 3617 | } |
| 3618 | return 0 |
| 3619 | } |
| 3620 | |
| 3621 | func (m *OfpOxmOfbField) GetArpSpa() uint32 { |
| 3622 | if x, ok := m.GetValue().(*OfpOxmOfbField_ArpSpa); ok { |
| 3623 | return x.ArpSpa |
| 3624 | } |
| 3625 | return 0 |
| 3626 | } |
| 3627 | |
| 3628 | func (m *OfpOxmOfbField) GetArpTpa() uint32 { |
| 3629 | if x, ok := m.GetValue().(*OfpOxmOfbField_ArpTpa); ok { |
| 3630 | return x.ArpTpa |
| 3631 | } |
| 3632 | return 0 |
| 3633 | } |
| 3634 | |
| 3635 | func (m *OfpOxmOfbField) GetArpSha() []byte { |
| 3636 | if x, ok := m.GetValue().(*OfpOxmOfbField_ArpSha); ok { |
| 3637 | return x.ArpSha |
| 3638 | } |
| 3639 | return nil |
| 3640 | } |
| 3641 | |
| 3642 | func (m *OfpOxmOfbField) GetArpTha() []byte { |
| 3643 | if x, ok := m.GetValue().(*OfpOxmOfbField_ArpTha); ok { |
| 3644 | return x.ArpTha |
| 3645 | } |
| 3646 | return nil |
| 3647 | } |
| 3648 | |
| 3649 | func (m *OfpOxmOfbField) GetIpv6Src() []byte { |
| 3650 | if x, ok := m.GetValue().(*OfpOxmOfbField_Ipv6Src); ok { |
| 3651 | return x.Ipv6Src |
| 3652 | } |
| 3653 | return nil |
| 3654 | } |
| 3655 | |
| 3656 | func (m *OfpOxmOfbField) GetIpv6Dst() []byte { |
| 3657 | if x, ok := m.GetValue().(*OfpOxmOfbField_Ipv6Dst); ok { |
| 3658 | return x.Ipv6Dst |
| 3659 | } |
| 3660 | return nil |
| 3661 | } |
| 3662 | |
| 3663 | func (m *OfpOxmOfbField) GetIpv6Flabel() uint32 { |
| 3664 | if x, ok := m.GetValue().(*OfpOxmOfbField_Ipv6Flabel); ok { |
| 3665 | return x.Ipv6Flabel |
| 3666 | } |
| 3667 | return 0 |
| 3668 | } |
| 3669 | |
| 3670 | func (m *OfpOxmOfbField) GetIcmpv6Type() uint32 { |
| 3671 | if x, ok := m.GetValue().(*OfpOxmOfbField_Icmpv6Type); ok { |
| 3672 | return x.Icmpv6Type |
| 3673 | } |
| 3674 | return 0 |
| 3675 | } |
| 3676 | |
| 3677 | func (m *OfpOxmOfbField) GetIcmpv6Code() uint32 { |
| 3678 | if x, ok := m.GetValue().(*OfpOxmOfbField_Icmpv6Code); ok { |
| 3679 | return x.Icmpv6Code |
| 3680 | } |
| 3681 | return 0 |
| 3682 | } |
| 3683 | |
| 3684 | func (m *OfpOxmOfbField) GetIpv6NdTarget() []byte { |
| 3685 | if x, ok := m.GetValue().(*OfpOxmOfbField_Ipv6NdTarget); ok { |
| 3686 | return x.Ipv6NdTarget |
| 3687 | } |
| 3688 | return nil |
| 3689 | } |
| 3690 | |
| 3691 | func (m *OfpOxmOfbField) GetIpv6NdSsl() []byte { |
| 3692 | if x, ok := m.GetValue().(*OfpOxmOfbField_Ipv6NdSsl); ok { |
| 3693 | return x.Ipv6NdSsl |
| 3694 | } |
| 3695 | return nil |
| 3696 | } |
| 3697 | |
| 3698 | func (m *OfpOxmOfbField) GetIpv6NdTll() []byte { |
| 3699 | if x, ok := m.GetValue().(*OfpOxmOfbField_Ipv6NdTll); ok { |
| 3700 | return x.Ipv6NdTll |
| 3701 | } |
| 3702 | return nil |
| 3703 | } |
| 3704 | |
| 3705 | func (m *OfpOxmOfbField) GetMplsLabel() uint32 { |
| 3706 | if x, ok := m.GetValue().(*OfpOxmOfbField_MplsLabel); ok { |
| 3707 | return x.MplsLabel |
| 3708 | } |
| 3709 | return 0 |
| 3710 | } |
| 3711 | |
| 3712 | func (m *OfpOxmOfbField) GetMplsTc() uint32 { |
| 3713 | if x, ok := m.GetValue().(*OfpOxmOfbField_MplsTc); ok { |
| 3714 | return x.MplsTc |
| 3715 | } |
| 3716 | return 0 |
| 3717 | } |
| 3718 | |
| 3719 | func (m *OfpOxmOfbField) GetMplsBos() uint32 { |
| 3720 | if x, ok := m.GetValue().(*OfpOxmOfbField_MplsBos); ok { |
| 3721 | return x.MplsBos |
| 3722 | } |
| 3723 | return 0 |
| 3724 | } |
| 3725 | |
| 3726 | func (m *OfpOxmOfbField) GetPbbIsid() uint32 { |
| 3727 | if x, ok := m.GetValue().(*OfpOxmOfbField_PbbIsid); ok { |
| 3728 | return x.PbbIsid |
| 3729 | } |
| 3730 | return 0 |
| 3731 | } |
| 3732 | |
| 3733 | func (m *OfpOxmOfbField) GetTunnelId() uint64 { |
| 3734 | if x, ok := m.GetValue().(*OfpOxmOfbField_TunnelId); ok { |
| 3735 | return x.TunnelId |
| 3736 | } |
| 3737 | return 0 |
| 3738 | } |
| 3739 | |
| 3740 | func (m *OfpOxmOfbField) GetIpv6Exthdr() uint32 { |
| 3741 | if x, ok := m.GetValue().(*OfpOxmOfbField_Ipv6Exthdr); ok { |
| 3742 | return x.Ipv6Exthdr |
| 3743 | } |
| 3744 | return 0 |
| 3745 | } |
| 3746 | |
| 3747 | type isOfpOxmOfbField_Mask interface { |
| 3748 | isOfpOxmOfbField_Mask() |
| 3749 | } |
| 3750 | |
| 3751 | type OfpOxmOfbField_TableMetadataMask struct { |
| 3752 | TableMetadataMask uint64 `protobuf:"varint,105,opt,name=table_metadata_mask,json=tableMetadataMask,proto3,oneof"` |
| 3753 | } |
| 3754 | |
| 3755 | type OfpOxmOfbField_EthDstMask struct { |
| 3756 | EthDstMask []byte `protobuf:"bytes,106,opt,name=eth_dst_mask,json=ethDstMask,proto3,oneof"` |
| 3757 | } |
| 3758 | |
| 3759 | type OfpOxmOfbField_EthSrcMask struct { |
| 3760 | EthSrcMask []byte `protobuf:"bytes,107,opt,name=eth_src_mask,json=ethSrcMask,proto3,oneof"` |
| 3761 | } |
| 3762 | |
| 3763 | type OfpOxmOfbField_VlanVidMask struct { |
| 3764 | VlanVidMask uint32 `protobuf:"varint,109,opt,name=vlan_vid_mask,json=vlanVidMask,proto3,oneof"` |
| 3765 | } |
| 3766 | |
| 3767 | type OfpOxmOfbField_Ipv4SrcMask struct { |
| 3768 | Ipv4SrcMask uint32 `protobuf:"varint,114,opt,name=ipv4_src_mask,json=ipv4SrcMask,proto3,oneof"` |
| 3769 | } |
| 3770 | |
| 3771 | type OfpOxmOfbField_Ipv4DstMask struct { |
| 3772 | Ipv4DstMask uint32 `protobuf:"varint,115,opt,name=ipv4_dst_mask,json=ipv4DstMask,proto3,oneof"` |
| 3773 | } |
| 3774 | |
| 3775 | type OfpOxmOfbField_ArpSpaMask struct { |
| 3776 | ArpSpaMask uint32 `protobuf:"varint,125,opt,name=arp_spa_mask,json=arpSpaMask,proto3,oneof"` |
| 3777 | } |
| 3778 | |
| 3779 | type OfpOxmOfbField_ArpTpaMask struct { |
| 3780 | ArpTpaMask uint32 `protobuf:"varint,126,opt,name=arp_tpa_mask,json=arpTpaMask,proto3,oneof"` |
| 3781 | } |
| 3782 | |
| 3783 | type OfpOxmOfbField_Ipv6SrcMask struct { |
| 3784 | Ipv6SrcMask []byte `protobuf:"bytes,129,opt,name=ipv6_src_mask,json=ipv6SrcMask,proto3,oneof"` |
| 3785 | } |
| 3786 | |
| 3787 | type OfpOxmOfbField_Ipv6DstMask struct { |
| 3788 | Ipv6DstMask []byte `protobuf:"bytes,130,opt,name=ipv6_dst_mask,json=ipv6DstMask,proto3,oneof"` |
| 3789 | } |
| 3790 | |
| 3791 | type OfpOxmOfbField_Ipv6FlabelMask struct { |
| 3792 | Ipv6FlabelMask uint32 `protobuf:"varint,131,opt,name=ipv6_flabel_mask,json=ipv6FlabelMask,proto3,oneof"` |
| 3793 | } |
| 3794 | |
| 3795 | type OfpOxmOfbField_PbbIsidMask struct { |
| 3796 | PbbIsidMask uint32 `protobuf:"varint,140,opt,name=pbb_isid_mask,json=pbbIsidMask,proto3,oneof"` |
| 3797 | } |
| 3798 | |
| 3799 | type OfpOxmOfbField_TunnelIdMask struct { |
| 3800 | TunnelIdMask uint64 `protobuf:"varint,141,opt,name=tunnel_id_mask,json=tunnelIdMask,proto3,oneof"` |
| 3801 | } |
| 3802 | |
| 3803 | type OfpOxmOfbField_Ipv6ExthdrMask struct { |
| 3804 | Ipv6ExthdrMask uint32 `protobuf:"varint,142,opt,name=ipv6_exthdr_mask,json=ipv6ExthdrMask,proto3,oneof"` |
| 3805 | } |
| 3806 | |
| 3807 | func (*OfpOxmOfbField_TableMetadataMask) isOfpOxmOfbField_Mask() {} |
| 3808 | |
| 3809 | func (*OfpOxmOfbField_EthDstMask) isOfpOxmOfbField_Mask() {} |
| 3810 | |
| 3811 | func (*OfpOxmOfbField_EthSrcMask) isOfpOxmOfbField_Mask() {} |
| 3812 | |
| 3813 | func (*OfpOxmOfbField_VlanVidMask) isOfpOxmOfbField_Mask() {} |
| 3814 | |
| 3815 | func (*OfpOxmOfbField_Ipv4SrcMask) isOfpOxmOfbField_Mask() {} |
| 3816 | |
| 3817 | func (*OfpOxmOfbField_Ipv4DstMask) isOfpOxmOfbField_Mask() {} |
| 3818 | |
| 3819 | func (*OfpOxmOfbField_ArpSpaMask) isOfpOxmOfbField_Mask() {} |
| 3820 | |
| 3821 | func (*OfpOxmOfbField_ArpTpaMask) isOfpOxmOfbField_Mask() {} |
| 3822 | |
| 3823 | func (*OfpOxmOfbField_Ipv6SrcMask) isOfpOxmOfbField_Mask() {} |
| 3824 | |
| 3825 | func (*OfpOxmOfbField_Ipv6DstMask) isOfpOxmOfbField_Mask() {} |
| 3826 | |
| 3827 | func (*OfpOxmOfbField_Ipv6FlabelMask) isOfpOxmOfbField_Mask() {} |
| 3828 | |
| 3829 | func (*OfpOxmOfbField_PbbIsidMask) isOfpOxmOfbField_Mask() {} |
| 3830 | |
| 3831 | func (*OfpOxmOfbField_TunnelIdMask) isOfpOxmOfbField_Mask() {} |
| |