Matteo Scandolo | a229eca | 2017-08-08 13:05:28 -0700 | [diff] [blame^] | 1 | |
| 2 | # Copyright 2017-present Open Networking Foundation |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
| 16 | |
Rich Lane | 2e079da | 2014-10-29 15:30:24 -0700 | [diff] [blame] | 17 | # Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University |
| 18 | # Copyright (c) 2011, 2012 Open Networking Foundation |
| 19 | # Copyright (c) 2012, 2013 Big Switch Networks, Inc. |
| 20 | # See the file LICENSE.pyloxi which should have been included in the source distribution |
| 21 | |
| 22 | # Automatically generated by LOXI from template module.py |
| 23 | # Do not modify |
| 24 | |
| 25 | import struct |
| 26 | import loxi |
Rich Lane | 2e079da | 2014-10-29 15:30:24 -0700 | [diff] [blame] | 27 | import util |
| 28 | import loxi.generic_util |
| 29 | |
Rich Lane | e256770 | 2015-01-26 15:04:35 -0800 | [diff] [blame] | 30 | import sys |
| 31 | ofp = sys.modules['loxi.of14'] |
| 32 | |
Rich Lane | 2e079da | 2014-10-29 15:30:24 -0700 | [diff] [blame] | 33 | class oxm(loxi.OFObject): |
| 34 | subtypes = {} |
| 35 | |
| 36 | |
| 37 | def __init__(self, type_len=None): |
| 38 | if type_len != None: |
| 39 | self.type_len = type_len |
| 40 | else: |
| 41 | self.type_len = 0 |
| 42 | return |
| 43 | |
| 44 | def pack(self): |
| 45 | packed = [] |
| 46 | packed.append(struct.pack("!L", self.type_len)) |
| 47 | return ''.join(packed) |
| 48 | |
| 49 | @staticmethod |
| 50 | def unpack(reader): |
| 51 | subtype, = reader.peek('!L', 0) |
| 52 | subclass = oxm.subtypes.get(subtype) |
| 53 | if subclass: |
| 54 | return subclass.unpack(reader) |
| 55 | |
| 56 | obj = oxm() |
| 57 | obj.type_len = reader.read("!L")[0] |
| 58 | return obj |
| 59 | |
| 60 | def __eq__(self, other): |
| 61 | if type(self) != type(other): return False |
| 62 | if self.type_len != other.type_len: return False |
| 63 | return True |
| 64 | |
| 65 | def pretty_print(self, q): |
| 66 | q.text("oxm {") |
| 67 | with q.group(): |
| 68 | with q.indent(2): |
| 69 | q.breakable() |
| 70 | q.breakable() |
| 71 | q.text('}') |
| 72 | |
| 73 | |
| 74 | class arp_op(oxm): |
| 75 | type_len = 2147494402 |
| 76 | |
| 77 | def __init__(self, value=None): |
| 78 | if value != None: |
| 79 | self.value = value |
| 80 | else: |
| 81 | self.value = 0 |
| 82 | return |
| 83 | |
| 84 | def pack(self): |
| 85 | packed = [] |
| 86 | packed.append(struct.pack("!L", self.type_len)) |
| 87 | packed.append(struct.pack("!H", self.value)) |
| 88 | return ''.join(packed) |
| 89 | |
| 90 | @staticmethod |
| 91 | def unpack(reader): |
| 92 | obj = arp_op() |
| 93 | _type_len = reader.read("!L")[0] |
| 94 | assert(_type_len == 2147494402) |
| 95 | obj.value = reader.read("!H")[0] |
| 96 | return obj |
| 97 | |
| 98 | def __eq__(self, other): |
| 99 | if type(self) != type(other): return False |
| 100 | if self.value != other.value: return False |
| 101 | return True |
| 102 | |
| 103 | def pretty_print(self, q): |
| 104 | q.text("arp_op {") |
| 105 | with q.group(): |
| 106 | with q.indent(2): |
| 107 | q.breakable() |
| 108 | q.text("value = "); |
| 109 | q.text("%#x" % self.value) |
| 110 | q.breakable() |
| 111 | q.text('}') |
| 112 | |
| 113 | oxm.subtypes[2147494402] = arp_op |
| 114 | |
| 115 | class arp_op_masked(oxm): |
| 116 | type_len = 2147494660 |
| 117 | |
| 118 | def __init__(self, value=None, value_mask=None): |
| 119 | if value != None: |
| 120 | self.value = value |
| 121 | else: |
| 122 | self.value = 0 |
| 123 | if value_mask != None: |
| 124 | self.value_mask = value_mask |
| 125 | else: |
| 126 | self.value_mask = 0 |
| 127 | return |
| 128 | |
| 129 | def pack(self): |
| 130 | packed = [] |
| 131 | packed.append(struct.pack("!L", self.type_len)) |
| 132 | packed.append(struct.pack("!H", self.value)) |
| 133 | packed.append(struct.pack("!H", self.value_mask)) |
| 134 | return ''.join(packed) |
| 135 | |
| 136 | @staticmethod |
| 137 | def unpack(reader): |
| 138 | obj = arp_op_masked() |
| 139 | _type_len = reader.read("!L")[0] |
| 140 | assert(_type_len == 2147494660) |
| 141 | obj.value = reader.read("!H")[0] |
| 142 | obj.value_mask = reader.read("!H")[0] |
| 143 | return obj |
| 144 | |
| 145 | def __eq__(self, other): |
| 146 | if type(self) != type(other): return False |
| 147 | if self.value != other.value: return False |
| 148 | if self.value_mask != other.value_mask: return False |
| 149 | return True |
| 150 | |
| 151 | def pretty_print(self, q): |
| 152 | q.text("arp_op_masked {") |
| 153 | with q.group(): |
| 154 | with q.indent(2): |
| 155 | q.breakable() |
| 156 | q.text("value = "); |
| 157 | q.text("%#x" % self.value) |
| 158 | q.text(","); q.breakable() |
| 159 | q.text("value_mask = "); |
| 160 | q.text("%#x" % self.value_mask) |
| 161 | q.breakable() |
| 162 | q.text('}') |
| 163 | |
| 164 | oxm.subtypes[2147494660] = arp_op_masked |
| 165 | |
| 166 | class arp_sha(oxm): |
| 167 | type_len = 2147495942 |
| 168 | |
| 169 | def __init__(self, value=None): |
| 170 | if value != None: |
| 171 | self.value = value |
| 172 | else: |
| 173 | self.value = [0,0,0,0,0,0] |
| 174 | return |
| 175 | |
| 176 | def pack(self): |
| 177 | packed = [] |
| 178 | packed.append(struct.pack("!L", self.type_len)) |
| 179 | packed.append(struct.pack("!6B", *self.value)) |
| 180 | return ''.join(packed) |
| 181 | |
| 182 | @staticmethod |
| 183 | def unpack(reader): |
| 184 | obj = arp_sha() |
| 185 | _type_len = reader.read("!L")[0] |
| 186 | assert(_type_len == 2147495942) |
| 187 | obj.value = list(reader.read('!6B')) |
| 188 | return obj |
| 189 | |
| 190 | def __eq__(self, other): |
| 191 | if type(self) != type(other): return False |
| 192 | if self.value != other.value: return False |
| 193 | return True |
| 194 | |
| 195 | def pretty_print(self, q): |
| 196 | q.text("arp_sha {") |
| 197 | with q.group(): |
| 198 | with q.indent(2): |
| 199 | q.breakable() |
| 200 | q.text("value = "); |
| 201 | q.text(util.pretty_mac(self.value)) |
| 202 | q.breakable() |
| 203 | q.text('}') |
| 204 | |
| 205 | oxm.subtypes[2147495942] = arp_sha |
| 206 | |
| 207 | class arp_sha_masked(oxm): |
| 208 | type_len = 2147496204 |
| 209 | |
| 210 | def __init__(self, value=None, value_mask=None): |
| 211 | if value != None: |
| 212 | self.value = value |
| 213 | else: |
| 214 | self.value = [0,0,0,0,0,0] |
| 215 | if value_mask != None: |
| 216 | self.value_mask = value_mask |
| 217 | else: |
| 218 | self.value_mask = [0,0,0,0,0,0] |
| 219 | return |
| 220 | |
| 221 | def pack(self): |
| 222 | packed = [] |
| 223 | packed.append(struct.pack("!L", self.type_len)) |
| 224 | packed.append(struct.pack("!6B", *self.value)) |
| 225 | packed.append(struct.pack("!6B", *self.value_mask)) |
| 226 | return ''.join(packed) |
| 227 | |
| 228 | @staticmethod |
| 229 | def unpack(reader): |
| 230 | obj = arp_sha_masked() |
| 231 | _type_len = reader.read("!L")[0] |
| 232 | assert(_type_len == 2147496204) |
| 233 | obj.value = list(reader.read('!6B')) |
| 234 | obj.value_mask = list(reader.read('!6B')) |
| 235 | return obj |
| 236 | |
| 237 | def __eq__(self, other): |
| 238 | if type(self) != type(other): return False |
| 239 | if self.value != other.value: return False |
| 240 | if self.value_mask != other.value_mask: return False |
| 241 | return True |
| 242 | |
| 243 | def pretty_print(self, q): |
| 244 | q.text("arp_sha_masked {") |
| 245 | with q.group(): |
| 246 | with q.indent(2): |
| 247 | q.breakable() |
| 248 | q.text("value = "); |
| 249 | q.text(util.pretty_mac(self.value)) |
| 250 | q.text(","); q.breakable() |
| 251 | q.text("value_mask = "); |
| 252 | q.text(util.pretty_mac(self.value_mask)) |
| 253 | q.breakable() |
| 254 | q.text('}') |
| 255 | |
| 256 | oxm.subtypes[2147496204] = arp_sha_masked |
| 257 | |
| 258 | class arp_spa(oxm): |
| 259 | type_len = 2147494916 |
| 260 | |
| 261 | def __init__(self, value=None): |
| 262 | if value != None: |
| 263 | self.value = value |
| 264 | else: |
| 265 | self.value = 0 |
| 266 | return |
| 267 | |
| 268 | def pack(self): |
| 269 | packed = [] |
| 270 | packed.append(struct.pack("!L", self.type_len)) |
| 271 | packed.append(struct.pack("!L", self.value)) |
| 272 | return ''.join(packed) |
| 273 | |
| 274 | @staticmethod |
| 275 | def unpack(reader): |
| 276 | obj = arp_spa() |
| 277 | _type_len = reader.read("!L")[0] |
| 278 | assert(_type_len == 2147494916) |
| 279 | obj.value = reader.read("!L")[0] |
| 280 | return obj |
| 281 | |
| 282 | def __eq__(self, other): |
| 283 | if type(self) != type(other): return False |
| 284 | if self.value != other.value: return False |
| 285 | return True |
| 286 | |
| 287 | def pretty_print(self, q): |
| 288 | q.text("arp_spa {") |
| 289 | with q.group(): |
| 290 | with q.indent(2): |
| 291 | q.breakable() |
| 292 | q.text("value = "); |
| 293 | q.text("%#x" % self.value) |
| 294 | q.breakable() |
| 295 | q.text('}') |
| 296 | |
| 297 | oxm.subtypes[2147494916] = arp_spa |
| 298 | |
| 299 | class arp_spa_masked(oxm): |
| 300 | type_len = 2147495176 |
| 301 | |
| 302 | def __init__(self, value=None, value_mask=None): |
| 303 | if value != None: |
| 304 | self.value = value |
| 305 | else: |
| 306 | self.value = 0 |
| 307 | if value_mask != None: |
| 308 | self.value_mask = value_mask |
| 309 | else: |
| 310 | self.value_mask = 0 |
| 311 | return |
| 312 | |
| 313 | def pack(self): |
| 314 | packed = [] |
| 315 | packed.append(struct.pack("!L", self.type_len)) |
| 316 | packed.append(struct.pack("!L", self.value)) |
| 317 | packed.append(struct.pack("!L", self.value_mask)) |
| 318 | return ''.join(packed) |
| 319 | |
| 320 | @staticmethod |
| 321 | def unpack(reader): |
| 322 | obj = arp_spa_masked() |
| 323 | _type_len = reader.read("!L")[0] |
| 324 | assert(_type_len == 2147495176) |
| 325 | obj.value = reader.read("!L")[0] |
| 326 | obj.value_mask = reader.read("!L")[0] |
| 327 | return obj |
| 328 | |
| 329 | def __eq__(self, other): |
| 330 | if type(self) != type(other): return False |
| 331 | if self.value != other.value: return False |
| 332 | if self.value_mask != other.value_mask: return False |
| 333 | return True |
| 334 | |
| 335 | def pretty_print(self, q): |
| 336 | q.text("arp_spa_masked {") |
| 337 | with q.group(): |
| 338 | with q.indent(2): |
| 339 | q.breakable() |
| 340 | q.text("value = "); |
| 341 | q.text("%#x" % self.value) |
| 342 | q.text(","); q.breakable() |
| 343 | q.text("value_mask = "); |
| 344 | q.text("%#x" % self.value_mask) |
| 345 | q.breakable() |
| 346 | q.text('}') |
| 347 | |
| 348 | oxm.subtypes[2147495176] = arp_spa_masked |
| 349 | |
| 350 | class arp_tha(oxm): |
| 351 | type_len = 2147496454 |
| 352 | |
| 353 | def __init__(self, value=None): |
| 354 | if value != None: |
| 355 | self.value = value |
| 356 | else: |
| 357 | self.value = [0,0,0,0,0,0] |
| 358 | return |
| 359 | |
| 360 | def pack(self): |
| 361 | packed = [] |
| 362 | packed.append(struct.pack("!L", self.type_len)) |
| 363 | packed.append(struct.pack("!6B", *self.value)) |
| 364 | return ''.join(packed) |
| 365 | |
| 366 | @staticmethod |
| 367 | def unpack(reader): |
| 368 | obj = arp_tha() |
| 369 | _type_len = reader.read("!L")[0] |
| 370 | assert(_type_len == 2147496454) |
| 371 | obj.value = list(reader.read('!6B')) |
| 372 | return obj |
| 373 | |
| 374 | def __eq__(self, other): |
| 375 | if type(self) != type(other): return False |
| 376 | if self.value != other.value: return False |
| 377 | return True |
| 378 | |
| 379 | def pretty_print(self, q): |
| 380 | q.text("arp_tha {") |
| 381 | with q.group(): |
| 382 | with q.indent(2): |
| 383 | q.breakable() |
| 384 | q.text("value = "); |
| 385 | q.text(util.pretty_mac(self.value)) |
| 386 | q.breakable() |
| 387 | q.text('}') |
| 388 | |
| 389 | oxm.subtypes[2147496454] = arp_tha |
| 390 | |
| 391 | class arp_tha_masked(oxm): |
| 392 | type_len = 2147496716 |
| 393 | |
| 394 | def __init__(self, value=None, value_mask=None): |
| 395 | if value != None: |
| 396 | self.value = value |
| 397 | else: |
| 398 | self.value = [0,0,0,0,0,0] |
| 399 | if value_mask != None: |
| 400 | self.value_mask = value_mask |
| 401 | else: |
| 402 | self.value_mask = [0,0,0,0,0,0] |
| 403 | return |
| 404 | |
| 405 | def pack(self): |
| 406 | packed = [] |
| 407 | packed.append(struct.pack("!L", self.type_len)) |
| 408 | packed.append(struct.pack("!6B", *self.value)) |
| 409 | packed.append(struct.pack("!6B", *self.value_mask)) |
| 410 | return ''.join(packed) |
| 411 | |
| 412 | @staticmethod |
| 413 | def unpack(reader): |
| 414 | obj = arp_tha_masked() |
| 415 | _type_len = reader.read("!L")[0] |
| 416 | assert(_type_len == 2147496716) |
| 417 | obj.value = list(reader.read('!6B')) |
| 418 | obj.value_mask = list(reader.read('!6B')) |
| 419 | return obj |
| 420 | |
| 421 | def __eq__(self, other): |
| 422 | if type(self) != type(other): return False |
| 423 | if self.value != other.value: return False |
| 424 | if self.value_mask != other.value_mask: return False |
| 425 | return True |
| 426 | |
| 427 | def pretty_print(self, q): |
| 428 | q.text("arp_tha_masked {") |
| 429 | with q.group(): |
| 430 | with q.indent(2): |
| 431 | q.breakable() |
| 432 | q.text("value = "); |
| 433 | q.text(util.pretty_mac(self.value)) |
| 434 | q.text(","); q.breakable() |
| 435 | q.text("value_mask = "); |
| 436 | q.text(util.pretty_mac(self.value_mask)) |
| 437 | q.breakable() |
| 438 | q.text('}') |
| 439 | |
| 440 | oxm.subtypes[2147496716] = arp_tha_masked |
| 441 | |
| 442 | class arp_tpa(oxm): |
| 443 | type_len = 2147495428 |
| 444 | |
| 445 | def __init__(self, value=None): |
| 446 | if value != None: |
| 447 | self.value = value |
| 448 | else: |
| 449 | self.value = 0 |
| 450 | return |
| 451 | |
| 452 | def pack(self): |
| 453 | packed = [] |
| 454 | packed.append(struct.pack("!L", self.type_len)) |
| 455 | packed.append(struct.pack("!L", self.value)) |
| 456 | return ''.join(packed) |
| 457 | |
| 458 | @staticmethod |
| 459 | def unpack(reader): |
| 460 | obj = arp_tpa() |
| 461 | _type_len = reader.read("!L")[0] |
| 462 | assert(_type_len == 2147495428) |
| 463 | obj.value = reader.read("!L")[0] |
| 464 | return obj |
| 465 | |
| 466 | def __eq__(self, other): |
| 467 | if type(self) != type(other): return False |
| 468 | if self.value != other.value: return False |
| 469 | return True |
| 470 | |
| 471 | def pretty_print(self, q): |
| 472 | q.text("arp_tpa {") |
| 473 | with q.group(): |
| 474 | with q.indent(2): |
| 475 | q.breakable() |
| 476 | q.text("value = "); |
| 477 | q.text("%#x" % self.value) |
| 478 | q.breakable() |
| 479 | q.text('}') |
| 480 | |
| 481 | oxm.subtypes[2147495428] = arp_tpa |
| 482 | |
| 483 | class arp_tpa_masked(oxm): |
| 484 | type_len = 2147495688 |
| 485 | |
| 486 | def __init__(self, value=None, value_mask=None): |
| 487 | if value != None: |
| 488 | self.value = value |
| 489 | else: |
| 490 | self.value = 0 |
| 491 | if value_mask != None: |
| 492 | self.value_mask = value_mask |
| 493 | else: |
| 494 | self.value_mask = 0 |
| 495 | return |
| 496 | |
| 497 | def pack(self): |
| 498 | packed = [] |
| 499 | packed.append(struct.pack("!L", self.type_len)) |
| 500 | packed.append(struct.pack("!L", self.value)) |
| 501 | packed.append(struct.pack("!L", self.value_mask)) |
| 502 | return ''.join(packed) |
| 503 | |
| 504 | @staticmethod |
| 505 | def unpack(reader): |
| 506 | obj = arp_tpa_masked() |
| 507 | _type_len = reader.read("!L")[0] |
| 508 | assert(_type_len == 2147495688) |
| 509 | obj.value = reader.read("!L")[0] |
| 510 | obj.value_mask = reader.read("!L")[0] |
| 511 | return obj |
| 512 | |
| 513 | def __eq__(self, other): |
| 514 | if type(self) != type(other): return False |
| 515 | if self.value != other.value: return False |
| 516 | if self.value_mask != other.value_mask: return False |
| 517 | return True |
| 518 | |
| 519 | def pretty_print(self, q): |
| 520 | q.text("arp_tpa_masked {") |
| 521 | with q.group(): |
| 522 | with q.indent(2): |
| 523 | q.breakable() |
| 524 | q.text("value = "); |
| 525 | q.text("%#x" % self.value) |
| 526 | q.text(","); q.breakable() |
| 527 | q.text("value_mask = "); |
| 528 | q.text("%#x" % self.value_mask) |
| 529 | q.breakable() |
| 530 | q.text('}') |
| 531 | |
| 532 | oxm.subtypes[2147495688] = arp_tpa_masked |
| 533 | |
Rich Lane | ccd32ed | 2014-11-10 17:48:24 -0800 | [diff] [blame] | 534 | class bsn_egr_port_group_id(oxm): |
| 535 | type_len = 200196 |
| 536 | |
| 537 | def __init__(self, value=None): |
| 538 | if value != None: |
| 539 | self.value = value |
| 540 | else: |
| 541 | self.value = 0 |
| 542 | return |
| 543 | |
| 544 | def pack(self): |
| 545 | packed = [] |
| 546 | packed.append(struct.pack("!L", self.type_len)) |
| 547 | packed.append(struct.pack("!L", self.value)) |
| 548 | return ''.join(packed) |
| 549 | |
| 550 | @staticmethod |
| 551 | def unpack(reader): |
| 552 | obj = bsn_egr_port_group_id() |
| 553 | _type_len = reader.read("!L")[0] |
| 554 | assert(_type_len == 200196) |
| 555 | obj.value = reader.read("!L")[0] |
| 556 | return obj |
| 557 | |
| 558 | def __eq__(self, other): |
| 559 | if type(self) != type(other): return False |
| 560 | if self.value != other.value: return False |
| 561 | return True |
| 562 | |
| 563 | def pretty_print(self, q): |
| 564 | q.text("bsn_egr_port_group_id {") |
| 565 | with q.group(): |
| 566 | with q.indent(2): |
| 567 | q.breakable() |
| 568 | q.text("value = "); |
| 569 | q.text("%#x" % self.value) |
| 570 | q.breakable() |
| 571 | q.text('}') |
| 572 | |
| 573 | oxm.subtypes[200196] = bsn_egr_port_group_id |
| 574 | |
| 575 | class bsn_egr_port_group_id_masked(oxm): |
| 576 | type_len = 200456 |
| 577 | |
| 578 | def __init__(self, value=None, value_mask=None): |
| 579 | if value != None: |
| 580 | self.value = value |
| 581 | else: |
| 582 | self.value = 0 |
| 583 | if value_mask != None: |
| 584 | self.value_mask = value_mask |
| 585 | else: |
| 586 | self.value_mask = 0 |
| 587 | return |
| 588 | |
| 589 | def pack(self): |
| 590 | packed = [] |
| 591 | packed.append(struct.pack("!L", self.type_len)) |
| 592 | packed.append(struct.pack("!L", self.value)) |
| 593 | packed.append(struct.pack("!L", self.value_mask)) |
| 594 | return ''.join(packed) |
| 595 | |
| 596 | @staticmethod |
| 597 | def unpack(reader): |
| 598 | obj = bsn_egr_port_group_id_masked() |
| 599 | _type_len = reader.read("!L")[0] |
| 600 | assert(_type_len == 200456) |
| 601 | obj.value = reader.read("!L")[0] |
| 602 | obj.value_mask = reader.read("!L")[0] |
| 603 | return obj |
| 604 | |
| 605 | def __eq__(self, other): |
| 606 | if type(self) != type(other): return False |
| 607 | if self.value != other.value: return False |
| 608 | if self.value_mask != other.value_mask: return False |
| 609 | return True |
| 610 | |
| 611 | def pretty_print(self, q): |
| 612 | q.text("bsn_egr_port_group_id_masked {") |
| 613 | with q.group(): |
| 614 | with q.indent(2): |
| 615 | q.breakable() |
| 616 | q.text("value = "); |
| 617 | q.text("%#x" % self.value) |
| 618 | q.text(","); q.breakable() |
| 619 | q.text("value_mask = "); |
| 620 | q.text("%#x" % self.value_mask) |
| 621 | q.breakable() |
| 622 | q.text('}') |
| 623 | |
| 624 | oxm.subtypes[200456] = bsn_egr_port_group_id_masked |
| 625 | |
| 626 | class bsn_in_ports_128(oxm): |
| 627 | type_len = 196624 |
| 628 | |
| 629 | def __init__(self, value=None): |
| 630 | if value != None: |
| 631 | self.value = value |
| 632 | else: |
| 633 | self.value = set() |
| 634 | return |
| 635 | |
| 636 | def pack(self): |
| 637 | packed = [] |
| 638 | packed.append(struct.pack("!L", self.type_len)) |
| 639 | packed.append(util.pack_bitmap_128(self.value)) |
| 640 | return ''.join(packed) |
| 641 | |
| 642 | @staticmethod |
| 643 | def unpack(reader): |
| 644 | obj = bsn_in_ports_128() |
| 645 | _type_len = reader.read("!L")[0] |
| 646 | assert(_type_len == 196624) |
| 647 | obj.value = util.unpack_bitmap_128(reader) |
| 648 | return obj |
| 649 | |
| 650 | def __eq__(self, other): |
| 651 | if type(self) != type(other): return False |
| 652 | if self.value != other.value: return False |
| 653 | return True |
| 654 | |
| 655 | def pretty_print(self, q): |
| 656 | q.text("bsn_in_ports_128 {") |
| 657 | with q.group(): |
| 658 | with q.indent(2): |
| 659 | q.breakable() |
| 660 | q.text("value = "); |
| 661 | q.pp(self.value) |
| 662 | q.breakable() |
| 663 | q.text('}') |
| 664 | |
| 665 | oxm.subtypes[196624] = bsn_in_ports_128 |
| 666 | |
| 667 | class bsn_in_ports_128_masked(oxm): |
| 668 | type_len = 196896 |
| 669 | |
| 670 | def __init__(self, value=None, value_mask=None): |
| 671 | if value != None: |
| 672 | self.value = value |
| 673 | else: |
| 674 | self.value = set() |
| 675 | if value_mask != None: |
| 676 | self.value_mask = value_mask |
| 677 | else: |
| 678 | self.value_mask = set() |
| 679 | return |
| 680 | |
| 681 | def pack(self): |
| 682 | packed = [] |
| 683 | packed.append(struct.pack("!L", self.type_len)) |
| 684 | packed.append(util.pack_bitmap_128(self.value)) |
| 685 | packed.append(util.pack_bitmap_128(self.value_mask)) |
| 686 | return ''.join(packed) |
| 687 | |
| 688 | @staticmethod |
| 689 | def unpack(reader): |
| 690 | obj = bsn_in_ports_128_masked() |
| 691 | _type_len = reader.read("!L")[0] |
| 692 | assert(_type_len == 196896) |
| 693 | obj.value = util.unpack_bitmap_128(reader) |
| 694 | obj.value_mask = util.unpack_bitmap_128(reader) |
| 695 | return obj |
| 696 | |
| 697 | def __eq__(self, other): |
| 698 | if type(self) != type(other): return False |
| 699 | if self.value != other.value: return False |
| 700 | if self.value_mask != other.value_mask: return False |
| 701 | return True |
| 702 | |
| 703 | def pretty_print(self, q): |
| 704 | q.text("bsn_in_ports_128_masked {") |
| 705 | with q.group(): |
| 706 | with q.indent(2): |
| 707 | q.breakable() |
| 708 | q.text("value = "); |
| 709 | q.pp(self.value) |
| 710 | q.text(","); q.breakable() |
| 711 | q.text("value_mask = "); |
| 712 | q.pp(self.value_mask) |
| 713 | q.breakable() |
| 714 | q.text('}') |
| 715 | |
| 716 | oxm.subtypes[196896] = bsn_in_ports_128_masked |
| 717 | |
Rich Lane | 474324f | 2015-01-14 15:22:56 -0800 | [diff] [blame] | 718 | class bsn_in_ports_512(oxm): |
| 719 | type_len = 206400 |
| 720 | |
| 721 | def __init__(self, value=None): |
| 722 | if value != None: |
| 723 | self.value = value |
| 724 | else: |
| 725 | self.value = set() |
| 726 | return |
| 727 | |
| 728 | def pack(self): |
| 729 | packed = [] |
| 730 | packed.append(struct.pack("!L", self.type_len)) |
| 731 | packed.append(util.pack_bitmap_512(self.value)) |
| 732 | return ''.join(packed) |
| 733 | |
| 734 | @staticmethod |
| 735 | def unpack(reader): |
| 736 | obj = bsn_in_ports_512() |
| 737 | _type_len = reader.read("!L")[0] |
| 738 | assert(_type_len == 206400) |
| 739 | obj.value = util.unpack_bitmap_512(reader) |
| 740 | return obj |
| 741 | |
| 742 | def __eq__(self, other): |
| 743 | if type(self) != type(other): return False |
| 744 | if self.value != other.value: return False |
| 745 | return True |
| 746 | |
| 747 | def pretty_print(self, q): |
| 748 | q.text("bsn_in_ports_512 {") |
| 749 | with q.group(): |
| 750 | with q.indent(2): |
| 751 | q.breakable() |
| 752 | q.text("value = "); |
| 753 | q.pp(self.value) |
| 754 | q.breakable() |
| 755 | q.text('}') |
| 756 | |
| 757 | oxm.subtypes[206400] = bsn_in_ports_512 |
| 758 | |
| 759 | class bsn_in_ports_512_masked(oxm): |
| 760 | type_len = 206720 |
| 761 | |
| 762 | def __init__(self, value=None, value_mask=None): |
| 763 | if value != None: |
| 764 | self.value = value |
| 765 | else: |
| 766 | self.value = set() |
| 767 | if value_mask != None: |
| 768 | self.value_mask = value_mask |
| 769 | else: |
| 770 | self.value_mask = set() |
| 771 | return |
| 772 | |
| 773 | def pack(self): |
| 774 | packed = [] |
| 775 | packed.append(struct.pack("!L", self.type_len)) |
| 776 | packed.append(util.pack_bitmap_512(self.value)) |
| 777 | packed.append(util.pack_bitmap_512(self.value_mask)) |
| 778 | return ''.join(packed) |
| 779 | |
| 780 | @staticmethod |
| 781 | def unpack(reader): |
| 782 | obj = bsn_in_ports_512_masked() |
| 783 | _type_len = reader.read("!L")[0] |
| 784 | assert(_type_len == 206720) |
| 785 | obj.value = util.unpack_bitmap_512(reader) |
| 786 | obj.value_mask = util.unpack_bitmap_512(reader) |
| 787 | return obj |
| 788 | |
| 789 | def __eq__(self, other): |
| 790 | if type(self) != type(other): return False |
| 791 | if self.value != other.value: return False |
| 792 | if self.value_mask != other.value_mask: return False |
| 793 | return True |
| 794 | |
| 795 | def pretty_print(self, q): |
| 796 | q.text("bsn_in_ports_512_masked {") |
| 797 | with q.group(): |
| 798 | with q.indent(2): |
| 799 | q.breakable() |
| 800 | q.text("value = "); |
| 801 | q.pp(self.value) |
| 802 | q.text(","); q.breakable() |
| 803 | q.text("value_mask = "); |
| 804 | q.pp(self.value_mask) |
| 805 | q.breakable() |
| 806 | q.text('}') |
| 807 | |
| 808 | oxm.subtypes[206720] = bsn_in_ports_512_masked |
| 809 | |
Rich Lane | 2d1b40e | 2015-02-11 12:45:33 -0800 | [diff] [blame] | 810 | class bsn_ingress_port_group_id(oxm): |
| 811 | type_len = 206852 |
| 812 | |
| 813 | def __init__(self, value=None): |
| 814 | if value != None: |
| 815 | self.value = value |
| 816 | else: |
| 817 | self.value = 0 |
| 818 | return |
| 819 | |
| 820 | def pack(self): |
| 821 | packed = [] |
| 822 | packed.append(struct.pack("!L", self.type_len)) |
| 823 | packed.append(struct.pack("!L", self.value)) |
| 824 | return ''.join(packed) |
| 825 | |
| 826 | @staticmethod |
| 827 | def unpack(reader): |
| 828 | obj = bsn_ingress_port_group_id() |
| 829 | _type_len = reader.read("!L")[0] |
| 830 | assert(_type_len == 206852) |
| 831 | obj.value = reader.read("!L")[0] |
| 832 | return obj |
| 833 | |
| 834 | def __eq__(self, other): |
| 835 | if type(self) != type(other): return False |
| 836 | if self.value != other.value: return False |
| 837 | return True |
| 838 | |
| 839 | def pretty_print(self, q): |
| 840 | q.text("bsn_ingress_port_group_id {") |
| 841 | with q.group(): |
| 842 | with q.indent(2): |
| 843 | q.breakable() |
| 844 | q.text("value = "); |
| 845 | q.text("%#x" % self.value) |
| 846 | q.breakable() |
| 847 | q.text('}') |
| 848 | |
| 849 | oxm.subtypes[206852] = bsn_ingress_port_group_id |
| 850 | |
| 851 | class bsn_ingress_port_group_id_masked(oxm): |
| 852 | type_len = 207112 |
| 853 | |
| 854 | def __init__(self, value=None, value_mask=None): |
| 855 | if value != None: |
| 856 | self.value = value |
| 857 | else: |
| 858 | self.value = 0 |
| 859 | if value_mask != None: |
| 860 | self.value_mask = value_mask |
| 861 | else: |
| 862 | self.value_mask = 0 |
| 863 | return |
| 864 | |
| 865 | def pack(self): |
| 866 | packed = [] |
| 867 | packed.append(struct.pack("!L", self.type_len)) |
| 868 | packed.append(struct.pack("!L", self.value)) |
| 869 | packed.append(struct.pack("!L", self.value_mask)) |
| 870 | return ''.join(packed) |
| 871 | |
| 872 | @staticmethod |
| 873 | def unpack(reader): |
| 874 | obj = bsn_ingress_port_group_id_masked() |
| 875 | _type_len = reader.read("!L")[0] |
| 876 | assert(_type_len == 207112) |
| 877 | obj.value = reader.read("!L")[0] |
| 878 | obj.value_mask = reader.read("!L")[0] |
| 879 | return obj |
| 880 | |
| 881 | def __eq__(self, other): |
| 882 | if type(self) != type(other): return False |
| 883 | if self.value != other.value: return False |
| 884 | if self.value_mask != other.value_mask: return False |
| 885 | return True |
| 886 | |
| 887 | def pretty_print(self, q): |
| 888 | q.text("bsn_ingress_port_group_id_masked {") |
| 889 | with q.group(): |
| 890 | with q.indent(2): |
| 891 | q.breakable() |
| 892 | q.text("value = "); |
| 893 | q.text("%#x" % self.value) |
| 894 | q.text(","); q.breakable() |
| 895 | q.text("value_mask = "); |
| 896 | q.text("%#x" % self.value_mask) |
| 897 | q.breakable() |
| 898 | q.text('}') |
| 899 | |
| 900 | oxm.subtypes[207112] = bsn_ingress_port_group_id_masked |
| 901 | |
Rich Lane | 5116831 | 2015-06-25 13:13:54 -0700 | [diff] [blame] | 902 | class bsn_inner_eth_dst(oxm): |
| 903 | type_len = 207878 |
| 904 | |
| 905 | def __init__(self, value=None): |
| 906 | if value != None: |
| 907 | self.value = value |
| 908 | else: |
| 909 | self.value = [0,0,0,0,0,0] |
| 910 | return |
| 911 | |
| 912 | def pack(self): |
| 913 | packed = [] |
| 914 | packed.append(struct.pack("!L", self.type_len)) |
| 915 | packed.append(struct.pack("!6B", *self.value)) |
| 916 | return ''.join(packed) |
| 917 | |
| 918 | @staticmethod |
| 919 | def unpack(reader): |
| 920 | obj = bsn_inner_eth_dst() |
| 921 | _type_len = reader.read("!L")[0] |
| 922 | assert(_type_len == 207878) |
| 923 | obj.value = list(reader.read('!6B')) |
| 924 | return obj |
| 925 | |
| 926 | def __eq__(self, other): |
| 927 | if type(self) != type(other): return False |
| 928 | if self.value != other.value: return False |
| 929 | return True |
| 930 | |
| 931 | def pretty_print(self, q): |
| 932 | q.text("bsn_inner_eth_dst {") |
| 933 | with q.group(): |
| 934 | with q.indent(2): |
| 935 | q.breakable() |
| 936 | q.text("value = "); |
| 937 | q.text(util.pretty_mac(self.value)) |
| 938 | q.breakable() |
| 939 | q.text('}') |
| 940 | |
| 941 | oxm.subtypes[207878] = bsn_inner_eth_dst |
| 942 | |
| 943 | class bsn_inner_eth_dst_masked(oxm): |
| 944 | type_len = 208140 |
| 945 | |
| 946 | def __init__(self, value=None, value_mask=None): |
| 947 | if value != None: |
| 948 | self.value = value |
| 949 | else: |
| 950 | self.value = [0,0,0,0,0,0] |
| 951 | if value_mask != None: |
| 952 | self.value_mask = value_mask |
| 953 | else: |
| 954 | self.value_mask = [0,0,0,0,0,0] |
| 955 | return |
| 956 | |
| 957 | def pack(self): |
| 958 | packed = [] |
| 959 | packed.append(struct.pack("!L", self.type_len)) |
| 960 | packed.append(struct.pack("!6B", *self.value)) |
| 961 | packed.append(struct.pack("!6B", *self.value_mask)) |
| 962 | return ''.join(packed) |
| 963 | |
| 964 | @staticmethod |
| 965 | def unpack(reader): |
| 966 | obj = bsn_inner_eth_dst_masked() |
| 967 | _type_len = reader.read("!L")[0] |
| 968 | assert(_type_len == 208140) |
| 969 | obj.value = list(reader.read('!6B')) |
| 970 | obj.value_mask = list(reader.read('!6B')) |
| 971 | return obj |
| 972 | |
| 973 | def __eq__(self, other): |
| 974 | if type(self) != type(other): return False |
| 975 | if self.value != other.value: return False |
| 976 | if self.value_mask != other.value_mask: return False |
| 977 | return True |
| 978 | |
| 979 | def pretty_print(self, q): |
| 980 | q.text("bsn_inner_eth_dst_masked {") |
| 981 | with q.group(): |
| 982 | with q.indent(2): |
| 983 | q.breakable() |
| 984 | q.text("value = "); |
| 985 | q.text(util.pretty_mac(self.value)) |
| 986 | q.text(","); q.breakable() |
| 987 | q.text("value_mask = "); |
| 988 | q.text(util.pretty_mac(self.value_mask)) |
| 989 | q.breakable() |
| 990 | q.text('}') |
| 991 | |
| 992 | oxm.subtypes[208140] = bsn_inner_eth_dst_masked |
| 993 | |
| 994 | class bsn_inner_eth_src(oxm): |
| 995 | type_len = 208390 |
| 996 | |
| 997 | def __init__(self, value=None): |
| 998 | if value != None: |
| 999 | self.value = value |
| 1000 | else: |
| 1001 | self.value = [0,0,0,0,0,0] |
| 1002 | return |
| 1003 | |
| 1004 | def pack(self): |
| 1005 | packed = [] |
| 1006 | packed.append(struct.pack("!L", self.type_len)) |
| 1007 | packed.append(struct.pack("!6B", *self.value)) |
| 1008 | return ''.join(packed) |
| 1009 | |
| 1010 | @staticmethod |
| 1011 | def unpack(reader): |
| 1012 | obj = bsn_inner_eth_src() |
| 1013 | _type_len = reader.read("!L")[0] |
| 1014 | assert(_type_len == 208390) |
| 1015 | obj.value = list(reader.read('!6B')) |
| 1016 | return obj |
| 1017 | |
| 1018 | def __eq__(self, other): |
| 1019 | if type(self) != type(other): return False |
| 1020 | if self.value != other.value: return False |
| 1021 | return True |
| 1022 | |
| 1023 | def pretty_print(self, q): |
| 1024 | q.text("bsn_inner_eth_src {") |
| 1025 | with q.group(): |
| 1026 | with q.indent(2): |
| 1027 | q.breakable() |
| 1028 | q.text("value = "); |
| 1029 | q.text(util.pretty_mac(self.value)) |
| 1030 | q.breakable() |
| 1031 | q.text('}') |
| 1032 | |
| 1033 | oxm.subtypes[208390] = bsn_inner_eth_src |
| 1034 | |
| 1035 | class bsn_inner_eth_src_masked(oxm): |
| 1036 | type_len = 208652 |
| 1037 | |
| 1038 | def __init__(self, value=None, value_mask=None): |
| 1039 | if value != None: |
| 1040 | self.value = value |
| 1041 | else: |
| 1042 | self.value = [0,0,0,0,0,0] |
| 1043 | if value_mask != None: |
| 1044 | self.value_mask = value_mask |
| 1045 | else: |
| 1046 | self.value_mask = [0,0,0,0,0,0] |
| 1047 | return |
| 1048 | |
| 1049 | def pack(self): |
| 1050 | packed = [] |
| 1051 | packed.append(struct.pack("!L", self.type_len)) |
| 1052 | packed.append(struct.pack("!6B", *self.value)) |
| 1053 | packed.append(struct.pack("!6B", *self.value_mask)) |
| 1054 | return ''.join(packed) |
| 1055 | |
| 1056 | @staticmethod |
| 1057 | def unpack(reader): |
| 1058 | obj = bsn_inner_eth_src_masked() |
| 1059 | _type_len = reader.read("!L")[0] |
| 1060 | assert(_type_len == 208652) |
| 1061 | obj.value = list(reader.read('!6B')) |
| 1062 | obj.value_mask = list(reader.read('!6B')) |
| 1063 | return obj |
| 1064 | |
| 1065 | def __eq__(self, other): |
| 1066 | if type(self) != type(other): return False |
| 1067 | if self.value != other.value: return False |
| 1068 | if self.value_mask != other.value_mask: return False |
| 1069 | return True |
| 1070 | |
| 1071 | def pretty_print(self, q): |
| 1072 | q.text("bsn_inner_eth_src_masked {") |
| 1073 | with q.group(): |
| 1074 | with q.indent(2): |
| 1075 | q.breakable() |
| 1076 | q.text("value = "); |
| 1077 | q.text(util.pretty_mac(self.value)) |
| 1078 | q.text(","); q.breakable() |
| 1079 | q.text("value_mask = "); |
| 1080 | q.text(util.pretty_mac(self.value_mask)) |
| 1081 | q.breakable() |
| 1082 | q.text('}') |
| 1083 | |
| 1084 | oxm.subtypes[208652] = bsn_inner_eth_src_masked |
| 1085 | |
Rich Lane | 7cccc0f | 2015-07-13 17:00:46 -0700 | [diff] [blame] | 1086 | class bsn_inner_vlan_vid(oxm): |
| 1087 | type_len = 208898 |
| 1088 | |
| 1089 | def __init__(self, value=None): |
| 1090 | if value != None: |
| 1091 | self.value = value |
| 1092 | else: |
| 1093 | self.value = 0 |
| 1094 | return |
| 1095 | |
| 1096 | def pack(self): |
| 1097 | packed = [] |
| 1098 | packed.append(struct.pack("!L", self.type_len)) |
| 1099 | packed.append(struct.pack("!H", self.value)) |
| 1100 | return ''.join(packed) |
| 1101 | |
| 1102 | @staticmethod |
| 1103 | def unpack(reader): |
| 1104 | obj = bsn_inner_vlan_vid() |
| 1105 | _type_len = reader.read("!L")[0] |
| 1106 | assert(_type_len == 208898) |
| 1107 | obj.value = reader.read("!H")[0] |
| 1108 | return obj |
| 1109 | |
| 1110 | def __eq__(self, other): |
| 1111 | if type(self) != type(other): return False |
| 1112 | if self.value != other.value: return False |
| 1113 | return True |
| 1114 | |
| 1115 | def pretty_print(self, q): |
| 1116 | q.text("bsn_inner_vlan_vid {") |
| 1117 | with q.group(): |
| 1118 | with q.indent(2): |
| 1119 | q.breakable() |
| 1120 | q.text("value = "); |
| 1121 | q.text("%#x" % self.value) |
| 1122 | q.breakable() |
| 1123 | q.text('}') |
| 1124 | |
| 1125 | oxm.subtypes[208898] = bsn_inner_vlan_vid |
| 1126 | |
| 1127 | class bsn_inner_vlan_vid_masked(oxm): |
| 1128 | type_len = 209156 |
| 1129 | |
| 1130 | def __init__(self, value=None, value_mask=None): |
| 1131 | if value != None: |
| 1132 | self.value = value |
| 1133 | else: |
| 1134 | self.value = 0 |
| 1135 | if value_mask != None: |
| 1136 | self.value_mask = value_mask |
| 1137 | else: |
| 1138 | self.value_mask = 0 |
| 1139 | return |
| 1140 | |
| 1141 | def pack(self): |
| 1142 | packed = [] |
| 1143 | packed.append(struct.pack("!L", self.type_len)) |
| 1144 | packed.append(struct.pack("!H", self.value)) |
| 1145 | packed.append(struct.pack("!H", self.value_mask)) |
| 1146 | return ''.join(packed) |
| 1147 | |
| 1148 | @staticmethod |
| 1149 | def unpack(reader): |
| 1150 | obj = bsn_inner_vlan_vid_masked() |
| 1151 | _type_len = reader.read("!L")[0] |
| 1152 | assert(_type_len == 209156) |
| 1153 | obj.value = reader.read("!H")[0] |
| 1154 | obj.value_mask = reader.read("!H")[0] |
| 1155 | return obj |
| 1156 | |
| 1157 | def __eq__(self, other): |
| 1158 | if type(self) != type(other): return False |
| 1159 | if self.value != other.value: return False |
| 1160 | if self.value_mask != other.value_mask: return False |
| 1161 | return True |
| 1162 | |
| 1163 | def pretty_print(self, q): |
| 1164 | q.text("bsn_inner_vlan_vid_masked {") |
| 1165 | with q.group(): |
| 1166 | with q.indent(2): |
| 1167 | q.breakable() |
| 1168 | q.text("value = "); |
| 1169 | q.text("%#x" % self.value) |
| 1170 | q.text(","); q.breakable() |
| 1171 | q.text("value_mask = "); |
| 1172 | q.text("%#x" % self.value_mask) |
| 1173 | q.breakable() |
| 1174 | q.text('}') |
| 1175 | |
| 1176 | oxm.subtypes[209156] = bsn_inner_vlan_vid_masked |
| 1177 | |
Rich Lane | ccd32ed | 2014-11-10 17:48:24 -0800 | [diff] [blame] | 1178 | class bsn_l3_interface_class_id(oxm): |
| 1179 | type_len = 198660 |
| 1180 | |
| 1181 | def __init__(self, value=None): |
| 1182 | if value != None: |
| 1183 | self.value = value |
| 1184 | else: |
| 1185 | self.value = 0 |
| 1186 | return |
| 1187 | |
| 1188 | def pack(self): |
| 1189 | packed = [] |
| 1190 | packed.append(struct.pack("!L", self.type_len)) |
| 1191 | packed.append(struct.pack("!L", self.value)) |
| 1192 | return ''.join(packed) |
| 1193 | |
| 1194 | @staticmethod |
| 1195 | def unpack(reader): |
| 1196 | obj = bsn_l3_interface_class_id() |
| 1197 | _type_len = reader.read("!L")[0] |
| 1198 | assert(_type_len == 198660) |
| 1199 | obj.value = reader.read("!L")[0] |
| 1200 | return obj |
| 1201 | |
| 1202 | def __eq__(self, other): |
| 1203 | if type(self) != type(other): return False |
| 1204 | if self.value != other.value: return False |
| 1205 | return True |
| 1206 | |
| 1207 | def pretty_print(self, q): |
| 1208 | q.text("bsn_l3_interface_class_id {") |
| 1209 | with q.group(): |
| 1210 | with q.indent(2): |
| 1211 | q.breakable() |
| 1212 | q.text("value = "); |
| 1213 | q.text("%#x" % self.value) |
| 1214 | q.breakable() |
| 1215 | q.text('}') |
| 1216 | |
| 1217 | oxm.subtypes[198660] = bsn_l3_interface_class_id |
| 1218 | |
| 1219 | class bsn_l3_interface_class_id_masked(oxm): |
| 1220 | type_len = 198920 |
| 1221 | |
| 1222 | def __init__(self, value=None, value_mask=None): |
| 1223 | if value != None: |
| 1224 | self.value = value |
| 1225 | else: |
| 1226 | self.value = 0 |
| 1227 | if value_mask != None: |
| 1228 | self.value_mask = value_mask |
| 1229 | else: |
| 1230 | self.value_mask = 0 |
| 1231 | return |
| 1232 | |
| 1233 | def pack(self): |
| 1234 | packed = [] |
| 1235 | packed.append(struct.pack("!L", self.type_len)) |
| 1236 | packed.append(struct.pack("!L", self.value)) |
| 1237 | packed.append(struct.pack("!L", self.value_mask)) |
| 1238 | return ''.join(packed) |
| 1239 | |
| 1240 | @staticmethod |
| 1241 | def unpack(reader): |
| 1242 | obj = bsn_l3_interface_class_id_masked() |
| 1243 | _type_len = reader.read("!L")[0] |
| 1244 | assert(_type_len == 198920) |
| 1245 | obj.value = reader.read("!L")[0] |
| 1246 | obj.value_mask = reader.read("!L")[0] |
| 1247 | return obj |
| 1248 | |
| 1249 | def __eq__(self, other): |
| 1250 | if type(self) != type(other): return False |
| 1251 | if self.value != other.value: return False |
| 1252 | if self.value_mask != other.value_mask: return False |
| 1253 | return True |
| 1254 | |
| 1255 | def pretty_print(self, q): |
| 1256 | q.text("bsn_l3_interface_class_id_masked {") |
| 1257 | with q.group(): |
| 1258 | with q.indent(2): |
| 1259 | q.breakable() |
| 1260 | q.text("value = "); |
| 1261 | q.text("%#x" % self.value) |
| 1262 | q.text(","); q.breakable() |
| 1263 | q.text("value_mask = "); |
| 1264 | q.text("%#x" % self.value_mask) |
| 1265 | q.breakable() |
| 1266 | q.text('}') |
| 1267 | |
| 1268 | oxm.subtypes[198920] = bsn_l3_interface_class_id_masked |
| 1269 | |
| 1270 | class bsn_l3_src_class_id(oxm): |
| 1271 | type_len = 199172 |
| 1272 | |
| 1273 | def __init__(self, value=None): |
| 1274 | if value != None: |
| 1275 | self.value = value |
| 1276 | else: |
| 1277 | self.value = 0 |
| 1278 | return |
| 1279 | |
| 1280 | def pack(self): |
| 1281 | packed = [] |
| 1282 | packed.append(struct.pack("!L", self.type_len)) |
| 1283 | packed.append(struct.pack("!L", self.value)) |
| 1284 | return ''.join(packed) |
| 1285 | |
| 1286 | @staticmethod |
| 1287 | def unpack(reader): |
| 1288 | obj = bsn_l3_src_class_id() |
| 1289 | _type_len = reader.read("!L")[0] |
| 1290 | assert(_type_len == 199172) |
| 1291 | obj.value = reader.read("!L")[0] |
| 1292 | return obj |
| 1293 | |
| 1294 | def __eq__(self, other): |
| 1295 | if type(self) != type(other): return False |
| 1296 | if self.value != other.value: return False |
| 1297 | return True |
| 1298 | |
| 1299 | def pretty_print(self, q): |
| 1300 | q.text("bsn_l3_src_class_id {") |
| 1301 | with q.group(): |
| 1302 | with q.indent(2): |
| 1303 | q.breakable() |
| 1304 | q.text("value = "); |
| 1305 | q.text("%#x" % self.value) |
| 1306 | q.breakable() |
| 1307 | q.text('}') |
| 1308 | |
| 1309 | oxm.subtypes[199172] = bsn_l3_src_class_id |
| 1310 | |
| 1311 | class bsn_l3_src_class_id_masked(oxm): |
| 1312 | type_len = 199432 |
| 1313 | |
| 1314 | def __init__(self, value=None, value_mask=None): |
| 1315 | if value != None: |
| 1316 | self.value = value |
| 1317 | else: |
| 1318 | self.value = 0 |
| 1319 | if value_mask != None: |
| 1320 | self.value_mask = value_mask |
| 1321 | else: |
| 1322 | self.value_mask = 0 |
| 1323 | return |
| 1324 | |
| 1325 | def pack(self): |
| 1326 | packed = [] |
| 1327 | packed.append(struct.pack("!L", self.type_len)) |
| 1328 | packed.append(struct.pack("!L", self.value)) |
| 1329 | packed.append(struct.pack("!L", self.value_mask)) |
| 1330 | return ''.join(packed) |
| 1331 | |
| 1332 | @staticmethod |
| 1333 | def unpack(reader): |
| 1334 | obj = bsn_l3_src_class_id_masked() |
| 1335 | _type_len = reader.read("!L")[0] |
| 1336 | assert(_type_len == 199432) |
| 1337 | obj.value = reader.read("!L")[0] |
| 1338 | obj.value_mask = reader.read("!L")[0] |
| 1339 | return obj |
| 1340 | |
| 1341 | def __eq__(self, other): |
| 1342 | if type(self) != type(other): return False |
| 1343 | if self.value != other.value: return False |
| 1344 | if self.value_mask != other.value_mask: return False |
| 1345 | return True |
| 1346 | |
| 1347 | def pretty_print(self, q): |
| 1348 | q.text("bsn_l3_src_class_id_masked {") |
| 1349 | with q.group(): |
| 1350 | with q.indent(2): |
| 1351 | q.breakable() |
| 1352 | q.text("value = "); |
| 1353 | q.text("%#x" % self.value) |
| 1354 | q.text(","); q.breakable() |
| 1355 | q.text("value_mask = "); |
| 1356 | q.text("%#x" % self.value_mask) |
| 1357 | q.breakable() |
| 1358 | q.text('}') |
| 1359 | |
| 1360 | oxm.subtypes[199432] = bsn_l3_src_class_id_masked |
| 1361 | |
| 1362 | class bsn_lag_id(oxm): |
| 1363 | type_len = 197124 |
| 1364 | |
| 1365 | def __init__(self, value=None): |
| 1366 | if value != None: |
| 1367 | self.value = value |
| 1368 | else: |
| 1369 | self.value = 0 |
| 1370 | return |
| 1371 | |
| 1372 | def pack(self): |
| 1373 | packed = [] |
| 1374 | packed.append(struct.pack("!L", self.type_len)) |
| 1375 | packed.append(struct.pack("!L", self.value)) |
| 1376 | return ''.join(packed) |
| 1377 | |
| 1378 | @staticmethod |
| 1379 | def unpack(reader): |
| 1380 | obj = bsn_lag_id() |
| 1381 | _type_len = reader.read("!L")[0] |
| 1382 | assert(_type_len == 197124) |
| 1383 | obj.value = reader.read("!L")[0] |
| 1384 | return obj |
| 1385 | |
| 1386 | def __eq__(self, other): |
| 1387 | if type(self) != type(other): return False |
| 1388 | if self.value != other.value: return False |
| 1389 | return True |
| 1390 | |
| 1391 | def pretty_print(self, q): |
| 1392 | q.text("bsn_lag_id {") |
| 1393 | with q.group(): |
| 1394 | with q.indent(2): |
| 1395 | q.breakable() |
| 1396 | q.text("value = "); |
| 1397 | q.text("%#x" % self.value) |
| 1398 | q.breakable() |
| 1399 | q.text('}') |
| 1400 | |
| 1401 | oxm.subtypes[197124] = bsn_lag_id |
| 1402 | |
| 1403 | class bsn_lag_id_masked(oxm): |
| 1404 | type_len = 197384 |
| 1405 | |
| 1406 | def __init__(self, value=None, value_mask=None): |
| 1407 | if value != None: |
| 1408 | self.value = value |
| 1409 | else: |
| 1410 | self.value = 0 |
| 1411 | if value_mask != None: |
| 1412 | self.value_mask = value_mask |
| 1413 | else: |
| 1414 | self.value_mask = 0 |
| 1415 | return |
| 1416 | |
| 1417 | def pack(self): |
| 1418 | packed = [] |
| 1419 | packed.append(struct.pack("!L", self.type_len)) |
| 1420 | packed.append(struct.pack("!L", self.value)) |
| 1421 | packed.append(struct.pack("!L", self.value_mask)) |
| 1422 | return ''.join(packed) |
| 1423 | |
| 1424 | @staticmethod |
| 1425 | def unpack(reader): |
| 1426 | obj = bsn_lag_id_masked() |
| 1427 | _type_len = reader.read("!L")[0] |
| 1428 | assert(_type_len == 197384) |
| 1429 | obj.value = reader.read("!L")[0] |
| 1430 | obj.value_mask = reader.read("!L")[0] |
| 1431 | return obj |
| 1432 | |
| 1433 | def __eq__(self, other): |
| 1434 | if type(self) != type(other): return False |
| 1435 | if self.value != other.value: return False |
| 1436 | if self.value_mask != other.value_mask: return False |
| 1437 | return True |
| 1438 | |
| 1439 | def pretty_print(self, q): |
| 1440 | q.text("bsn_lag_id_masked {") |
| 1441 | with q.group(): |
| 1442 | with q.indent(2): |
| 1443 | q.breakable() |
| 1444 | q.text("value = "); |
| 1445 | q.text("%#x" % self.value) |
| 1446 | q.text(","); q.breakable() |
| 1447 | q.text("value_mask = "); |
| 1448 | q.text("%#x" % self.value_mask) |
| 1449 | q.breakable() |
| 1450 | q.text('}') |
| 1451 | |
| 1452 | oxm.subtypes[197384] = bsn_lag_id_masked |
| 1453 | |
| 1454 | class bsn_tcp_flags(oxm): |
| 1455 | type_len = 204802 |
| 1456 | |
| 1457 | def __init__(self, value=None): |
| 1458 | if value != None: |
| 1459 | self.value = value |
| 1460 | else: |
| 1461 | self.value = 0 |
| 1462 | return |
| 1463 | |
| 1464 | def pack(self): |
| 1465 | packed = [] |
| 1466 | packed.append(struct.pack("!L", self.type_len)) |
| 1467 | packed.append(struct.pack("!H", self.value)) |
| 1468 | return ''.join(packed) |
| 1469 | |
| 1470 | @staticmethod |
| 1471 | def unpack(reader): |
| 1472 | obj = bsn_tcp_flags() |
| 1473 | _type_len = reader.read("!L")[0] |
| 1474 | assert(_type_len == 204802) |
| 1475 | obj.value = reader.read("!H")[0] |
| 1476 | return obj |
| 1477 | |
| 1478 | def __eq__(self, other): |
| 1479 | if type(self) != type(other): return False |
| 1480 | if self.value != other.value: return False |
| 1481 | return True |
| 1482 | |
| 1483 | def pretty_print(self, q): |
| 1484 | q.text("bsn_tcp_flags {") |
| 1485 | with q.group(): |
| 1486 | with q.indent(2): |
| 1487 | q.breakable() |
| 1488 | q.text("value = "); |
| 1489 | q.text("%#x" % self.value) |
| 1490 | q.breakable() |
| 1491 | q.text('}') |
| 1492 | |
| 1493 | oxm.subtypes[204802] = bsn_tcp_flags |
| 1494 | |
| 1495 | class bsn_tcp_flags_masked(oxm): |
| 1496 | type_len = 205060 |
| 1497 | |
| 1498 | def __init__(self, value=None, value_mask=None): |
| 1499 | if value != None: |
| 1500 | self.value = value |
| 1501 | else: |
| 1502 | self.value = 0 |
| 1503 | if value_mask != None: |
| 1504 | self.value_mask = value_mask |
| 1505 | else: |
| 1506 | self.value_mask = 0 |
| 1507 | return |
| 1508 | |
| 1509 | def pack(self): |
| 1510 | packed = [] |
| 1511 | packed.append(struct.pack("!L", self.type_len)) |
| 1512 | packed.append(struct.pack("!H", self.value)) |
| 1513 | packed.append(struct.pack("!H", self.value_mask)) |
| 1514 | return ''.join(packed) |
| 1515 | |
| 1516 | @staticmethod |
| 1517 | def unpack(reader): |
| 1518 | obj = bsn_tcp_flags_masked() |
| 1519 | _type_len = reader.read("!L")[0] |
| 1520 | assert(_type_len == 205060) |
| 1521 | obj.value = reader.read("!H")[0] |
| 1522 | obj.value_mask = reader.read("!H")[0] |
| 1523 | return obj |
| 1524 | |
| 1525 | def __eq__(self, other): |
| 1526 | if type(self) != type(other): return False |
| 1527 | if self.value != other.value: return False |
| 1528 | if self.value_mask != other.value_mask: return False |
| 1529 | return True |
| 1530 | |
| 1531 | def pretty_print(self, q): |
| 1532 | q.text("bsn_tcp_flags_masked {") |
| 1533 | with q.group(): |
| 1534 | with q.indent(2): |
| 1535 | q.breakable() |
| 1536 | q.text("value = "); |
| 1537 | q.text("%#x" % self.value) |
| 1538 | q.text(","); q.breakable() |
| 1539 | q.text("value_mask = "); |
| 1540 | q.text("%#x" % self.value_mask) |
| 1541 | q.breakable() |
| 1542 | q.text('}') |
| 1543 | |
| 1544 | oxm.subtypes[205060] = bsn_tcp_flags_masked |
| 1545 | |
| 1546 | class bsn_udf0(oxm): |
| 1547 | type_len = 200708 |
| 1548 | |
| 1549 | def __init__(self, value=None): |
| 1550 | if value != None: |
| 1551 | self.value = value |
| 1552 | else: |
| 1553 | self.value = 0 |
| 1554 | return |
| 1555 | |
| 1556 | def pack(self): |
| 1557 | packed = [] |
| 1558 | packed.append(struct.pack("!L", self.type_len)) |
| 1559 | packed.append(struct.pack("!L", self.value)) |
| 1560 | return ''.join(packed) |
| 1561 | |
| 1562 | @staticmethod |
| 1563 | def unpack(reader): |
| 1564 | obj = bsn_udf0() |
| 1565 | _type_len = reader.read("!L")[0] |
| 1566 | assert(_type_len == 200708) |
| 1567 | obj.value = reader.read("!L")[0] |
| 1568 | return obj |
| 1569 | |
| 1570 | def __eq__(self, other): |
| 1571 | if type(self) != type(other): return False |
| 1572 | if self.value != other.value: return False |
| 1573 | return True |
| 1574 | |
| 1575 | def pretty_print(self, q): |
| 1576 | q.text("bsn_udf0 {") |
| 1577 | with q.group(): |
| 1578 | with q.indent(2): |
| 1579 | q.breakable() |
| 1580 | q.text("value = "); |
| 1581 | q.text("%#x" % self.value) |
| 1582 | q.breakable() |
| 1583 | q.text('}') |
| 1584 | |
| 1585 | oxm.subtypes[200708] = bsn_udf0 |
| 1586 | |
| 1587 | class bsn_udf0_masked(oxm): |
| 1588 | type_len = 200968 |
| 1589 | |
| 1590 | def __init__(self, value=None, value_mask=None): |
| 1591 | if value != None: |
| 1592 | self.value = value |
| 1593 | else: |
| 1594 | self.value = 0 |
| 1595 | if value_mask != None: |
| 1596 | self.value_mask = value_mask |
| 1597 | else: |
| 1598 | self.value_mask = 0 |
| 1599 | return |
| 1600 | |
| 1601 | def pack(self): |
| 1602 | packed = [] |
| 1603 | packed.append(struct.pack("!L", self.type_len)) |
| 1604 | packed.append(struct.pack("!L", self.value)) |
| 1605 | packed.append(struct.pack("!L", self.value_mask)) |
| 1606 | return ''.join(packed) |
| 1607 | |
| 1608 | @staticmethod |
| 1609 | def unpack(reader): |
| 1610 | obj = bsn_udf0_masked() |
| 1611 | _type_len = reader.read("!L")[0] |
| 1612 | assert(_type_len == 200968) |
| 1613 | obj.value = reader.read("!L")[0] |
| 1614 | obj.value_mask = reader.read("!L")[0] |
| 1615 | return obj |
| 1616 | |
| 1617 | def __eq__(self, other): |
| 1618 | if type(self) != type(other): return False |
| 1619 | if self.value != other.value: return False |
| 1620 | if self.value_mask != other.value_mask: return False |
| 1621 | return True |
| 1622 | |
| 1623 | def pretty_print(self, q): |
| 1624 | q.text("bsn_udf0_masked {") |
| 1625 | with q.group(): |
| 1626 | with q.indent(2): |
| 1627 | q.breakable() |
| 1628 | q.text("value = "); |
| 1629 | q.text("%#x" % self.value) |
| 1630 | q.text(","); q.breakable() |
| 1631 | q.text("value_mask = "); |
| 1632 | q.text("%#x" % self.value_mask) |
| 1633 | q.breakable() |
| 1634 | q.text('}') |
| 1635 | |
| 1636 | oxm.subtypes[200968] = bsn_udf0_masked |
| 1637 | |
| 1638 | class bsn_udf1(oxm): |
| 1639 | type_len = 201220 |
| 1640 | |
| 1641 | def __init__(self, value=None): |
| 1642 | if value != None: |
| 1643 | self.value = value |
| 1644 | else: |
| 1645 | self.value = 0 |
| 1646 | return |
| 1647 | |
| 1648 | def pack(self): |
| 1649 | packed = [] |
| 1650 | packed.append(struct.pack("!L", self.type_len)) |
| 1651 | packed.append(struct.pack("!L", self.value)) |
| 1652 | return ''.join(packed) |
| 1653 | |
| 1654 | @staticmethod |
| 1655 | def unpack(reader): |
| 1656 | obj = bsn_udf1() |
| 1657 | _type_len = reader.read("!L")[0] |
| 1658 | assert(_type_len == 201220) |
| 1659 | obj.value = reader.read("!L")[0] |
| 1660 | return obj |
| 1661 | |
| 1662 | def __eq__(self, other): |
| 1663 | if type(self) != type(other): return False |
| 1664 | if self.value != other.value: return False |
| 1665 | return True |
| 1666 | |
| 1667 | def pretty_print(self, q): |
| 1668 | q.text("bsn_udf1 {") |
| 1669 | with q.group(): |
| 1670 | with q.indent(2): |
| 1671 | q.breakable() |
| 1672 | q.text("value = "); |
| 1673 | q.text("%#x" % self.value) |
| 1674 | q.breakable() |
| 1675 | q.text('}') |
| 1676 | |
| 1677 | oxm.subtypes[201220] = bsn_udf1 |
| 1678 | |
| 1679 | class bsn_udf1_masked(oxm): |
| 1680 | type_len = 201480 |
| 1681 | |
| 1682 | def __init__(self, value=None, value_mask=None): |
| 1683 | if value != None: |
| 1684 | self.value = value |
| 1685 | else: |
| 1686 | self.value = 0 |
| 1687 | if value_mask != None: |
| 1688 | self.value_mask = value_mask |
| 1689 | else: |
| 1690 | self.value_mask = 0 |
| 1691 | return |
| 1692 | |
| 1693 | def pack(self): |
| 1694 | packed = [] |
| 1695 | packed.append(struct.pack("!L", self.type_len)) |
| 1696 | packed.append(struct.pack("!L", self.value)) |
| 1697 | packed.append(struct.pack("!L", self.value_mask)) |
| 1698 | return ''.join(packed) |
| 1699 | |
| 1700 | @staticmethod |
| 1701 | def unpack(reader): |
| 1702 | obj = bsn_udf1_masked() |
| 1703 | _type_len = reader.read("!L")[0] |
| 1704 | assert(_type_len == 201480) |
| 1705 | obj.value = reader.read("!L")[0] |
| 1706 | obj.value_mask = reader.read("!L")[0] |
| 1707 | return obj |
| 1708 | |
| 1709 | def __eq__(self, other): |
| 1710 | if type(self) != type(other): return False |
| 1711 | if self.value != other.value: return False |
| 1712 | if self.value_mask != other.value_mask: return False |
| 1713 | return True |
| 1714 | |
| 1715 | def pretty_print(self, q): |
| 1716 | q.text("bsn_udf1_masked {") |
| 1717 | with q.group(): |
| 1718 | with q.indent(2): |
| 1719 | q.breakable() |
| 1720 | q.text("value = "); |
| 1721 | q.text("%#x" % self.value) |
| 1722 | q.text(","); q.breakable() |
| 1723 | q.text("value_mask = "); |
| 1724 | q.text("%#x" % self.value_mask) |
| 1725 | q.breakable() |
| 1726 | q.text('}') |
| 1727 | |
| 1728 | oxm.subtypes[201480] = bsn_udf1_masked |
| 1729 | |
| 1730 | class bsn_udf2(oxm): |
| 1731 | type_len = 201732 |
| 1732 | |
| 1733 | def __init__(self, value=None): |
| 1734 | if value != None: |
| 1735 | self.value = value |
| 1736 | else: |
| 1737 | self.value = 0 |
| 1738 | return |
| 1739 | |
| 1740 | def pack(self): |
| 1741 | packed = [] |
| 1742 | packed.append(struct.pack("!L", self.type_len)) |
| 1743 | packed.append(struct.pack("!L", self.value)) |
| 1744 | return ''.join(packed) |
| 1745 | |
| 1746 | @staticmethod |
| 1747 | def unpack(reader): |
| 1748 | obj = bsn_udf2() |
| 1749 | _type_len = reader.read("!L")[0] |
| 1750 | assert(_type_len == 201732) |
| 1751 | obj.value = reader.read("!L")[0] |
| 1752 | return obj |
| 1753 | |
| 1754 | def __eq__(self, other): |
| 1755 | if type(self) != type(other): return False |
| 1756 | if self.value != other.value: return False |
| 1757 | return True |
| 1758 | |
| 1759 | def pretty_print(self, q): |
| 1760 | q.text("bsn_udf2 {") |
| 1761 | with q.group(): |
| 1762 | with q.indent(2): |
| 1763 | q.breakable() |
| 1764 | q.text("value = "); |
| 1765 | q.text("%#x" % self.value) |
| 1766 | q.breakable() |
| 1767 | q.text('}') |
| 1768 | |
| 1769 | oxm.subtypes[201732] = bsn_udf2 |
| 1770 | |
| 1771 | class bsn_udf2_masked(oxm): |
| 1772 | type_len = 201992 |
| 1773 | |
| 1774 | def __init__(self, value=None, value_mask=None): |
| 1775 | if value != None: |
| 1776 | self.value = value |
| 1777 | else: |
| 1778 | self.value = 0 |
| 1779 | if value_mask != None: |
| 1780 | self.value_mask = value_mask |
| 1781 | else: |
| 1782 | self.value_mask = 0 |
| 1783 | return |
| 1784 | |
| 1785 | def pack(self): |
| 1786 | packed = [] |
| 1787 | packed.append(struct.pack("!L", self.type_len)) |
| 1788 | packed.append(struct.pack("!L", self.value)) |
| 1789 | packed.append(struct.pack("!L", self.value_mask)) |
| 1790 | return ''.join(packed) |
| 1791 | |
| 1792 | @staticmethod |
| 1793 | def unpack(reader): |
| 1794 | obj = bsn_udf2_masked() |
| 1795 | _type_len = reader.read("!L")[0] |
| 1796 | assert(_type_len == 201992) |
| 1797 | obj.value = reader.read("!L")[0] |
| 1798 | obj.value_mask = reader.read("!L")[0] |
| 1799 | return obj |
| 1800 | |
| 1801 | def __eq__(self, other): |
| 1802 | if type(self) != type(other): return False |
| 1803 | if self.value != other.value: return False |
| 1804 | if self.value_mask != other.value_mask: return False |
| 1805 | return True |
| 1806 | |
| 1807 | def pretty_print(self, q): |
| 1808 | q.text("bsn_udf2_masked {") |
| 1809 | with q.group(): |
| 1810 | with q.indent(2): |
| 1811 | q.breakable() |
| 1812 | q.text("value = "); |
| 1813 | q.text("%#x" % self.value) |
| 1814 | q.text(","); q.breakable() |
| 1815 | q.text("value_mask = "); |
| 1816 | q.text("%#x" % self.value_mask) |
| 1817 | q.breakable() |
| 1818 | q.text('}') |
| 1819 | |
| 1820 | oxm.subtypes[201992] = bsn_udf2_masked |
| 1821 | |
| 1822 | class bsn_udf3(oxm): |
| 1823 | type_len = 202244 |
| 1824 | |
| 1825 | def __init__(self, value=None): |
| 1826 | if value != None: |
| 1827 | self.value = value |
| 1828 | else: |
| 1829 | self.value = 0 |
| 1830 | return |
| 1831 | |
| 1832 | def pack(self): |
| 1833 | packed = [] |
| 1834 | packed.append(struct.pack("!L", self.type_len)) |
| 1835 | packed.append(struct.pack("!L", self.value)) |
| 1836 | return ''.join(packed) |
| 1837 | |
| 1838 | @staticmethod |
| 1839 | def unpack(reader): |
| 1840 | obj = bsn_udf3() |
| 1841 | _type_len = reader.read("!L")[0] |
| 1842 | assert(_type_len == 202244) |
| 1843 | obj.value = reader.read("!L")[0] |
| 1844 | return obj |
| 1845 | |
| 1846 | def __eq__(self, other): |
| 1847 | if type(self) != type(other): return False |
| 1848 | if self.value != other.value: return False |
| 1849 | return True |
| 1850 | |
| 1851 | def pretty_print(self, q): |
| 1852 | q.text("bsn_udf3 {") |
| 1853 | with q.group(): |
| 1854 | with q.indent(2): |
| 1855 | q.breakable() |
| 1856 | q.text("value = "); |
| 1857 | q.text("%#x" % self.value) |
| 1858 | q.breakable() |
| 1859 | q.text('}') |
| 1860 | |
| 1861 | oxm.subtypes[202244] = bsn_udf3 |
| 1862 | |
| 1863 | class bsn_udf3_masked(oxm): |
| 1864 | type_len = 202504 |
| 1865 | |
| 1866 | def __init__(self, value=None, value_mask=None): |
| 1867 | if value != None: |
| 1868 | self.value = value |
| 1869 | else: |
| 1870 | self.value = 0 |
| 1871 | if value_mask != None: |
| 1872 | self.value_mask = value_mask |
| 1873 | else: |
| 1874 | self.value_mask = 0 |
| 1875 | return |
| 1876 | |
| 1877 | def pack(self): |
| 1878 | packed = [] |
| 1879 | packed.append(struct.pack("!L", self.type_len)) |
| 1880 | packed.append(struct.pack("!L", self.value)) |
| 1881 | packed.append(struct.pack("!L", self.value_mask)) |
| 1882 | return ''.join(packed) |
| 1883 | |
| 1884 | @staticmethod |
| 1885 | def unpack(reader): |
| 1886 | obj = bsn_udf3_masked() |
| 1887 | _type_len = reader.read("!L")[0] |
| 1888 | assert(_type_len == 202504) |
| 1889 | obj.value = reader.read("!L")[0] |
| 1890 | obj.value_mask = reader.read("!L")[0] |
| 1891 | return obj |
| 1892 | |
| 1893 | def __eq__(self, other): |
| 1894 | if type(self) != type(other): return False |
| 1895 | if self.value != other.value: return False |
| 1896 | if self.value_mask != other.value_mask: return False |
| 1897 | return True |
| 1898 | |
| 1899 | def pretty_print(self, q): |
| 1900 | q.text("bsn_udf3_masked {") |
| 1901 | with q.group(): |
| 1902 | with q.indent(2): |
| 1903 | q.breakable() |
| 1904 | q.text("value = "); |
| 1905 | q.text("%#x" % self.value) |
| 1906 | q.text(","); q.breakable() |
| 1907 | q.text("value_mask = "); |
| 1908 | q.text("%#x" % self.value_mask) |
| 1909 | q.breakable() |
| 1910 | q.text('}') |
| 1911 | |
| 1912 | oxm.subtypes[202504] = bsn_udf3_masked |
| 1913 | |
| 1914 | class bsn_udf4(oxm): |
| 1915 | type_len = 202756 |
| 1916 | |
| 1917 | def __init__(self, value=None): |
| 1918 | if value != None: |
| 1919 | self.value = value |
| 1920 | else: |
| 1921 | self.value = 0 |
| 1922 | return |
| 1923 | |
| 1924 | def pack(self): |
| 1925 | packed = [] |
| 1926 | packed.append(struct.pack("!L", self.type_len)) |
| 1927 | packed.append(struct.pack("!L", self.value)) |
| 1928 | return ''.join(packed) |
| 1929 | |
| 1930 | @staticmethod |
| 1931 | def unpack(reader): |
| 1932 | obj = bsn_udf4() |
| 1933 | _type_len = reader.read("!L")[0] |
| 1934 | assert(_type_len == 202756) |
| 1935 | obj.value = reader.read("!L")[0] |
| 1936 | return obj |
| 1937 | |
| 1938 | def __eq__(self, other): |
| 1939 | if type(self) != type(other): return False |
| 1940 | if self.value != other.value: return False |
| 1941 | return True |
| 1942 | |
| 1943 | def pretty_print(self, q): |
| 1944 | q.text("bsn_udf4 {") |
| 1945 | with q.group(): |
| 1946 | with q.indent(2): |
| 1947 | q.breakable() |
| 1948 | q.text("value = "); |
| 1949 | q.text("%#x" % self.value) |
| 1950 | q.breakable() |
| 1951 | q.text('}') |
| 1952 | |
| 1953 | oxm.subtypes[202756] = bsn_udf4 |
| 1954 | |
| 1955 | class bsn_udf4_masked(oxm): |
| 1956 | type_len = 203016 |
| 1957 | |
| 1958 | def __init__(self, value=None, value_mask=None): |
| 1959 | if value != None: |
| 1960 | self.value = value |
| 1961 | else: |
| 1962 | self.value = 0 |
| 1963 | if value_mask != None: |
| 1964 | self.value_mask = value_mask |
| 1965 | else: |
| 1966 | self.value_mask = 0 |
| 1967 | return |
| 1968 | |
| 1969 | def pack(self): |
| 1970 | packed = [] |
| 1971 | packed.append(struct.pack("!L", self.type_len)) |
| 1972 | packed.append(struct.pack("!L", self.value)) |
| 1973 | packed.append(struct.pack("!L", self.value_mask)) |
| 1974 | return ''.join(packed) |
| 1975 | |
| 1976 | @staticmethod |
| 1977 | def unpack(reader): |
| 1978 | obj = bsn_udf4_masked() |
| 1979 | _type_len = reader.read("!L")[0] |
| 1980 | assert(_type_len == 203016) |
| 1981 | obj.value = reader.read("!L")[0] |
| 1982 | obj.value_mask = reader.read("!L")[0] |
| 1983 | return obj |
| 1984 | |
| 1985 | def __eq__(self, other): |
| 1986 | if type(self) != type(other): return False |
| 1987 | if self.value != other.value: return False |
| 1988 | if self.value_mask != other.value_mask: return False |
| 1989 | return True |
| 1990 | |
| 1991 | def pretty_print(self, q): |
| 1992 | q.text("bsn_udf4_masked {") |
| 1993 | with q.group(): |
| 1994 | with q.indent(2): |
| 1995 | q.breakable() |
| 1996 | q.text("value = "); |
| 1997 | q.text("%#x" % self.value) |
| 1998 | q.text(","); q.breakable() |
| 1999 | q.text("value_mask = "); |
| 2000 | q.text("%#x" % self.value_mask) |
| 2001 | q.breakable() |
| 2002 | q.text('}') |
| 2003 | |
| 2004 | oxm.subtypes[203016] = bsn_udf4_masked |
| 2005 | |
| 2006 | class bsn_udf5(oxm): |
| 2007 | type_len = 203268 |
| 2008 | |
| 2009 | def __init__(self, value=None): |
| 2010 | if value != None: |
| 2011 | self.value = value |
| 2012 | else: |
| 2013 | self.value = 0 |
| 2014 | return |
| 2015 | |
| 2016 | def pack(self): |
| 2017 | packed = [] |
| 2018 | packed.append(struct.pack("!L", self.type_len)) |
| 2019 | packed.append(struct.pack("!L", self.value)) |
| 2020 | return ''.join(packed) |
| 2021 | |
| 2022 | @staticmethod |
| 2023 | def unpack(reader): |
| 2024 | obj = bsn_udf5() |
| 2025 | _type_len = reader.read("!L")[0] |
| 2026 | assert(_type_len == 203268) |
| 2027 | obj.value = reader.read("!L")[0] |
| 2028 | return obj |
| 2029 | |
| 2030 | def __eq__(self, other): |
| 2031 | if type(self) != type(other): return False |
| 2032 | if self.value != other.value: return False |
| 2033 | return True |
| 2034 | |
| 2035 | def pretty_print(self, q): |
| 2036 | q.text("bsn_udf5 {") |
| 2037 | with q.group(): |
| 2038 | with q.indent(2): |
| 2039 | q.breakable() |
| 2040 | q.text("value = "); |
| 2041 | q.text("%#x" % self.value) |
| 2042 | q.breakable() |
| 2043 | q.text('}') |
| 2044 | |
| 2045 | oxm.subtypes[203268] = bsn_udf5 |
| 2046 | |
| 2047 | class bsn_udf5_masked(oxm): |
| 2048 | type_len = 203528 |
| 2049 | |
| 2050 | def __init__(self, value=None, value_mask=None): |
| 2051 | if value != None: |
| 2052 | self.value = value |
| 2053 | else: |
| 2054 | self.value = 0 |
| 2055 | if value_mask != None: |
| 2056 | self.value_mask = value_mask |
| 2057 | else: |
| 2058 | self.value_mask = 0 |
| 2059 | return |
| 2060 | |
| 2061 | def pack(self): |
| 2062 | packed = [] |
| 2063 | packed.append(struct.pack("!L", self.type_len)) |
| 2064 | packed.append(struct.pack("!L", self.value)) |
| 2065 | packed.append(struct.pack("!L", self.value_mask)) |
| 2066 | return ''.join(packed) |
| 2067 | |
| 2068 | @staticmethod |
| 2069 | def unpack(reader): |
| 2070 | obj = bsn_udf5_masked() |
| 2071 | _type_len = reader.read("!L")[0] |
| 2072 | assert(_type_len == 203528) |
| 2073 | obj.value = reader.read("!L")[0] |
| 2074 | obj.value_mask = reader.read("!L")[0] |
| 2075 | return obj |
| 2076 | |
| 2077 | def __eq__(self, other): |
| 2078 | if type(self) != type(other): return False |
| 2079 | if self.value != other.value: return False |
| 2080 | if self.value_mask != other.value_mask: return False |
| 2081 | return True |
| 2082 | |
| 2083 | def pretty_print(self, q): |
| 2084 | q.text("bsn_udf5_masked {") |
| 2085 | with q.group(): |
| 2086 | with q.indent(2): |
| 2087 | q.breakable() |
| 2088 | q.text("value = "); |
| 2089 | q.text("%#x" % self.value) |
| 2090 | q.text(","); q.breakable() |
| 2091 | q.text("value_mask = "); |
| 2092 | q.text("%#x" % self.value_mask) |
| 2093 | q.breakable() |
| 2094 | q.text('}') |
| 2095 | |
| 2096 | oxm.subtypes[203528] = bsn_udf5_masked |
| 2097 | |
| 2098 | class bsn_udf6(oxm): |
| 2099 | type_len = 203780 |
| 2100 | |
| 2101 | def __init__(self, value=None): |
| 2102 | if value != None: |
| 2103 | self.value = value |
| 2104 | else: |
| 2105 | self.value = 0 |
| 2106 | return |
| 2107 | |
| 2108 | def pack(self): |
| 2109 | packed = [] |
| 2110 | packed.append(struct.pack("!L", self.type_len)) |
| 2111 | packed.append(struct.pack("!L", self.value)) |
| 2112 | return ''.join(packed) |
| 2113 | |
| 2114 | @staticmethod |
| 2115 | def unpack(reader): |
| 2116 | obj = bsn_udf6() |
| 2117 | _type_len = reader.read("!L")[0] |
| 2118 | assert(_type_len == 203780) |
| 2119 | obj.value = reader.read("!L")[0] |
| 2120 | return obj |
| 2121 | |
| 2122 | def __eq__(self, other): |
| 2123 | if type(self) != type(other): return False |
| 2124 | if self.value != other.value: return False |
| 2125 | return True |
| 2126 | |
| 2127 | def pretty_print(self, q): |
| 2128 | q.text("bsn_udf6 {") |
| 2129 | with q.group(): |
| 2130 | with q.indent(2): |
| 2131 | q.breakable() |
| 2132 | q.text("value = "); |
| 2133 | q.text("%#x" % self.value) |
| 2134 | q.breakable() |
| 2135 | q.text('}') |
| 2136 | |
| 2137 | oxm.subtypes[203780] = bsn_udf6 |
| 2138 | |
| 2139 | class bsn_udf6_masked(oxm): |
| 2140 | type_len = 204040 |
| 2141 | |
| 2142 | def __init__(self, value=None, value_mask=None): |
| 2143 | if value != None: |
| 2144 | self.value = value |
| 2145 | else: |
| 2146 | self.value = 0 |
| 2147 | if value_mask != None: |
| 2148 | self.value_mask = value_mask |
| 2149 | else: |
| 2150 | self.value_mask = 0 |
| 2151 | return |
| 2152 | |
| 2153 | def pack(self): |
| 2154 | packed = [] |
| 2155 | packed.append(struct.pack("!L", self.type_len)) |
| 2156 | packed.append(struct.pack("!L", self.value)) |
| 2157 | packed.append(struct.pack("!L", self.value_mask)) |
| 2158 | return ''.join(packed) |
| 2159 | |
| 2160 | @staticmethod |
| 2161 | def unpack(reader): |
| 2162 | obj = bsn_udf6_masked() |
| 2163 | _type_len = reader.read("!L")[0] |
| 2164 | assert(_type_len == 204040) |
| 2165 | obj.value = reader.read("!L")[0] |
| 2166 | obj.value_mask = reader.read("!L")[0] |
| 2167 | return obj |
| 2168 | |
| 2169 | def __eq__(self, other): |
| 2170 | if type(self) != type(other): return False |
| 2171 | if self.value != other.value: return False |
| 2172 | if self.value_mask != other.value_mask: return False |
| 2173 | return True |
| 2174 | |
| 2175 | def pretty_print(self, q): |
| 2176 | q.text("bsn_udf6_masked {") |
| 2177 | with q.group(): |
| 2178 | with q.indent(2): |
| 2179 | q.breakable() |
| 2180 | q.text("value = "); |
| 2181 | q.text("%#x" % self.value) |
| 2182 | q.text(","); q.breakable() |
| 2183 | q.text("value_mask = "); |
| 2184 | q.text("%#x" % self.value_mask) |
| 2185 | q.breakable() |
| 2186 | q.text('}') |
| 2187 | |
| 2188 | oxm.subtypes[204040] = bsn_udf6_masked |
| 2189 | |
| 2190 | class bsn_udf7(oxm): |
| 2191 | type_len = 204292 |
| 2192 | |
| 2193 | def __init__(self, value=None): |
| 2194 | if value != None: |
| 2195 | self.value = value |
| 2196 | else: |
| 2197 | self.value = 0 |
| 2198 | return |
| 2199 | |
| 2200 | def pack(self): |
| 2201 | packed = [] |
| 2202 | packed.append(struct.pack("!L", self.type_len)) |
| 2203 | packed.append(struct.pack("!L", self.value)) |
| 2204 | return ''.join(packed) |
| 2205 | |
| 2206 | @staticmethod |
| 2207 | def unpack(reader): |
| 2208 | obj = bsn_udf7() |
| 2209 | _type_len = reader.read("!L")[0] |
| 2210 | assert(_type_len == 204292) |
| 2211 | obj.value = reader.read("!L")[0] |
| 2212 | return obj |
| 2213 | |
| 2214 | def __eq__(self, other): |
| 2215 | if type(self) != type(other): return False |
| 2216 | if self.value != other.value: return False |
| 2217 | return True |
| 2218 | |
| 2219 | def pretty_print(self, q): |
| 2220 | q.text("bsn_udf7 {") |
| 2221 | with q.group(): |
| 2222 | with q.indent(2): |
| 2223 | q.breakable() |
| 2224 | q.text("value = "); |
| 2225 | q.text("%#x" % self.value) |
| 2226 | q.breakable() |
| 2227 | q.text('}') |
| 2228 | |
| 2229 | oxm.subtypes[204292] = bsn_udf7 |
| 2230 | |
| 2231 | class bsn_udf7_masked(oxm): |
| 2232 | type_len = 204552 |
| 2233 | |
| 2234 | def __init__(self, value=None, value_mask=None): |
| 2235 | if value != None: |
| 2236 | self.value = value |
| 2237 | else: |
| 2238 | self.value = 0 |
| 2239 | if value_mask != None: |
| 2240 | self.value_mask = value_mask |
| 2241 | else: |
| 2242 | self.value_mask = 0 |
| 2243 | return |
| 2244 | |
| 2245 | def pack(self): |
| 2246 | packed = [] |
| 2247 | packed.append(struct.pack("!L", self.type_len)) |
| 2248 | packed.append(struct.pack("!L", self.value)) |
| 2249 | packed.append(struct.pack("!L", self.value_mask)) |
| 2250 | return ''.join(packed) |
| 2251 | |
| 2252 | @staticmethod |
| 2253 | def unpack(reader): |
| 2254 | obj = bsn_udf7_masked() |
| 2255 | _type_len = reader.read("!L")[0] |
| 2256 | assert(_type_len == 204552) |
| 2257 | obj.value = reader.read("!L")[0] |
| 2258 | obj.value_mask = reader.read("!L")[0] |
| 2259 | return obj |
| 2260 | |
| 2261 | def __eq__(self, other): |
| 2262 | if type(self) != type(other): return False |
| 2263 | if self.value != other.value: return False |
| 2264 | if self.value_mask != other.value_mask: return False |
| 2265 | return True |
| 2266 | |
| 2267 | def pretty_print(self, q): |
| 2268 | q.text("bsn_udf7_masked {") |
| 2269 | with q.group(): |
| 2270 | with q.indent(2): |
| 2271 | q.breakable() |
| 2272 | q.text("value = "); |
| 2273 | q.text("%#x" % self.value) |
| 2274 | q.text(","); q.breakable() |
| 2275 | q.text("value_mask = "); |
| 2276 | q.text("%#x" % self.value_mask) |
| 2277 | q.breakable() |
| 2278 | q.text('}') |
| 2279 | |
| 2280 | oxm.subtypes[204552] = bsn_udf7_masked |
| 2281 | |
| 2282 | class bsn_vlan_xlate_port_group_id(oxm): |
| 2283 | type_len = 205316 |
| 2284 | |
| 2285 | def __init__(self, value=None): |
| 2286 | if value != None: |
| 2287 | self.value = value |
| 2288 | else: |
| 2289 | self.value = 0 |
| 2290 | return |
| 2291 | |
| 2292 | def pack(self): |
| 2293 | packed = [] |
| 2294 | packed.append(struct.pack("!L", self.type_len)) |
| 2295 | packed.append(struct.pack("!L", self.value)) |
| 2296 | return ''.join(packed) |
| 2297 | |
| 2298 | @staticmethod |
| 2299 | def unpack(reader): |
| 2300 | obj = bsn_vlan_xlate_port_group_id() |
| 2301 | _type_len = reader.read("!L")[0] |
| 2302 | assert(_type_len == 205316) |
| 2303 | obj.value = reader.read("!L")[0] |
| 2304 | return obj |
| 2305 | |
| 2306 | def __eq__(self, other): |
| 2307 | if type(self) != type(other): return False |
| 2308 | if self.value != other.value: return False |
| 2309 | return True |
| 2310 | |
| 2311 | def pretty_print(self, q): |
| 2312 | q.text("bsn_vlan_xlate_port_group_id {") |
| 2313 | with q.group(): |
| 2314 | with q.indent(2): |
| 2315 | q.breakable() |
| 2316 | q.text("value = "); |
| 2317 | q.text("%#x" % self.value) |
| 2318 | q.breakable() |
| 2319 | q.text('}') |
| 2320 | |
| 2321 | oxm.subtypes[205316] = bsn_vlan_xlate_port_group_id |
| 2322 | |
| 2323 | class bsn_vlan_xlate_port_group_id_masked(oxm): |
| 2324 | type_len = 205576 |
| 2325 | |
| 2326 | def __init__(self, value=None, value_mask=None): |
| 2327 | if value != None: |
| 2328 | self.value = value |
| 2329 | else: |
| 2330 | self.value = 0 |
| 2331 | if value_mask != None: |
| 2332 | self.value_mask = value_mask |
| 2333 | else: |
| 2334 | self.value_mask = 0 |
| 2335 | return |
| 2336 | |
| 2337 | def pack(self): |
| 2338 | packed = [] |
| 2339 | packed.append(struct.pack("!L", self.type_len)) |
| 2340 | packed.append(struct.pack("!L", self.value)) |
| 2341 | packed.append(struct.pack("!L", self.value_mask)) |
| 2342 | return ''.join(packed) |
| 2343 | |
| 2344 | @staticmethod |
| 2345 | def unpack(reader): |
| 2346 | obj = bsn_vlan_xlate_port_group_id_masked() |
| 2347 | _type_len = reader.read("!L")[0] |
| 2348 | assert(_type_len == 205576) |
| 2349 | obj.value = reader.read("!L")[0] |
| 2350 | obj.value_mask = reader.read("!L")[0] |
| 2351 | return obj |
| 2352 | |
| 2353 | def __eq__(self, other): |
| 2354 | if type(self) != type(other): return False |
| 2355 | if self.value != other.value: return False |
| 2356 | if self.value_mask != other.value_mask: return False |
| 2357 | return True |
| 2358 | |
| 2359 | def pretty_print(self, q): |
| 2360 | q.text("bsn_vlan_xlate_port_group_id_masked {") |
| 2361 | with q.group(): |
| 2362 | with q.indent(2): |
| 2363 | q.breakable() |
| 2364 | q.text("value = "); |
| 2365 | q.text("%#x" % self.value) |
| 2366 | q.text(","); q.breakable() |
| 2367 | q.text("value_mask = "); |
| 2368 | q.text("%#x" % self.value_mask) |
| 2369 | q.breakable() |
| 2370 | q.text('}') |
| 2371 | |
| 2372 | oxm.subtypes[205576] = bsn_vlan_xlate_port_group_id_masked |
| 2373 | |
| 2374 | class bsn_vrf(oxm): |
| 2375 | type_len = 197636 |
| 2376 | |
| 2377 | def __init__(self, value=None): |
| 2378 | if value != None: |
| 2379 | self.value = value |
| 2380 | else: |
| 2381 | self.value = 0 |
| 2382 | return |
| 2383 | |
| 2384 | def pack(self): |
| 2385 | packed = [] |
| 2386 | packed.append(struct.pack("!L", self.type_len)) |
| 2387 | packed.append(struct.pack("!L", self.value)) |
| 2388 | return ''.join(packed) |
| 2389 | |
| 2390 | @staticmethod |
| 2391 | def unpack(reader): |
| 2392 | obj = bsn_vrf() |
| 2393 | _type_len = reader.read("!L")[0] |
| 2394 | assert(_type_len == 197636) |
| 2395 | obj.value = reader.read("!L")[0] |
| 2396 | return obj |
| 2397 | |
| 2398 | def __eq__(self, other): |
| 2399 | if type(self) != type(other): return False |
| 2400 | if self.value != other.value: return False |
| 2401 | return True |
| 2402 | |
| 2403 | def pretty_print(self, q): |
| 2404 | q.text("bsn_vrf {") |
| 2405 | with q.group(): |
| 2406 | with q.indent(2): |
| 2407 | q.breakable() |
| 2408 | q.text("value = "); |
| 2409 | q.text("%#x" % self.value) |
| 2410 | q.breakable() |
| 2411 | q.text('}') |
| 2412 | |
| 2413 | oxm.subtypes[197636] = bsn_vrf |
| 2414 | |
| 2415 | class bsn_vrf_masked(oxm): |
| 2416 | type_len = 197896 |
| 2417 | |
| 2418 | def __init__(self, value=None, value_mask=None): |
| 2419 | if value != None: |
| 2420 | self.value = value |
| 2421 | else: |
| 2422 | self.value = 0 |
| 2423 | if value_mask != None: |
| 2424 | self.value_mask = value_mask |
| 2425 | else: |
| 2426 | self.value_mask = 0 |
| 2427 | return |
| 2428 | |
| 2429 | def pack(self): |
| 2430 | packed = [] |
| 2431 | packed.append(struct.pack("!L", self.type_len)) |
| 2432 | packed.append(struct.pack("!L", self.value)) |
| 2433 | packed.append(struct.pack("!L", self.value_mask)) |
| 2434 | return ''.join(packed) |
| 2435 | |
| 2436 | @staticmethod |
| 2437 | def unpack(reader): |
| 2438 | obj = bsn_vrf_masked() |
| 2439 | _type_len = reader.read("!L")[0] |
| 2440 | assert(_type_len == 197896) |
| 2441 | obj.value = reader.read("!L")[0] |
| 2442 | obj.value_mask = reader.read("!L")[0] |
| 2443 | return obj |
| 2444 | |
| 2445 | def __eq__(self, other): |
| 2446 | if type(self) != type(other): return False |
| 2447 | if self.value != other.value: return False |
| 2448 | if self.value_mask != other.value_mask: return False |
| 2449 | return True |
| 2450 | |
| 2451 | def pretty_print(self, q): |
| 2452 | q.text("bsn_vrf_masked {") |
| 2453 | with q.group(): |
| 2454 | with q.indent(2): |
| 2455 | q.breakable() |
| 2456 | q.text("value = "); |
| 2457 | q.text("%#x" % self.value) |
| 2458 | q.text(","); q.breakable() |
| 2459 | q.text("value_mask = "); |
| 2460 | q.text("%#x" % self.value_mask) |
| 2461 | q.breakable() |
| 2462 | q.text('}') |
| 2463 | |
| 2464 | oxm.subtypes[197896] = bsn_vrf_masked |
| 2465 | |
Rich Lane | 5116831 | 2015-06-25 13:13:54 -0700 | [diff] [blame] | 2466 | class bsn_vxlan_network_id(oxm): |
| 2467 | type_len = 207364 |
| 2468 | |
| 2469 | def __init__(self, value=None): |
| 2470 | if value != None: |
| 2471 | self.value = value |
| 2472 | else: |
| 2473 | self.value = 0 |
| 2474 | return |
| 2475 | |
| 2476 | def pack(self): |
| 2477 | packed = [] |
| 2478 | packed.append(struct.pack("!L", self.type_len)) |
| 2479 | packed.append(struct.pack("!L", self.value)) |
| 2480 | return ''.join(packed) |
| 2481 | |
| 2482 | @staticmethod |
| 2483 | def unpack(reader): |
| 2484 | obj = bsn_vxlan_network_id() |
| 2485 | _type_len = reader.read("!L")[0] |
| 2486 | assert(_type_len == 207364) |
| 2487 | obj.value = reader.read("!L")[0] |
| 2488 | return obj |
| 2489 | |
| 2490 | def __eq__(self, other): |
| 2491 | if type(self) != type(other): return False |
| 2492 | if self.value != other.value: return False |
| 2493 | return True |
| 2494 | |
| 2495 | def pretty_print(self, q): |
| 2496 | q.text("bsn_vxlan_network_id {") |
| 2497 | with q.group(): |
| 2498 | with q.indent(2): |
| 2499 | q.breakable() |
| 2500 | q.text("value = "); |
| 2501 | q.text("%#x" % self.value) |
| 2502 | q.breakable() |
| 2503 | q.text('}') |
| 2504 | |
| 2505 | oxm.subtypes[207364] = bsn_vxlan_network_id |
| 2506 | |
| 2507 | class bsn_vxlan_network_id_masked(oxm): |
| 2508 | type_len = 207624 |
| 2509 | |
| 2510 | def __init__(self, value=None, value_mask=None): |
| 2511 | if value != None: |
| 2512 | self.value = value |
| 2513 | else: |
| 2514 | self.value = 0 |
| 2515 | if value_mask != None: |
| 2516 | self.value_mask = value_mask |
| 2517 | else: |
| 2518 | self.value_mask = 0 |
| 2519 | return |
| 2520 | |
| 2521 | def pack(self): |
| 2522 | packed = [] |
| 2523 | packed.append(struct.pack("!L", self.type_len)) |
| 2524 | packed.append(struct.pack("!L", self.value)) |
| 2525 | packed.append(struct.pack("!L", self.value_mask)) |
| 2526 | return ''.join(packed) |
| 2527 | |
| 2528 | @staticmethod |
| 2529 | def unpack(reader): |
| 2530 | obj = bsn_vxlan_network_id_masked() |
| 2531 | _type_len = reader.read("!L")[0] |
| 2532 | assert(_type_len == 207624) |
| 2533 | obj.value = reader.read("!L")[0] |
| 2534 | obj.value_mask = reader.read("!L")[0] |
| 2535 | return obj |
| 2536 | |
| 2537 | def __eq__(self, other): |
| 2538 | if type(self) != type(other): return False |
| 2539 | if self.value != other.value: return False |
| 2540 | if self.value_mask != other.value_mask: return False |
| 2541 | return True |
| 2542 | |
| 2543 | def pretty_print(self, q): |
| 2544 | q.text("bsn_vxlan_network_id_masked {") |
| 2545 | with q.group(): |
| 2546 | with q.indent(2): |
| 2547 | q.breakable() |
| 2548 | q.text("value = "); |
| 2549 | q.text("%#x" % self.value) |
| 2550 | q.text(","); q.breakable() |
| 2551 | q.text("value_mask = "); |
| 2552 | q.text("%#x" % self.value_mask) |
| 2553 | q.breakable() |
| 2554 | q.text('}') |
| 2555 | |
| 2556 | oxm.subtypes[207624] = bsn_vxlan_network_id_masked |
| 2557 | |
Rich Lane | 2e079da | 2014-10-29 15:30:24 -0700 | [diff] [blame] | 2558 | class eth_dst(oxm): |
| 2559 | type_len = 2147485190 |
| 2560 | |
| 2561 | def __init__(self, value=None): |
| 2562 | if value != None: |
| 2563 | self.value = value |
| 2564 | else: |
| 2565 | self.value = [0,0,0,0,0,0] |
| 2566 | return |
| 2567 | |
| 2568 | def pack(self): |
| 2569 | packed = [] |
| 2570 | packed.append(struct.pack("!L", self.type_len)) |
| 2571 | packed.append(struct.pack("!6B", *self.value)) |
| 2572 | return ''.join(packed) |
| 2573 | |
| 2574 | @staticmethod |
| 2575 | def unpack(reader): |
| 2576 | obj = eth_dst() |
| 2577 | _type_len = reader.read("!L")[0] |
| 2578 | assert(_type_len == 2147485190) |
| 2579 | obj.value = list(reader.read('!6B')) |
| 2580 | return obj |
| 2581 | |
| 2582 | def __eq__(self, other): |
| 2583 | if type(self) != type(other): return False |
| 2584 | if self.value != other.value: return False |
| 2585 | return True |
| 2586 | |
| 2587 | def pretty_print(self, q): |
| 2588 | q.text("eth_dst {") |
| 2589 | with q.group(): |
| 2590 | with q.indent(2): |
| 2591 | q.breakable() |
| 2592 | q.text("value = "); |
| 2593 | q.text(util.pretty_mac(self.value)) |
| 2594 | q.breakable() |
| 2595 | q.text('}') |
| 2596 | |
| 2597 | oxm.subtypes[2147485190] = eth_dst |
| 2598 | |
| 2599 | class eth_dst_masked(oxm): |
| 2600 | type_len = 2147485452 |
| 2601 | |
| 2602 | def __init__(self, value=None, value_mask=None): |
| 2603 | if value != None: |
| 2604 | self.value = value |
| 2605 | else: |
| 2606 | self.value = [0,0,0,0,0,0] |
| 2607 | if value_mask != None: |
| 2608 | self.value_mask = value_mask |
| 2609 | else: |
| 2610 | self.value_mask = [0,0,0,0,0,0] |
| 2611 | return |
| 2612 | |
| 2613 | def pack(self): |
| 2614 | packed = [] |
| 2615 | packed.append(struct.pack("!L", self.type_len)) |
| 2616 | packed.append(struct.pack("!6B", *self.value)) |
| 2617 | packed.append(struct.pack("!6B", *self.value_mask)) |
| 2618 | return ''.join(packed) |
| 2619 | |
| 2620 | @staticmethod |
| 2621 | def unpack(reader): |
| 2622 | obj = eth_dst_masked() |
| 2623 | _type_len = reader.read("!L")[0] |
| 2624 | assert(_type_len == 2147485452) |
| 2625 | obj.value = list(reader.read('!6B')) |
| 2626 | obj.value_mask = list(reader.read('!6B')) |
| 2627 | return obj |
| 2628 | |
| 2629 | def __eq__(self, other): |
| 2630 | if type(self) != type(other): return False |
| 2631 | if self.value != other.value: return False |
| 2632 | if self.value_mask != other.value_mask: return False |
| 2633 | return True |
| 2634 | |
| 2635 | def pretty_print(self, q): |
| 2636 | q.text("eth_dst_masked {") |
| 2637 | with q.group(): |
| 2638 | with q.indent(2): |
| 2639 | q.breakable() |
| 2640 | q.text("value = "); |
| 2641 | q.text(util.pretty_mac(self.value)) |
| 2642 | q.text(","); q.breakable() |
| 2643 | q.text("value_mask = "); |
| 2644 | q.text(util.pretty_mac(self.value_mask)) |
| 2645 | q.breakable() |
| 2646 | q.text('}') |
| 2647 | |
| 2648 | oxm.subtypes[2147485452] = eth_dst_masked |
| 2649 | |
| 2650 | class eth_src(oxm): |
| 2651 | type_len = 2147485702 |
| 2652 | |
| 2653 | def __init__(self, value=None): |
| 2654 | if value != None: |
| 2655 | self.value = value |
| 2656 | else: |
| 2657 | self.value = [0,0,0,0,0,0] |
| 2658 | return |
| 2659 | |
| 2660 | def pack(self): |
| 2661 | packed = [] |
| 2662 | packed.append(struct.pack("!L", self.type_len)) |
| 2663 | packed.append(struct.pack("!6B", *self.value)) |
| 2664 | return ''.join(packed) |
| 2665 | |
| 2666 | @staticmethod |
| 2667 | def unpack(reader): |
| 2668 | obj = eth_src() |
| 2669 | _type_len = reader.read("!L")[0] |
| 2670 | assert(_type_len == 2147485702) |
| 2671 | obj.value = list(reader.read('!6B')) |
| 2672 | return obj |
| 2673 | |
| 2674 | def __eq__(self, other): |
| 2675 | if type(self) != type(other): return False |
| 2676 | if self.value != other.value: return False |
| 2677 | return True |
| 2678 | |
| 2679 | def pretty_print(self, q): |
| 2680 | q.text("eth_src {") |
| 2681 | with q.group(): |
| 2682 | with q.indent(2): |
| 2683 | q.breakable() |
| 2684 | q.text("value = "); |
| 2685 | q.text(util.pretty_mac(self.value)) |
| 2686 | q.breakable() |
| 2687 | q.text('}') |
| 2688 | |
| 2689 | oxm.subtypes[2147485702] = eth_src |
| 2690 | |
| 2691 | class eth_src_masked(oxm): |
| 2692 | type_len = 2147485964 |
| 2693 | |
| 2694 | def __init__(self, value=None, value_mask=None): |
| 2695 | if value != None: |
| 2696 | self.value = value |
| 2697 | else: |
| 2698 | self.value = [0,0,0,0,0,0] |
| 2699 | if value_mask != None: |
| 2700 | self.value_mask = value_mask |
| 2701 | else: |
| 2702 | self.value_mask = [0,0,0,0,0,0] |
| 2703 | return |
| 2704 | |
| 2705 | def pack(self): |
| 2706 | packed = [] |
| 2707 | packed.append(struct.pack("!L", self.type_len)) |
| 2708 | packed.append(struct.pack("!6B", *self.value)) |
| 2709 | packed.append(struct.pack("!6B", *self.value_mask)) |
| 2710 | return ''.join(packed) |
| 2711 | |
| 2712 | @staticmethod |
| 2713 | def unpack(reader): |
| 2714 | obj = eth_src_masked() |
| 2715 | _type_len = reader.read("!L")[0] |
| 2716 | assert(_type_len == 2147485964) |
| 2717 | obj.value = list(reader.read('!6B')) |
| 2718 | obj.value_mask = list(reader.read('!6B')) |
| 2719 | return obj |
| 2720 | |
| 2721 | def __eq__(self, other): |
| 2722 | if type(self) != type(other): return False |
| 2723 | if self.value != other.value: return False |
| 2724 | if self.value_mask != other.value_mask: return False |
| 2725 | return True |
| 2726 | |
| 2727 | def pretty_print(self, q): |
| 2728 | q.text("eth_src_masked {") |
| 2729 | with q.group(): |
| 2730 | with q.indent(2): |
| 2731 | q.breakable() |
| 2732 | q.text("value = "); |
| 2733 | q.text(util.pretty_mac(self.value)) |
| 2734 | q.text(","); q.breakable() |
| 2735 | q.text("value_mask = "); |
| 2736 | q.text(util.pretty_mac(self.value_mask)) |
| 2737 | q.breakable() |
| 2738 | q.text('}') |
| 2739 | |
| 2740 | oxm.subtypes[2147485964] = eth_src_masked |
| 2741 | |
| 2742 | class eth_type(oxm): |
| 2743 | type_len = 2147486210 |
| 2744 | |
| 2745 | def __init__(self, value=None): |
| 2746 | if value != None: |
| 2747 | self.value = value |
| 2748 | else: |
| 2749 | self.value = 0 |
| 2750 | return |
| 2751 | |
| 2752 | def pack(self): |
| 2753 | packed = [] |
| 2754 | packed.append(struct.pack("!L", self.type_len)) |
| 2755 | packed.append(struct.pack("!H", self.value)) |
| 2756 | return ''.join(packed) |
| 2757 | |
| 2758 | @staticmethod |
| 2759 | def unpack(reader): |
| 2760 | obj = eth_type() |
| 2761 | _type_len = reader.read("!L")[0] |
| 2762 | assert(_type_len == 2147486210) |
| 2763 | obj.value = reader.read("!H")[0] |
| 2764 | return obj |
| 2765 | |
| 2766 | def __eq__(self, other): |
| 2767 | if type(self) != type(other): return False |
| 2768 | if self.value != other.value: return False |
| 2769 | return True |
| 2770 | |
| 2771 | def pretty_print(self, q): |
| 2772 | q.text("eth_type {") |
| 2773 | with q.group(): |
| 2774 | with q.indent(2): |
| 2775 | q.breakable() |
| 2776 | q.text("value = "); |
| 2777 | q.text("%#x" % self.value) |
| 2778 | q.breakable() |
| 2779 | q.text('}') |
| 2780 | |
| 2781 | oxm.subtypes[2147486210] = eth_type |
| 2782 | |
| 2783 | class eth_type_masked(oxm): |
| 2784 | type_len = 2147486468 |
| 2785 | |
| 2786 | def __init__(self, value=None, value_mask=None): |
| 2787 | if value != None: |
| 2788 | self.value = value |
| 2789 | else: |
| 2790 | self.value = 0 |
| 2791 | if value_mask != None: |
| 2792 | self.value_mask = value_mask |
| 2793 | else: |
| 2794 | self.value_mask = 0 |
| 2795 | return |
| 2796 | |
| 2797 | def pack(self): |
| 2798 | packed = [] |
| 2799 | packed.append(struct.pack("!L", self.type_len)) |
| 2800 | packed.append(struct.pack("!H", self.value)) |
| 2801 | packed.append(struct.pack("!H", self.value_mask)) |
| 2802 | return ''.join(packed) |
| 2803 | |
| 2804 | @staticmethod |
| 2805 | def unpack(reader): |
| 2806 | obj = eth_type_masked() |
| 2807 | _type_len = reader.read("!L")[0] |
| 2808 | assert(_type_len == 2147486468) |
| 2809 | obj.value = reader.read("!H")[0] |
| 2810 | obj.value_mask = reader.read("!H")[0] |
| 2811 | return obj |
| 2812 | |
| 2813 | def __eq__(self, other): |
| 2814 | if type(self) != type(other): return False |
| 2815 | if self.value != other.value: return False |
| 2816 | if self.value_mask != other.value_mask: return False |
| 2817 | return True |
| 2818 | |
| 2819 | def pretty_print(self, q): |
| 2820 | q.text("eth_type_masked {") |
| 2821 | with q.group(): |
| 2822 | with q.indent(2): |
| 2823 | q.breakable() |
| 2824 | q.text("value = "); |
| 2825 | q.text("%#x" % self.value) |
| 2826 | q.text(","); q.breakable() |
| 2827 | q.text("value_mask = "); |
| 2828 | q.text("%#x" % self.value_mask) |
| 2829 | q.breakable() |
| 2830 | q.text('}') |
| 2831 | |
| 2832 | oxm.subtypes[2147486468] = eth_type_masked |
| 2833 | |
| 2834 | class icmpv4_code(oxm): |
| 2835 | type_len = 2147493889 |
| 2836 | |
| 2837 | def __init__(self, value=None): |
| 2838 | if value != None: |
| 2839 | self.value = value |
| 2840 | else: |
| 2841 | self.value = 0 |
| 2842 | return |
| 2843 | |
| 2844 | def pack(self): |
| 2845 | packed = [] |
| 2846 | packed.append(struct.pack("!L", self.type_len)) |
| 2847 | packed.append(struct.pack("!B", self.value)) |
| 2848 | return ''.join(packed) |
| 2849 | |
| 2850 | @staticmethod |
| 2851 | def unpack(reader): |
| 2852 | obj = icmpv4_code() |
| 2853 | _type_len = reader.read("!L")[0] |
| 2854 | assert(_type_len == 2147493889) |
| 2855 | obj.value = reader.read("!B")[0] |
| 2856 | return obj |
| 2857 | |
| 2858 | def __eq__(self, other): |
| 2859 | if type(self) != type(other): return False |
| 2860 | if self.value != other.value: return False |
| 2861 | return True |
| 2862 | |
| 2863 | def pretty_print(self, q): |
| 2864 | q.text("icmpv4_code {") |
| 2865 | with q.group(): |
| 2866 | with q.indent(2): |
| 2867 | q.breakable() |
| 2868 | q.text("value = "); |
| 2869 | q.text("%#x" % self.value) |
| 2870 | q.breakable() |
| 2871 | q.text('}') |
| 2872 | |
| 2873 | oxm.subtypes[2147493889] = icmpv4_code |
| 2874 | |
| 2875 | class icmpv4_code_masked(oxm): |
| 2876 | type_len = 2147494146 |
| 2877 | |
| 2878 | def __init__(self, value=None, value_mask=None): |
| 2879 | if value != None: |
| 2880 | self.value = value |
| 2881 | else: |
| 2882 | self.value = 0 |
| 2883 | if value_mask != None: |
| 2884 | self.value_mask = value_mask |
| 2885 | else: |
| 2886 | self.value_mask = 0 |
| 2887 | return |
| 2888 | |
| 2889 | def pack(self): |
| 2890 | packed = [] |
| 2891 | packed.append(struct.pack("!L", self.type_len)) |
| 2892 | packed.append(struct.pack("!B", self.value)) |
| 2893 | packed.append(struct.pack("!B", self.value_mask)) |
| 2894 | return ''.join(packed) |
| 2895 | |
| 2896 | @staticmethod |
| 2897 | def unpack(reader): |
| 2898 | obj = icmpv4_code_masked() |
| 2899 | _type_len = reader.read("!L")[0] |
| 2900 | assert(_type_len == 2147494146) |
| 2901 | obj.value = reader.read("!B")[0] |
| 2902 | obj.value_mask = reader.read("!B")[0] |
| 2903 | return obj |
| 2904 | |
| 2905 | def __eq__(self, other): |
| 2906 | if type(self) != type(other): return False |
| 2907 | if self.value != other.value: return False |
| 2908 | if self.value_mask != other.value_mask: return False |
| 2909 | return True |
| 2910 | |
| 2911 | def pretty_print(self, q): |
| 2912 | q.text("icmpv4_code_masked {") |
| 2913 | with q.group(): |
| 2914 | with q.indent(2): |
| 2915 | q.breakable() |
| 2916 | q.text("value = "); |
| 2917 | q.text("%#x" % self.value) |
| 2918 | q.text(","); q.breakable() |
| 2919 | q.text("value_mask = "); |
| 2920 | q.text("%#x" % self.value_mask) |
| 2921 | q.breakable() |
| 2922 | q.text('}') |
| 2923 | |
| 2924 | oxm.subtypes[2147494146] = icmpv4_code_masked |
| 2925 | |
| 2926 | class icmpv4_type(oxm): |
| 2927 | type_len = 2147493377 |
| 2928 | |
| 2929 | def __init__(self, value=None): |
| 2930 | if value != None: |
| 2931 | self.value = value |
| 2932 | else: |
| 2933 | self.value = 0 |
| 2934 | return |
| 2935 | |
| 2936 | def pack(self): |
| 2937 | packed = [] |
| 2938 | packed.append(struct.pack("!L", self.type_len)) |
| 2939 | packed.append(struct.pack("!B", self.value)) |
| 2940 | return ''.join(packed) |
| 2941 | |
| 2942 | @staticmethod |
| 2943 | def unpack(reader): |
| 2944 | obj = icmpv4_type() |
| 2945 | _type_len = reader.read("!L")[0] |
| 2946 | assert(_type_len == 2147493377) |
| 2947 | obj.value = reader.read("!B")[0] |
| 2948 | return obj |
| 2949 | |
| 2950 | def __eq__(self, other): |
| 2951 | if type(self) != type(other): return False |
| 2952 | if self.value != other.value: return False |
| 2953 | return True |
| 2954 | |
| 2955 | def pretty_print(self, q): |
| 2956 | q.text("icmpv4_type {") |
| 2957 | with q.group(): |
| 2958 | with q.indent(2): |
| 2959 | q.breakable() |
| 2960 | q.text("value = "); |
| 2961 | q.text("%#x" % self.value) |
| 2962 | q.breakable() |
| 2963 | q.text('}') |
| 2964 | |
| 2965 | oxm.subtypes[2147493377] = icmpv4_type |
| 2966 | |
| 2967 | class icmpv4_type_masked(oxm): |
| 2968 | type_len = 2147493634 |
| 2969 | |
| 2970 | def __init__(self, value=None, value_mask=None): |
| 2971 | if value != None: |
| 2972 | self.value = value |
| 2973 | else: |
| 2974 | self.value = 0 |
| 2975 | if value_mask != None: |
| 2976 | self.value_mask = value_mask |
| 2977 | else: |
| 2978 | self.value_mask = 0 |
| 2979 | return |
| 2980 | |
| 2981 | def pack(self): |
| 2982 | packed = [] |
| 2983 | packed.append(struct.pack("!L", self.type_len)) |
| 2984 | packed.append(struct.pack("!B", self.value)) |
| 2985 | packed.append(struct.pack("!B", self.value_mask)) |
| 2986 | return ''.join(packed) |
| 2987 | |
| 2988 | @staticmethod |
| 2989 | def unpack(reader): |
| 2990 | obj = icmpv4_type_masked() |
| 2991 | _type_len = reader.read("!L")[0] |
| 2992 | assert(_type_len == 2147493634) |
| 2993 | obj.value = reader.read("!B")[0] |
| 2994 | obj.value_mask = reader.read("!B")[0] |
| 2995 | return obj |
| 2996 | |
| 2997 | def __eq__(self, other): |
| 2998 | if type(self) != type(other): return False |
| 2999 | if self.value != other.value: return False |
| 3000 | if self.value_mask != other.value_mask: return False |
| 3001 | return True |
| 3002 | |
| 3003 | def pretty_print(self, q): |
| 3004 | q.text("icmpv4_type_masked {") |
| 3005 | with q.group(): |
| 3006 | with q.indent(2): |
| 3007 | q.breakable() |
| 3008 | q.text("value = "); |
| 3009 | q.text("%#x" % self.value) |
| 3010 | q.text(","); q.breakable() |
| 3011 | q.text("value_mask = "); |
| 3012 | q.text("%#x" % self.value_mask) |
| 3013 | q.breakable() |
| 3014 | q.text('}') |
| 3015 | |
| 3016 | oxm.subtypes[2147493634] = icmpv4_type_masked |
| 3017 | |
| 3018 | class icmpv6_code(oxm): |
| 3019 | type_len = 2147499009 |
| 3020 | |
| 3021 | def __init__(self, value=None): |
| 3022 | if value != None: |
| 3023 | self.value = value |
| 3024 | else: |
| 3025 | self.value = 0 |
| 3026 | return |
| 3027 | |
| 3028 | def pack(self): |
| 3029 | packed = [] |
| 3030 | packed.append(struct.pack("!L", self.type_len)) |
| 3031 | packed.append(struct.pack("!B", self.value)) |
| 3032 | return ''.join(packed) |
| 3033 | |
| 3034 | @staticmethod |
| 3035 | def unpack(reader): |
| 3036 | obj = icmpv6_code() |
| 3037 | _type_len = reader.read("!L")[0] |
| 3038 | assert(_type_len == 2147499009) |
| 3039 | obj.value = reader.read("!B")[0] |
| 3040 | return obj |
| 3041 | |
| 3042 | def __eq__(self, other): |
| 3043 | if type(self) != type(other): return False |
| 3044 | if self.value != other.value: return False |
| 3045 | return True |
| 3046 | |
| 3047 | def pretty_print(self, q): |
| 3048 | q.text("icmpv6_code {") |
| 3049 | with q.group(): |
| 3050 | with q.indent(2): |
| 3051 | q.breakable() |
| 3052 | q.text("value = "); |
| 3053 | q.text("%#x" % self.value) |
| 3054 | q.breakable() |
| 3055 | q.text('}') |
| 3056 | |
| 3057 | oxm.subtypes[2147499009] = icmpv6_code |
| 3058 | |
| 3059 | class icmpv6_code_masked(oxm): |
| 3060 | type_len = 2147499266 |
| 3061 | |
| 3062 | def __init__(self, value=None, value_mask=None): |
| 3063 | if value != None: |
| 3064 | self.value = value |
| 3065 | else: |
| 3066 | self.value = 0 |
| 3067 | if value_mask != None: |
| 3068 | self.value_mask = value_mask |
| 3069 | else: |
| 3070 | self.value_mask = 0 |
| 3071 | return |
| 3072 | |
| 3073 | def pack(self): |
| 3074 | packed = [] |
| 3075 | packed.append(struct.pack("!L", self.type_len)) |
| 3076 | packed.append(struct.pack("!B", self.value)) |
| 3077 | packed.append(struct.pack("!B", self.value_mask)) |
| 3078 | return ''.join(packed) |
| 3079 | |
| 3080 | @staticmethod |
| 3081 | def unpack(reader): |
| 3082 | obj = icmpv6_code_masked() |
| 3083 | _type_len = reader.read("!L")[0] |
| 3084 | assert(_type_len == 2147499266) |
| 3085 | obj.value = reader.read("!B")[0] |
| 3086 | obj.value_mask = reader.read("!B")[0] |
| 3087 | return obj |
| 3088 | |
| 3089 | def __eq__(self, other): |
| 3090 | if type(self) != type(other): return False |
| 3091 | if self.value != other.value: return False |
| 3092 | if self.value_mask != other.value_mask: return False |
| 3093 | return True |
| 3094 | |
| 3095 | def pretty_print(self, q): |
| 3096 | q.text("icmpv6_code_masked {") |
| 3097 | with q.group(): |
| 3098 | with q.indent(2): |
| 3099 | q.breakable() |
| 3100 | q.text("value = "); |
| 3101 | q.text("%#x" % self.value) |
| 3102 | q.text(","); q.breakable() |
| 3103 | q.text("value_mask = "); |
| 3104 | q.text("%#x" % self.value_mask) |
| 3105 | q.breakable() |
| 3106 | q.text('}') |
| 3107 | |
| 3108 | oxm.subtypes[2147499266] = icmpv6_code_masked |
| 3109 | |
| 3110 | class icmpv6_type(oxm): |
| 3111 | type_len = 2147498497 |
| 3112 | |
| 3113 | def __init__(self, value=None): |
| 3114 | if value != None: |
| 3115 | self.value = value |
| 3116 | else: |
| 3117 | self.value = 0 |
| 3118 | return |
| 3119 | |
| 3120 | def pack(self): |
| 3121 | packed = [] |
| 3122 | packed.append(struct.pack("!L", self.type_len)) |
| 3123 | packed.append(struct.pack("!B", self.value)) |
| 3124 | return ''.join(packed) |
| 3125 | |
| 3126 | @staticmethod |
| 3127 | def unpack(reader): |
| 3128 | obj = icmpv6_type() |
| 3129 | _type_len = reader.read("!L")[0] |
| 3130 | assert(_type_len == 2147498497) |
| 3131 | obj.value = reader.read("!B")[0] |
| 3132 | return obj |
| 3133 | |
| 3134 | def __eq__(self, other): |
| 3135 | if type(self) != type(other): return False |
| 3136 | if self.value != other.value: return False |
| 3137 | return True |
| 3138 | |
| 3139 | def pretty_print(self, q): |
| 3140 | q.text("icmpv6_type {") |
| 3141 | with q.group(): |
| 3142 | with q.indent(2): |
| 3143 | q.breakable() |
| 3144 | q.text("value = "); |
| 3145 | q.text("%#x" % self.value) |
| 3146 | q.breakable() |
| 3147 | q.text('}') |
| 3148 | |
| 3149 | oxm.subtypes[2147498497] = icmpv6_type |
| 3150 | |
| 3151 | class icmpv6_type_masked(oxm): |
| 3152 | type_len = 2147498754 |
| 3153 | |
| 3154 | def __init__(self, value=None, value_mask=None): |
| 3155 | if value != None: |
| 3156 | self.value = value |
| 3157 | else: |
| 3158 | self.value = 0 |
| 3159 | if value_mask != None: |
| 3160 | self.value_mask = value_mask |
| 3161 | else: |
| 3162 | self.value_mask = 0 |
| 3163 | return |
| 3164 | |
| 3165 | def pack(self): |
| 3166 | packed = [] |
| 3167 | packed.append(struct.pack("!L", self.type_len)) |
| 3168 | packed.append(struct.pack("!B", self.value)) |
| 3169 | packed.append(struct.pack("!B", self.value_mask)) |
| 3170 | return ''.join(packed) |
| 3171 | |
| 3172 | @staticmethod |
| 3173 | def unpack(reader): |
| 3174 | obj = icmpv6_type_masked() |
| 3175 | _type_len = reader.read("!L")[0] |
| 3176 | assert(_type_len == 2147498754) |
| 3177 | obj.value = reader.read("!B")[0] |
| 3178 | obj.value_mask = reader.read("!B")[0] |
| 3179 | return obj |
| 3180 | |
| 3181 | def __eq__(self, other): |
| 3182 | if type(self) != type(other): return False |
| 3183 | if self.value != other.value: return False |
| 3184 | if self.value_mask != other.value_mask: return False |
| 3185 | return True |
| 3186 | |
| 3187 | def pretty_print(self, q): |
| 3188 | q.text("icmpv6_type_masked {") |
| 3189 | with q.group(): |
| 3190 | with q.indent(2): |
| 3191 | q.breakable() |
| 3192 | q.text("value = "); |
| 3193 | q.text("%#x" % self.value) |
| 3194 | q.text(","); q.breakable() |
| 3195 | q.text("value_mask = "); |
| 3196 | q.text("%#x" % self.value_mask) |
| 3197 | q.breakable() |
| 3198 | q.text('}') |
| 3199 | |
| 3200 | oxm.subtypes[2147498754] = icmpv6_type_masked |
| 3201 | |
| 3202 | class in_phy_port(oxm): |
| 3203 | type_len = 2147484164 |
| 3204 | |
| 3205 | def __init__(self, value=None): |
| 3206 | if value != None: |
| 3207 | self.value = value |
| 3208 | else: |
| 3209 | self.value = 0 |
| 3210 | return |
| 3211 | |
| 3212 | def pack(self): |
| 3213 | packed = [] |
| 3214 | packed.append(struct.pack("!L", self.type_len)) |
| 3215 | packed.append(util.pack_port_no(self.value)) |
| 3216 | return ''.join(packed) |
| 3217 | |
| 3218 | @staticmethod |
| 3219 | def unpack(reader): |
| 3220 | obj = in_phy_port() |
| 3221 | _type_len = reader.read("!L")[0] |
| 3222 | assert(_type_len == 2147484164) |
| 3223 | obj.value = util.unpack_port_no(reader) |
| 3224 | return obj |
| 3225 | |
| 3226 | def __eq__(self, other): |
| 3227 | if type(self) != type(other): return False |
| 3228 | if self.value != other.value: return False |
| 3229 | return True |
| 3230 | |
| 3231 | def pretty_print(self, q): |
| 3232 | q.text("in_phy_port {") |
| 3233 | with q.group(): |
| 3234 | with q.indent(2): |
| 3235 | q.breakable() |
| 3236 | q.text("value = "); |
| 3237 | q.text(util.pretty_port(self.value)) |
| 3238 | q.breakable() |
| 3239 | q.text('}') |
| 3240 | |
| 3241 | oxm.subtypes[2147484164] = in_phy_port |
| 3242 | |
| 3243 | class in_phy_port_masked(oxm): |
| 3244 | type_len = 2147484424 |
| 3245 | |
| 3246 | def __init__(self, value=None, value_mask=None): |
| 3247 | if value != None: |
| 3248 | self.value = value |
| 3249 | else: |
| 3250 | self.value = 0 |
| 3251 | if value_mask != None: |
| 3252 | self.value_mask = value_mask |
| 3253 | else: |
| 3254 | self.value_mask = 0 |
| 3255 | return |
| 3256 | |
| 3257 | def pack(self): |
| 3258 | packed = [] |
| 3259 | packed.append(struct.pack("!L", self.type_len)) |
| 3260 | packed.append(util.pack_port_no(self.value)) |
| 3261 | packed.append(util.pack_port_no(self.value_mask)) |
| 3262 | return ''.join(packed) |
| 3263 | |
| 3264 | @staticmethod |
| 3265 | def unpack(reader): |
| 3266 | obj = in_phy_port_masked() |
| 3267 | _type_len = reader.read("!L")[0] |
| 3268 | assert(_type_len == 2147484424) |
| 3269 | obj.value = util.unpack_port_no(reader) |
| 3270 | obj.value_mask = util.unpack_port_no(reader) |
| 3271 | return obj |
| 3272 | |
| 3273 | def __eq__(self, other): |
| 3274 | if type(self) != type(other): return False |
| 3275 | if self.value != other.value: return False |
| 3276 | if self.value_mask != other.value_mask: return False |
| 3277 | return True |
| 3278 | |
| 3279 | def pretty_print(self, q): |
| 3280 | q.text("in_phy_port_masked {") |
| 3281 | with q.group(): |
| 3282 | with q.indent(2): |
| 3283 | q.breakable() |
| 3284 | q.text("value = "); |
| 3285 | q.text(util.pretty_port(self.value)) |
| 3286 | q.text(","); q.breakable() |
| 3287 | q.text("value_mask = "); |
| 3288 | q.text(util.pretty_port(self.value_mask)) |
| 3289 | q.breakable() |
| 3290 | q.text('}') |
| 3291 | |
| 3292 | oxm.subtypes[2147484424] = in_phy_port_masked |
| 3293 | |
| 3294 | class in_port(oxm): |
| 3295 | type_len = 2147483652 |
| 3296 | |
| 3297 | def __init__(self, value=None): |
| 3298 | if value != None: |
| 3299 | self.value = value |
| 3300 | else: |
| 3301 | self.value = 0 |
| 3302 | return |
| 3303 | |
| 3304 | def pack(self): |
| 3305 | packed = [] |
| 3306 | packed.append(struct.pack("!L", self.type_len)) |
| 3307 | packed.append(util.pack_port_no(self.value)) |
| 3308 | return ''.join(packed) |
| 3309 | |
| 3310 | @staticmethod |
| 3311 | def unpack(reader): |
| 3312 | obj = in_port() |
| 3313 | _type_len = reader.read("!L")[0] |
| 3314 | assert(_type_len == 2147483652) |
| 3315 | obj.value = util.unpack_port_no(reader) |
| 3316 | return obj |
| 3317 | |
| 3318 | def __eq__(self, other): |
| 3319 | if type(self) != type(other): return False |
| 3320 | if self.value != other.value: return False |
| 3321 | return True |
| 3322 | |
| 3323 | def pretty_print(self, q): |
| 3324 | q.text("in_port {") |
| 3325 | with q.group(): |
| 3326 | with q.indent(2): |
| 3327 | q.breakable() |
| 3328 | q.text("value = "); |
| 3329 | q.text(util.pretty_port(self.value)) |
| 3330 | q.breakable() |
| 3331 | q.text('}') |
| 3332 | |
| 3333 | oxm.subtypes[2147483652] = in_port |
| 3334 | |
| 3335 | class in_port_masked(oxm): |
| 3336 | type_len = 2147483912 |
| 3337 | |
| 3338 | def __init__(self, value=None, value_mask=None): |
| 3339 | if value != None: |
| 3340 | self.value = value |
| 3341 | else: |
| 3342 | self.value = 0 |
| 3343 | if value_mask != None: |
| 3344 | self.value_mask = value_mask |
| 3345 | else: |
| 3346 | self.value_mask = 0 |
| 3347 | return |
| 3348 | |
| 3349 | def pack(self): |
| 3350 | packed = [] |
| 3351 | packed.append(struct.pack("!L", self.type_len)) |
| 3352 | packed.append(util.pack_port_no(self.value)) |
| 3353 | packed.append(util.pack_port_no(self.value_mask)) |
| 3354 | return ''.join(packed) |
| 3355 | |
| 3356 | @staticmethod |
| 3357 | def unpack(reader): |
| 3358 | obj = in_port_masked() |
| 3359 | _type_len = reader.read("!L")[0] |
| 3360 | assert(_type_len == 2147483912) |
| 3361 | obj.value = util.unpack_port_no(reader) |
| 3362 | obj.value_mask = util.unpack_port_no(reader) |
| 3363 | return obj |
| 3364 | |
| 3365 | def __eq__(self, other): |
| 3366 | if type(self) != type(other): return False |
| 3367 | if self.value != other.value: return False |
| 3368 | if self.value_mask != other.value_mask: return False |
| 3369 | return True |
| 3370 | |
| 3371 | def pretty_print(self, q): |
| 3372 | q.text("in_port_masked {") |
| 3373 | with q.group(): |
| 3374 | with q.indent(2): |
| 3375 | q.breakable() |
| 3376 | q.text("value = "); |
| 3377 | q.text(util.pretty_port(self.value)) |
| 3378 | q.text(","); q.breakable() |
| 3379 | q.text("value_mask = "); |
| 3380 | q.text(util.pretty_port(self.value_mask)) |
| 3381 | q.breakable() |
| 3382 | q.text('}') |
| 3383 | |
| 3384 | oxm.subtypes[2147483912] = in_port_masked |
| 3385 | |
| 3386 | class ip_dscp(oxm): |
| 3387 | type_len = 2147487745 |
| 3388 | |
| 3389 | def __init__(self, value=None): |
| 3390 | if value != None: |
| 3391 | self.value = value |
| 3392 | else: |
| 3393 | self.value = 0 |
| 3394 | return |
| 3395 | |
| 3396 | def pack(self): |
| 3397 | packed = [] |
| 3398 | packed.append(struct.pack("!L", self.type_len)) |
| 3399 | packed.append(struct.pack("!B", self.value)) |
| 3400 | return ''.join(packed) |
| 3401 | |
| 3402 | @staticmethod |
| 3403 | def unpack(reader): |
| 3404 | obj = ip_dscp() |
| 3405 | _type_len = reader.read("!L")[0] |
| 3406 | assert(_type_len == 2147487745) |
| 3407 | obj.value = reader.read("!B")[0] |
| 3408 | return obj |
| 3409 | |
| 3410 | def __eq__(self, other): |
| 3411 | if type(self) != type(other): return False |
| 3412 | if self.value != other.value: return False |
| 3413 | return True |
| 3414 | |
| 3415 | def pretty_print(self, q): |
| 3416 | q.text("ip_dscp {") |
| 3417 | with q.group(): |
| 3418 | with q.indent(2): |
| 3419 | q.breakable() |
| 3420 | q.text("value = "); |
| 3421 | q.text("%#x" % self.value) |
| 3422 | q.breakable() |
| 3423 | q.text('}') |
| 3424 | |
| 3425 | oxm.subtypes[2147487745] = ip_dscp |
| 3426 | |
| 3427 | class ip_dscp_masked(oxm): |
| 3428 | type_len = 2147488002 |
| 3429 | |
| 3430 | def __init__(self, value=None, value_mask=None): |
| 3431 | if value != None: |
| 3432 | self.value = value |
| 3433 | else: |
| 3434 | self.value = 0 |
| 3435 | if value_mask != None: |
| 3436 | self.value_mask = value_mask |
| 3437 | else: |
| 3438 | self.value_mask = 0 |
| 3439 | return |
| 3440 | |
| 3441 | def pack(self): |
| 3442 | packed = [] |
| 3443 | packed.append(struct.pack("!L", self.type_len)) |
| 3444 | packed.append(struct.pack("!B", self.value)) |
| 3445 | packed.append(struct.pack("!B", self.value_mask)) |
| 3446 | return ''.join(packed) |
| 3447 | |
| 3448 | @staticmethod |
| 3449 | def unpack(reader): |
| 3450 | obj = ip_dscp_masked() |
| 3451 | _type_len = reader.read("!L")[0] |
| 3452 | assert(_type_len == 2147488002) |
| 3453 | obj.value = reader.read("!B")[0] |
| 3454 | obj.value_mask = reader.read("!B")[0] |
| 3455 | return obj |
| 3456 | |
| 3457 | def __eq__(self, other): |
| 3458 | if type(self) != type(other): return False |
| 3459 | if self.value != other.value: return False |
| 3460 | if self.value_mask != other.value_mask: return False |
| 3461 | return True |
| 3462 | |
| 3463 | def pretty_print(self, q): |
| 3464 | q.text("ip_dscp_masked {") |
| 3465 | with q.group(): |
| 3466 | with q.indent(2): |
| 3467 | q.breakable() |
| 3468 | q.text("value = "); |
| 3469 | q.text("%#x" % self.value) |
| 3470 | q.text(","); q.breakable() |
| 3471 | q.text("value_mask = "); |
| 3472 | q.text("%#x" % self.value_mask) |
| 3473 | q.breakable() |
| 3474 | q.text('}') |
| 3475 | |
| 3476 | oxm.subtypes[2147488002] = ip_dscp_masked |
| 3477 | |
| 3478 | class ip_ecn(oxm): |
| 3479 | type_len = 2147488257 |
| 3480 | |
| 3481 | def __init__(self, value=None): |
| 3482 | if value != None: |
| 3483 | self.value = value |
| 3484 | else: |
| 3485 | self.value = 0 |
| 3486 | return |
| 3487 | |
| 3488 | def pack(self): |
| 3489 | packed = [] |
| 3490 | packed.append(struct.pack("!L", self.type_len)) |
| 3491 | packed.append(struct.pack("!B", self.value)) |
| 3492 | return ''.join(packed) |
| 3493 | |
| 3494 | @staticmethod |
| 3495 | def unpack(reader): |
| 3496 | obj = ip_ecn() |
| 3497 | _type_len = reader.read("!L")[0] |
| 3498 | assert(_type_len == 2147488257) |
| 3499 | obj.value = reader.read("!B")[0] |
| 3500 | return obj |
| 3501 | |
| 3502 | def __eq__(self, other): |
| 3503 | if type(self) != type(other): return False |
| 3504 | if self.value != other.value: return False |
| 3505 | return True |
| 3506 | |
| 3507 | def pretty_print(self, q): |
| 3508 | q.text("ip_ecn {") |
| 3509 | with q.group(): |
| 3510 | with q.indent(2): |
| 3511 | q.breakable() |
| 3512 | q.text("value = "); |
| 3513 | q.text("%#x" % self.value) |
| 3514 | q.breakable() |
| 3515 | q.text('}') |
| 3516 | |
| 3517 | oxm.subtypes[2147488257] = ip_ecn |
| 3518 | |
| 3519 | class ip_ecn_masked(oxm): |
| 3520 | type_len = 2147488514 |
| 3521 | |
| 3522 | def __init__(self, value=None, value_mask=None): |
| 3523 | if value != None: |
| 3524 | self.value = value |
| 3525 | else: |
| 3526 | self.value = 0 |
| 3527 | if value_mask != None: |
| 3528 | self.value_mask = value_mask |
| 3529 | else: |
| 3530 | self.value_mask = 0 |
| 3531 | return |
| 3532 | |
| 3533 | def pack(self): |
| 3534 | packed = [] |
| 3535 | packed.append(struct.pack("!L", self.type_len)) |
| 3536 | packed.append(struct.pack("!B", self.value)) |
| 3537 | packed.append(struct.pack("!B", self.value_mask)) |
| 3538 | return ''.join(packed) |
| 3539 | |
| 3540 | @staticmethod |
| 3541 | def unpack(reader): |
| 3542 | obj = ip_ecn_masked() |
| 3543 | _type_len = reader.read("!L")[0] |
| 3544 | assert(_type_len == 2147488514) |
| 3545 | obj.value = reader.read("!B")[0] |
| 3546 | obj.value_mask = reader.read("!B")[0] |
| 3547 | return obj |
| 3548 | |
| 3549 | def __eq__(self, other): |
| 3550 | if type(self) != type(other): return False |
| 3551 | if self.value != other.value: return False |
| 3552 | if self.value_mask != other.value_mask: return False |
| 3553 | return True |
| 3554 | |
| 3555 | def pretty_print(self, q): |
| 3556 | q.text("ip_ecn_masked {") |
| 3557 | with q.group(): |
| 3558 | with q.indent(2): |
| 3559 | q.breakable() |
| 3560 | q.text("value = "); |
| 3561 | q.text("%#x" % self.value) |
| 3562 | q.text(","); q.breakable() |
| 3563 | q.text("value_mask = "); |
| 3564 | q.text("%#x" % self.value_mask) |
| 3565 | q.breakable() |
| 3566 | q.text('}') |
| 3567 | |
| 3568 | oxm.subtypes[2147488514] = ip_ecn_masked |
| 3569 | |
| 3570 | class ip_proto(oxm): |
| 3571 | type_len = 2147488769 |
| 3572 | |
| 3573 | def __init__(self, value=None): |
| 3574 | if value != None: |
| 3575 | self.value = value |
| 3576 | else: |
| 3577 | self.value = 0 |
| 3578 | return |
| 3579 | |
| 3580 | def pack(self): |
| 3581 | packed = [] |
| 3582 | packed.append(struct.pack("!L", self.type_len)) |
| 3583 | packed.append(struct.pack("!B", self.value)) |
| 3584 | return ''.join(packed) |
| 3585 | |
| 3586 | @staticmethod |
| 3587 | def unpack(reader): |
| 3588 | obj = ip_proto() |
| 3589 | _type_len = reader.read("!L")[0] |
| 3590 | assert(_type_len == 2147488769) |
| 3591 | obj.value = reader.read("!B")[0] |
| 3592 | return obj |
| 3593 | |
| 3594 | def __eq__(self, other): |
| 3595 | if type(self) != type(other): return False |
| 3596 | if self.value != other.value: return False |
| 3597 | return True |
| 3598 | |
| 3599 | def pretty_print(self, q): |
| 3600 | q.text("ip_proto {") |
| 3601 | with q.group(): |
| 3602 | with q.indent(2): |
| 3603 | q.breakable() |
| 3604 | q.text("value = "); |
| 3605 | q.text("%#x" % self.value) |
| 3606 | q.breakable() |
| 3607 | q.text('}') |
| 3608 | |
| 3609 | oxm.subtypes[2147488769] = ip_proto |
| 3610 | |
| 3611 | class ip_proto_masked(oxm): |
| 3612 | type_len = 2147489026 |
| 3613 | |
| 3614 | def __init__(self, value=None, value_mask=None): |
| 3615 | if value != None: |
| 3616 | self.value = value |
| 3617 | else: |
| 3618 | self.value = 0 |
| 3619 | if value_mask != None: |
| 3620 | self.value_mask = value_mask |
| 3621 | else: |
| 3622 | self.value_mask = 0 |
| 3623 | return |
| 3624 | |
| 3625 | def pack(self): |
| 3626 | packed = [] |
| 3627 | packed.append(struct.pack("!L", self.type_len)) |
| 3628 | packed.append(struct.pack("!B", self.value)) |
| 3629 | packed.append(struct.pack("!B", self.value_mask)) |
| 3630 | return ''.join(packed) |
| 3631 | |
| 3632 | @staticmethod |
| 3633 | def unpack(reader): |
| 3634 | obj = ip_proto_masked() |
| 3635 | _type_len = reader.read("!L")[0] |
| 3636 | assert(_type_len == 2147489026) |
| 3637 | obj.value = reader.read("!B")[0] |
| 3638 | obj.value_mask = reader.read("!B")[0] |
| 3639 | return obj |
| 3640 | |
| 3641 | def __eq__(self, other): |
| 3642 | if type(self) != type(other): return False |
| 3643 | if self.value != other.value: return False |
| 3644 | if self.value_mask != other.value_mask: return False |
| 3645 | return True |
| 3646 | |
| 3647 | def pretty_print(self, q): |
| 3648 | q.text("ip_proto_masked {") |
| 3649 | with q.group(): |
| 3650 | with q.indent(2): |
| 3651 | q.breakable() |
| 3652 | q.text("value = "); |
| 3653 | q.text("%#x" % self.value) |
| 3654 | q.text(","); q.breakable() |
| 3655 | q.text("value_mask = "); |
| 3656 | q.text("%#x" % self.value_mask) |
| 3657 | q.breakable() |
| 3658 | q.text('}') |
| 3659 | |
| 3660 | oxm.subtypes[2147489026] = ip_proto_masked |
| 3661 | |
| 3662 | class ipv4_dst(oxm): |
| 3663 | type_len = 2147489796 |
| 3664 | |
| 3665 | def __init__(self, value=None): |
| 3666 | if value != None: |
| 3667 | self.value = value |
| 3668 | else: |
| 3669 | self.value = 0 |
| 3670 | return |
| 3671 | |
| 3672 | def pack(self): |
| 3673 | packed = [] |
| 3674 | packed.append(struct.pack("!L", self.type_len)) |
| 3675 | packed.append(struct.pack("!L", self.value)) |
| 3676 | return ''.join(packed) |
| 3677 | |
| 3678 | @staticmethod |
| 3679 | def unpack(reader): |
| 3680 | obj = ipv4_dst() |
| 3681 | _type_len = reader.read("!L")[0] |
| 3682 | assert(_type_len == 2147489796) |
| 3683 | obj.value = reader.read("!L")[0] |
| 3684 | return obj |
| 3685 | |
| 3686 | def __eq__(self, other): |
| 3687 | if type(self) != type(other): return False |
| 3688 | if self.value != other.value: return False |
| 3689 | return True |
| 3690 | |
| 3691 | def pretty_print(self, q): |
| 3692 | q.text("ipv4_dst {") |
| 3693 | with q.group(): |
| 3694 | with q.indent(2): |
| 3695 | q.breakable() |
| 3696 | q.text("value = "); |
| 3697 | q.text(util.pretty_ipv4(self.value)) |
| 3698 | q.breakable() |
| 3699 | q.text('}') |
| 3700 | |
| 3701 | oxm.subtypes[2147489796] = ipv4_dst |
| 3702 | |
| 3703 | class ipv4_dst_masked(oxm): |
| 3704 | type_len = 2147490056 |
| 3705 | |
| 3706 | def __init__(self, value=None, value_mask=None): |
| 3707 | if value != None: |
| 3708 | self.value = value |
| 3709 | else: |
| 3710 | self.value = 0 |
| 3711 | if value_mask != None: |
| 3712 | self.value_mask = value_mask |
| 3713 | else: |
| 3714 | self.value_mask = 0 |
| 3715 | return |
| 3716 | |
| 3717 | def pack(self): |
| 3718 | packed = [] |
| 3719 | packed.append(struct.pack("!L", self.type_len)) |
| 3720 | packed.append(struct.pack("!L", self.value)) |
| 3721 | packed.append(struct.pack("!L", self.value_mask)) |
| 3722 | return ''.join(packed) |
| 3723 | |
| 3724 | @staticmethod |
| 3725 | def unpack(reader): |
| 3726 | obj = ipv4_dst_masked() |
| 3727 | _type_len = reader.read("!L")[0] |
| 3728 | assert(_type_len == 2147490056) |
| 3729 | obj.value = reader.read("!L")[0] |
| 3730 | obj.value_mask = reader.read("!L")[0] |
| 3731 | return obj |
| 3732 | |
| 3733 | def __eq__(self, other): |
| 3734 | if type(self) != type(other): return False |
| 3735 | if self.value != other.value: return False |
| 3736 | if self.value_mask != other.value_mask: return False |
| 3737 | return True |
| 3738 | |
| 3739 | def pretty_print(self, q): |
| 3740 | q.text("ipv4_dst_masked {") |
| 3741 | with q.group(): |
| 3742 | with q.indent(2): |
| 3743 | q.breakable() |
| 3744 | q.text("value = "); |
| 3745 | q.text(util.pretty_ipv4(self.value)) |
| 3746 | q.text(","); q.breakable() |
| 3747 | q.text("value_mask = "); |
| 3748 | q.text(util.pretty_ipv4(self.value_mask)) |
| 3749 | q.breakable() |
| 3750 | q.text('}') |
| 3751 | |
| 3752 | oxm.subtypes[2147490056] = ipv4_dst_masked |
| 3753 | |
| 3754 | class ipv4_src(oxm): |
| 3755 | type_len = 2147489284 |
| 3756 | |
| 3757 | def __init__(self, value=None): |
| 3758 | if value != None: |
| 3759 | self.value = value |
| 3760 | else: |
| 3761 | self.value = 0 |
| 3762 | return |
| 3763 | |
| 3764 | def pack(self): |
| 3765 | packed = [] |
| 3766 | packed.append(struct.pack("!L", self.type_len)) |
| 3767 | packed.append(struct.pack("!L", self.value)) |
| 3768 | return ''.join(packed) |
| 3769 | |
| 3770 | @staticmethod |
| 3771 | def unpack(reader): |
| 3772 | obj = ipv4_src() |
| 3773 | _type_len = reader.read("!L")[0] |
| 3774 | assert(_type_len == 2147489284) |
| 3775 | obj.value = reader.read("!L")[0] |
| 3776 | return obj |
| 3777 | |
| 3778 | def __eq__(self, other): |
| 3779 | if type(self) != type(other): return False |
| 3780 | if self.value != other.value: return False |
| 3781 | return True |
| 3782 | |
| 3783 | def pretty_print(self, q): |
| 3784 | q.text("ipv4_src {") |
| 3785 | with q.group(): |
| 3786 | with q.indent(2): |
| 3787 | q.breakable() |
| 3788 | q.text("value = "); |
| 3789 | q.text(util.pretty_ipv4(self.value)) |
| 3790 | q.breakable() |
| 3791 | q.text('}') |
| 3792 | |
| 3793 | oxm.subtypes[2147489284] = ipv4_src |
| 3794 | |
| 3795 | class ipv4_src_masked(oxm): |
| 3796 | type_len = 2147489544 |
| 3797 | |
| 3798 | def __init__(self, value=None, value_mask=None): |
| 3799 | if value != None: |
| 3800 | self.value = value |
| 3801 | else: |
| 3802 | self.value = 0 |
| 3803 | if value_mask != None: |
| 3804 | self.value_mask = value_mask |
| 3805 | else: |
| 3806 | self.value_mask = 0 |
| 3807 | return |
| 3808 | |
| 3809 | def pack(self): |
| 3810 | packed = [] |
| 3811 | packed.append(struct.pack("!L", self.type_len)) |
| 3812 | packed.append(struct.pack("!L", self.value)) |
| 3813 | packed.append(struct.pack("!L", self.value_mask)) |
| 3814 | return ''.join(packed) |
| 3815 | |
| 3816 | @staticmethod |
| 3817 | def unpack(reader): |
| 3818 | obj = ipv4_src_masked() |
| 3819 | _type_len = reader.read("!L")[0] |
| 3820 | assert(_type_len == 2147489544) |
| 3821 | obj.value = reader.read("!L")[0] |
| 3822 | obj.value_mask = reader.read("!L")[0] |
| 3823 | return obj |
| 3824 | |
| 3825 | def __eq__(self, other): |
| 3826 | if type(self) != type(other): return False |
| 3827 | if self.value != other.value: return False |
| 3828 | if self.value_mask != other.value_mask: return False |
| 3829 | return True |
| 3830 | |
| 3831 | def pretty_print(self, q): |
| 3832 | q.text("ipv4_src_masked {") |
| 3833 | with q.group(): |
| 3834 | with q.indent(2): |
| 3835 | q.breakable() |
| 3836 | q.text("value = "); |
| 3837 | q.text(util.pretty_ipv4(self.value)) |
| 3838 | q.text(","); q.breakable() |
| 3839 | q.text("value_mask = "); |
| 3840 | q.text(util.pretty_ipv4(self.value_mask)) |
| 3841 | q.breakable() |
| 3842 | q.text('}') |
| 3843 | |
| 3844 | oxm.subtypes[2147489544] = ipv4_src_masked |
| 3845 | |
| 3846 | class ipv6_dst(oxm): |
| 3847 | type_len = 2147497488 |
| 3848 | |
| 3849 | def __init__(self, value=None): |
| 3850 | if value != None: |
| 3851 | self.value = value |
| 3852 | else: |
| 3853 | self.value = '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' |
| 3854 | return |
| 3855 | |
| 3856 | def pack(self): |
| 3857 | packed = [] |
| 3858 | packed.append(struct.pack("!L", self.type_len)) |
| 3859 | packed.append(struct.pack("!16s", self.value)) |
| 3860 | return ''.join(packed) |
| 3861 | |
| 3862 | @staticmethod |
| 3863 | def unpack(reader): |
| 3864 | obj = ipv6_dst() |
| 3865 | _type_len = reader.read("!L")[0] |
| 3866 | assert(_type_len == 2147497488) |
| 3867 | obj.value = reader.read('!16s')[0] |
| 3868 | return obj |
| 3869 | |
| 3870 | def __eq__(self, other): |
| 3871 | if type(self) != type(other): return False |
| 3872 | if self.value != other.value: return False |
| 3873 | return True |
| 3874 | |
| 3875 | def pretty_print(self, q): |
| 3876 | q.text("ipv6_dst {") |
| 3877 | with q.group(): |
| 3878 | with q.indent(2): |
| 3879 | q.breakable() |
| 3880 | q.text("value = "); |
| 3881 | q.pp(self.value) |
| 3882 | q.breakable() |
| 3883 | q.text('}') |
| 3884 | |
| 3885 | oxm.subtypes[2147497488] = ipv6_dst |
| 3886 | |
| 3887 | class ipv6_dst_masked(oxm): |
| 3888 | type_len = 2147497760 |
| 3889 | |
| 3890 | def __init__(self, value=None, value_mask=None): |
| 3891 | if value != None: |
| 3892 | self.value = value |
| 3893 | else: |
| 3894 | self.value = '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' |
| 3895 | if value_mask != None: |
| 3896 | self.value_mask = value_mask |
| 3897 | else: |
| 3898 | self.value_mask = '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' |
| 3899 | return |
| 3900 | |
| 3901 | def pack(self): |
| 3902 | packed = [] |
| 3903 | packed.append(struct.pack("!L", self.type_len)) |
| 3904 | packed.append(struct.pack("!16s", self.value)) |
| 3905 | packed.append(struct.pack("!16s", self.value_mask)) |
| 3906 | return ''.join(packed) |
| 3907 | |
| 3908 | @staticmethod |
| 3909 | def unpack(reader): |
| 3910 | obj = ipv6_dst_masked() |
| 3911 | _type_len = reader.read("!L")[0] |
| 3912 | assert(_type_len == 2147497760) |
| 3913 | obj.value = reader.read('!16s')[0] |
| 3914 | obj.value_mask = reader.read('!16s')[0] |
| 3915 | return obj |
| 3916 | |
| 3917 | def __eq__(self, other): |
| 3918 | if type(self) != type(other): return False |
| 3919 | if self.value != other.value: return False |
| 3920 | if self.value_mask != other.value_mask: return False |
| 3921 | return True |
| 3922 | |
| 3923 | def pretty_print(self, q): |
| 3924 | q.text("ipv6_dst_masked {") |
| 3925 | with q.group(): |
| 3926 | with q.indent(2): |
| 3927 | q.breakable() |
| 3928 | q.text("value = "); |
| 3929 | q.pp(self.value) |
| 3930 | q.text(","); q.breakable() |
| 3931 | q.text("value_mask = "); |
| 3932 | q.pp(self.value_mask) |
| 3933 | q.breakable() |
| 3934 | q.text('}') |
| 3935 | |
| 3936 | oxm.subtypes[2147497760] = ipv6_dst_masked |
| 3937 | |
Rich Lane | ccd32ed | 2014-11-10 17:48:24 -0800 | [diff] [blame] | 3938 | class ipv6_exthdr(oxm): |
| 3939 | type_len = 2147503618 |
| 3940 | |
| 3941 | def __init__(self, value=None): |
| 3942 | if value != None: |
| 3943 | self.value = value |
| 3944 | else: |
| 3945 | self.value = 0 |
| 3946 | return |
| 3947 | |
| 3948 | def pack(self): |
| 3949 | packed = [] |
| 3950 | packed.append(struct.pack("!L", self.type_len)) |
| 3951 | packed.append(struct.pack("!H", self.value)) |
| 3952 | return ''.join(packed) |
| 3953 | |
| 3954 | @staticmethod |
| 3955 | def unpack(reader): |
| 3956 | obj = ipv6_exthdr() |
| 3957 | _type_len = reader.read("!L")[0] |
| 3958 | assert(_type_len == 2147503618) |
| 3959 | obj.value = reader.read("!H")[0] |
| 3960 | return obj |
| 3961 | |
| 3962 | def __eq__(self, other): |
| 3963 | if type(self) != type(other): return False |
| 3964 | if self.value != other.value: return False |
| 3965 | return True |
| 3966 | |
| 3967 | def pretty_print(self, q): |
| 3968 | q.text("ipv6_exthdr {") |
| 3969 | with q.group(): |
| 3970 | with q.indent(2): |
| 3971 | q.breakable() |
| 3972 | q.text("value = "); |
| 3973 | q.text("%#x" % self.value) |
| 3974 | q.breakable() |
| 3975 | q.text('}') |
| 3976 | |
| 3977 | oxm.subtypes[2147503618] = ipv6_exthdr |
| 3978 | |
| 3979 | class ipv6_exthdr_masked(oxm): |
| 3980 | type_len = 2147503876 |
| 3981 | |
| 3982 | def __init__(self, value=None, value_mask=None): |
| 3983 | if value != None: |
| 3984 | self.value = value |
| 3985 | else: |
| 3986 | self.value = 0 |
| 3987 | if value_mask != None: |
| 3988 | self.value_mask = value_mask |
| 3989 | else: |
| 3990 | self.value_mask = 0 |
| 3991 | return |
| 3992 | |
| 3993 | def pack(self): |
| 3994 | packed = [] |
| 3995 | packed.append(struct.pack("!L", self.type_len)) |
| 3996 | packed.append(struct.pack("!H", self.value)) |
| 3997 | packed.append(struct.pack("!H", self.value_mask)) |
| 3998 | return ''.join(packed) |
| 3999 | |
| 4000 | @staticmethod |
| 4001 | def unpack(reader): |
| 4002 | obj = ipv6_exthdr_masked() |
| 4003 | _type_len = reader.read("!L")[0] |
| 4004 | assert(_type_len == 2147503876) |
| 4005 | obj.value = reader.read("!H")[0] |
| 4006 | obj.value_mask = reader.read("!H")[0] |
| 4007 | return obj |
| 4008 | |
| 4009 | def __eq__(self, other): |
| 4010 | if type(self) != type(other): return False |
| 4011 | if self.value != other.value: return False |
| 4012 | if self.value_mask != other.value_mask: return False |
| 4013 | return True |
| 4014 | |
| 4015 | def pretty_print(self, q): |
| 4016 | q.text("ipv6_exthdr_masked {") |
| 4017 | with q.group(): |
| 4018 | with q.indent(2): |
| 4019 | q.breakable() |
| 4020 | q.text("value = "); |
| 4021 | q.text("%#x" % self.value) |
| 4022 | q.text(","); q.breakable() |
| 4023 | q.text("value_mask = "); |
| 4024 | q.text("%#x" % self.value_mask) |
| 4025 | q.breakable() |
| 4026 | q.text('}') |
| 4027 | |
| 4028 | oxm.subtypes[2147503876] = ipv6_exthdr_masked |
| 4029 | |
Rich Lane | 2e079da | 2014-10-29 15:30:24 -0700 | [diff] [blame] | 4030 | class ipv6_flabel(oxm): |
| 4031 | type_len = 2147497988 |
| 4032 | |
| 4033 | def __init__(self, value=None): |
| 4034 | if value != None: |
| 4035 | self.value = value |
| 4036 | else: |
| 4037 | self.value = 0 |
| 4038 | return |
| 4039 | |
| 4040 | def pack(self): |
| 4041 | packed = [] |
| 4042 | packed.append(struct.pack("!L", self.type_len)) |
| 4043 | packed.append(struct.pack("!L", self.value)) |
| 4044 | return ''.join(packed) |
| 4045 | |
| 4046 | @staticmethod |
| 4047 | def unpack(reader): |
| 4048 | obj = ipv6_flabel() |
| 4049 | _type_len = reader.read("!L")[0] |
| 4050 | assert(_type_len == 2147497988) |
| 4051 | obj.value = reader.read("!L")[0] |
| 4052 | return obj |
| 4053 | |
| 4054 | def __eq__(self, other): |
| 4055 | if type(self) != type(other): return False |
| 4056 | if self.value != other.value: return False |
| 4057 | return True |
| 4058 | |
| 4059 | def pretty_print(self, q): |
| 4060 | q.text("ipv6_flabel {") |
| 4061 | with q.group(): |
| 4062 | with q.indent(2): |
| 4063 | q.breakable() |
| 4064 | q.text("value = "); |
| 4065 | q.text("%#x" % self.value) |
| 4066 | q.breakable() |
| 4067 | q.text('}') |
| 4068 | |
| 4069 | oxm.subtypes[2147497988] = ipv6_flabel |
| 4070 | |
| 4071 | class ipv6_flabel_masked(oxm): |
| 4072 | type_len = 2147498248 |
| 4073 | |
| 4074 | def __init__(self, value=None, value_mask=None): |
| 4075 | if value != None: |
| 4076 | self.value = value |
| 4077 | else: |
| 4078 | self.value = 0 |
| 4079 | if value_mask != None: |
| 4080 | self.value_mask = value_mask |
| 4081 | else: |
| 4082 | self.value_mask = 0 |
| 4083 | return |
| 4084 | |
| 4085 | def pack(self): |
| 4086 | packed = [] |
| 4087 | packed.append(struct.pack("!L", self.type_len)) |
| 4088 | packed.append(struct.pack("!L", self.value)) |
| 4089 | packed.append(struct.pack("!L", self.value_mask)) |
| 4090 | return ''.join(packed) |
| 4091 | |
| 4092 | @staticmethod |
| 4093 | def unpack(reader): |
| 4094 | obj = ipv6_flabel_masked() |
| 4095 | _type_len = reader.read("!L")[0] |
| 4096 | assert(_type_len == 2147498248) |
| 4097 | obj.value = reader.read("!L")[0] |
| 4098 | obj.value_mask = reader.read("!L")[0] |
| 4099 | return obj |
| 4100 | |
| 4101 | def __eq__(self, other): |
| 4102 | if type(self) != type(other): return False |
| 4103 | if self.value != other.value: return False |
| 4104 | if self.value_mask != other.value_mask: return False |
| 4105 | return True |
| 4106 | |
| 4107 | def pretty_print(self, q): |
| 4108 | q.text("ipv6_flabel_masked {") |
| 4109 | with q.group(): |
| 4110 | with q.indent(2): |
| 4111 | q.breakable() |
| 4112 | q.text("value = "); |
| 4113 | q.text("%#x" % self.value) |
| 4114 | q.text(","); q.breakable() |
| 4115 | q.text("value_mask = "); |
| 4116 | q.text("%#x" % self.value_mask) |
| 4117 | q.breakable() |
| 4118 | q.text('}') |
| 4119 | |
| 4120 | oxm.subtypes[2147498248] = ipv6_flabel_masked |
| 4121 | |
| 4122 | class ipv6_nd_sll(oxm): |
| 4123 | type_len = 2147500038 |
| 4124 | |
| 4125 | def __init__(self, value=None): |
| 4126 | if value != None: |
| 4127 | self.value = value |
| 4128 | else: |
| 4129 | self.value = [0,0,0,0,0,0] |
| 4130 | return |
| 4131 | |
| 4132 | def pack(self): |
| 4133 | packed = [] |
| 4134 | packed.append(struct.pack("!L", self.type_len)) |
| 4135 | packed.append(struct.pack("!6B", *self.value)) |
| 4136 | return ''.join(packed) |
| 4137 | |
| 4138 | @staticmethod |
| 4139 | def unpack(reader): |
| 4140 | obj = ipv6_nd_sll() |
| 4141 | _type_len = reader.read("!L")[0] |
| 4142 | assert(_type_len == 2147500038) |
| 4143 | obj.value = list(reader.read('!6B')) |
| 4144 | return obj |
| 4145 | |
| 4146 | def __eq__(self, other): |
| 4147 | if type(self) != type(other): return False |
| 4148 | if self.value != other.value: return False |
| 4149 | return True |
| 4150 | |
| 4151 | def pretty_print(self, q): |
| 4152 | q.text("ipv6_nd_sll {") |
| 4153 | with q.group(): |
| 4154 | with q.indent(2): |
| 4155 | q.breakable() |
| 4156 | q.text("value = "); |
| 4157 | q.text(util.pretty_mac(self.value)) |
| 4158 | q.breakable() |
| 4159 | q.text('}') |
| 4160 | |
| 4161 | oxm.subtypes[2147500038] = ipv6_nd_sll |
| 4162 | |
| 4163 | class ipv6_nd_sll_masked(oxm): |
| 4164 | type_len = 2147500300 |
| 4165 | |
| 4166 | def __init__(self, value=None, value_mask=None): |
| 4167 | if value != None: |
| 4168 | self.value = value |
| 4169 | else: |
| 4170 | self.value = [0,0,0,0,0,0] |
| 4171 | if value_mask != None: |
| 4172 | self.value_mask = value_mask |
| 4173 | else: |
| 4174 | self.value_mask = [0,0,0,0,0,0] |
| 4175 | return |
| 4176 | |
| 4177 | def pack(self): |
| 4178 | packed = [] |
| 4179 | packed.append(struct.pack("!L", self.type_len)) |
| 4180 | packed.append(struct.pack("!6B", *self.value)) |
| 4181 | packed.append(struct.pack("!6B", *self.value_mask)) |
| 4182 | return ''.join(packed) |
| 4183 | |
| 4184 | @staticmethod |
| 4185 | def unpack(reader): |
| 4186 | obj = ipv6_nd_sll_masked() |
| 4187 | _type_len = reader.read("!L")[0] |
| 4188 | assert(_type_len == 2147500300) |
| 4189 | obj.value = list(reader.read('!6B')) |
| 4190 | obj.value_mask = list(reader.read('!6B')) |
| 4191 | return obj |
| 4192 | |
| 4193 | def __eq__(self, other): |
| 4194 | if type(self) != type(other): return False |
| 4195 | if self.value != other.value: return False |
| 4196 | if self.value_mask != other.value_mask: return False |
| 4197 | return True |
| 4198 | |
| 4199 | def pretty_print(self, q): |
| 4200 | q.text("ipv6_nd_sll_masked {") |
| 4201 | with q.group(): |
| 4202 | with q.indent(2): |
| 4203 | q.breakable() |
| 4204 | q.text("value = "); |
| 4205 | q.text(util.pretty_mac(self.value)) |
| 4206 | q.text(","); q.breakable() |
| 4207 | q.text("value_mask = "); |
| 4208 | q.text(util.pretty_mac(self.value_mask)) |
| 4209 | q.breakable() |
| 4210 | q.text('}') |
| 4211 | |
| 4212 | oxm.subtypes[2147500300] = ipv6_nd_sll_masked |
| 4213 | |
| 4214 | class ipv6_nd_target(oxm): |
| 4215 | type_len = 2147499536 |
| 4216 | |
| 4217 | def __init__(self, value=None): |
| 4218 | if value != None: |
| 4219 | self.value = value |
| 4220 | else: |
| 4221 | self.value = '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' |
| 4222 | return |
| 4223 | |
| 4224 | def pack(self): |
| 4225 | packed = [] |
| 4226 | packed.append(struct.pack("!L", self.type_len)) |
| 4227 | packed.append(struct.pack("!16s", self.value)) |
| 4228 | return ''.join(packed) |
| 4229 | |
| 4230 | @staticmethod |
| 4231 | def unpack(reader): |
| 4232 | obj = ipv6_nd_target() |
| 4233 | _type_len = reader.read("!L")[0] |
| 4234 | assert(_type_len == 2147499536) |
| 4235 | obj.value = reader.read('!16s')[0] |
| 4236 | return obj |
| 4237 | |
| 4238 | def __eq__(self, other): |
| 4239 | if type(self) != type(other): return False |
| 4240 | if self.value != other.value: return False |
| 4241 | return True |
| 4242 | |
| 4243 | def pretty_print(self, q): |
| 4244 | q.text("ipv6_nd_target {") |
| 4245 | with q.group(): |
| 4246 | with q.indent(2): |
| 4247 | q.breakable() |
| 4248 | q.text("value = "); |
| 4249 | q.pp(self.value) |
| 4250 | q.breakable() |
| 4251 | q.text('}') |
| 4252 | |
| 4253 | oxm.subtypes[2147499536] = ipv6_nd_target |
| 4254 | |
| 4255 | class ipv6_nd_target_masked(oxm): |
| 4256 | type_len = 2147499808 |
| 4257 | |
| 4258 | def __init__(self, value=None, value_mask=None): |
| 4259 | if value != None: |
| 4260 | self.value = value |
| 4261 | else: |
| 4262 | self.value = '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' |
| 4263 | if value_mask != None: |
| 4264 | self.value_mask = value_mask |
| 4265 | else: |
| 4266 | self.value_mask = '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' |
| 4267 | return |
| 4268 | |
| 4269 | def pack(self): |
| 4270 | packed = [] |
| 4271 | packed.append(struct.pack("!L", self.type_len)) |
| 4272 | packed.append(struct.pack("!16s", self.value)) |
| 4273 | packed.append(struct.pack("!16s", self.value_mask)) |
| 4274 | return ''.join(packed) |
| 4275 | |
| 4276 | @staticmethod |
| 4277 | def unpack(reader): |
| 4278 | obj = ipv6_nd_target_masked() |
| 4279 | _type_len = reader.read("!L")[0] |
| 4280 | assert(_type_len == 2147499808) |
| 4281 | obj.value = reader.read('!16s')[0] |
| 4282 | obj.value_mask = reader.read('!16s')[0] |
| 4283 | return obj |
| 4284 | |
| 4285 | def __eq__(self, other): |
| 4286 | if type(self) != type(other): return False |
| 4287 | if self.value != other.value: return False |
| 4288 | if self.value_mask != other.value_mask: return False |
| 4289 | return True |
| 4290 | |
| 4291 | def pretty_print(self, q): |
| 4292 | q.text("ipv6_nd_target_masked {") |
| 4293 | with q.group(): |
| 4294 | with q.indent(2): |
| 4295 | q.breakable() |
| 4296 | q.text("value = "); |
| 4297 | q.pp(self.value) |
| 4298 | q.text(","); q.breakable() |
| 4299 | q.text("value_mask = "); |
| 4300 | q.pp(self.value_mask) |
| 4301 | q.breakable() |
| 4302 | q.text('}') |
| 4303 | |
| 4304 | oxm.subtypes[2147499808] = ipv6_nd_target_masked |
| 4305 | |
| 4306 | class ipv6_nd_tll(oxm): |
| 4307 | type_len = 2147500550 |
| 4308 | |
| 4309 | def __init__(self, value=None): |
| 4310 | if value != None: |
| 4311 | self.value = value |
| 4312 | else: |
| 4313 | self.value = [0,0,0,0,0,0] |
| 4314 | return |
| 4315 | |
| 4316 | def pack(self): |
| 4317 | packed = [] |
| 4318 | packed.append(struct.pack("!L", self.type_len)) |
| 4319 | packed.append(struct.pack("!6B", *self.value)) |
| 4320 | return ''.join(packed) |
| 4321 | |
| 4322 | @staticmethod |
| 4323 | def unpack(reader): |
| 4324 | obj = ipv6_nd_tll() |
| 4325 | _type_len = reader.read("!L")[0] |
| 4326 | assert(_type_len == 2147500550) |
| 4327 | obj.value = list(reader.read('!6B')) |
| 4328 | return obj |
| 4329 | |
| 4330 | def __eq__(self, other): |
| 4331 | if type(self) != type(other): return False |
| 4332 | if self.value != other.value: return False |
| 4333 | return True |
| 4334 | |
| 4335 | def pretty_print(self, q): |
| 4336 | q.text("ipv6_nd_tll {") |
| 4337 | with q.group(): |
| 4338 | with q.indent(2): |
| 4339 | q.breakable() |
| 4340 | q.text("value = "); |
| 4341 | q.text(util.pretty_mac(self.value)) |
| 4342 | q.breakable() |
| 4343 | q.text('}') |
| 4344 | |
| 4345 | oxm.subtypes[2147500550] = ipv6_nd_tll |
| 4346 | |
| 4347 | class ipv6_nd_tll_masked(oxm): |
| 4348 | type_len = 2147500812 |
| 4349 | |
| 4350 | def __init__(self, value=None, value_mask=None): |
| 4351 | if value != None: |
| 4352 | self.value = value |
| 4353 | else: |
| 4354 | self.value = [0,0,0,0,0,0] |
| 4355 | if value_mask != None: |
| 4356 | self.value_mask = value_mask |
| 4357 | else: |
| 4358 | self.value_mask = [0,0,0,0,0,0] |
| 4359 | return |
| 4360 | |
| 4361 | def pack(self): |
| 4362 | packed = [] |
| 4363 | packed.append(struct.pack("!L", self.type_len)) |
| 4364 | packed.append(struct.pack("!6B", *self.value)) |
| 4365 | packed.append(struct.pack("!6B", *self.value_mask)) |
| 4366 | return ''.join(packed) |
| 4367 | |
| 4368 | @staticmethod |
| 4369 | def unpack(reader): |
| 4370 | obj = ipv6_nd_tll_masked() |
| 4371 | _type_len = reader.read("!L")[0] |
| 4372 | assert(_type_len == 2147500812) |
| 4373 | obj.value = list(reader.read('!6B')) |
| 4374 | obj.value_mask = list(reader.read('!6B')) |
| 4375 | return obj |
| 4376 | |
| 4377 | def __eq__(self, other): |
| 4378 | if type(self) != type(other): return False |
| 4379 | if self.value != other.value: return False |
| 4380 | if self.value_mask != other.value_mask: return False |
| 4381 | return True |
| 4382 | |
| 4383 | def pretty_print(self, q): |
| 4384 | q.text("ipv6_nd_tll_masked {") |
| 4385 | with q.group(): |
| 4386 | with q.indent(2): |
| 4387 | q.breakable() |
| 4388 | q.text("value = "); |
| 4389 | q.text(util.pretty_mac(self.value)) |
| 4390 | q.text(","); q.breakable() |
| 4391 | q.text("value_mask = "); |
| 4392 | q.text(util.pretty_mac(self.value_mask)) |
| 4393 | q.breakable() |
| 4394 | q.text('}') |
| 4395 | |
| 4396 | oxm.subtypes[2147500812] = ipv6_nd_tll_masked |
| 4397 | |
| 4398 | class ipv6_src(oxm): |
| 4399 | type_len = 2147496976 |
| 4400 | |
| 4401 | def __init__(self, value=None): |
| 4402 | if value != None: |
| 4403 | self.value = value |
| 4404 | else: |
| 4405 | self.value = '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' |
| 4406 | return |
| 4407 | |
| 4408 | def pack(self): |
| 4409 | packed = [] |
| 4410 | packed.append(struct.pack("!L", self.type_len)) |
| 4411 | packed.append(struct.pack("!16s", self.value)) |
| 4412 | return ''.join(packed) |
| 4413 | |
| 4414 | @staticmethod |
| 4415 | def unpack(reader): |
| 4416 | obj = ipv6_src() |
| 4417 | _type_len = reader.read("!L")[0] |
| 4418 | assert(_type_len == 2147496976) |
| 4419 | obj.value = reader.read('!16s')[0] |
| 4420 | return obj |
| 4421 | |
| 4422 | def __eq__(self, other): |
| 4423 | if type(self) != type(other): return False |
| 4424 | if self.value != other.value: return False |
| 4425 | return True |
| 4426 | |
| 4427 | def pretty_print(self, q): |
| 4428 | q.text("ipv6_src {") |
| 4429 | with q.group(): |
| 4430 | with q.indent(2): |
| 4431 | q.breakable() |
| 4432 | q.text("value = "); |
| 4433 | q.pp(self.value) |
| 4434 | q.breakable() |
| 4435 | q.text('}') |
| 4436 | |
| 4437 | oxm.subtypes[2147496976] = ipv6_src |
| 4438 | |
| 4439 | class ipv6_src_masked(oxm): |
| 4440 | type_len = 2147497248 |
| 4441 | |
| 4442 | def __init__(self, value=None, value_mask=None): |
| 4443 | if value != None: |
| 4444 | self.value = value |
| 4445 | else: |
| 4446 | self.value = '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' |
| 4447 | if value_mask != None: |
| 4448 | self.value_mask = value_mask |
| 4449 | else: |
| 4450 | self.value_mask = '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' |
| 4451 | return |
| 4452 | |
| 4453 | def pack(self): |
| 4454 | packed = [] |
| 4455 | packed.append(struct.pack("!L", self.type_len)) |
| 4456 | packed.append(struct.pack("!16s", self.value)) |
| 4457 | packed.append(struct.pack("!16s", self.value_mask)) |
| 4458 | return ''.join(packed) |
| 4459 | |
| 4460 | @staticmethod |
| 4461 | def unpack(reader): |
| 4462 | obj = ipv6_src_masked() |
| 4463 | _type_len = reader.read("!L")[0] |
| 4464 | assert(_type_len == 2147497248) |
| 4465 | obj.value = reader.read('!16s')[0] |
| 4466 | obj.value_mask = reader.read('!16s')[0] |
| 4467 | return obj |
| 4468 | |
| 4469 | def __eq__(self, other): |
| 4470 | if type(self) != type(other): return False |
| 4471 | if self.value != other.value: return False |
| 4472 | if self.value_mask != other.value_mask: return False |
| 4473 | return True |
| 4474 | |
| 4475 | def pretty_print(self, q): |
| 4476 | q.text("ipv6_src_masked {") |
| 4477 | with q.group(): |
| 4478 | with q.indent(2): |
| 4479 | q.breakable() |
| 4480 | q.text("value = "); |
| 4481 | q.pp(self.value) |
| 4482 | q.text(","); q.breakable() |
| 4483 | q.text("value_mask = "); |
| 4484 | q.pp(self.value_mask) |
| 4485 | q.breakable() |
| 4486 | q.text('}') |
| 4487 | |
| 4488 | oxm.subtypes[2147497248] = ipv6_src_masked |
| 4489 | |
| 4490 | class metadata(oxm): |
| 4491 | type_len = 2147484680 |
| 4492 | |
| 4493 | def __init__(self, value=None): |
| 4494 | if value != None: |
| 4495 | self.value = value |
| 4496 | else: |
| 4497 | self.value = 0 |
| 4498 | return |
| 4499 | |
| 4500 | def pack(self): |
| 4501 | packed = [] |
| 4502 | packed.append(struct.pack("!L", self.type_len)) |
| 4503 | packed.append(struct.pack("!Q", self.value)) |
| 4504 | return ''.join(packed) |
| 4505 | |
| 4506 | @staticmethod |
| 4507 | def unpack(reader): |
| 4508 | obj = metadata() |
| 4509 | _type_len = reader.read("!L")[0] |
| 4510 | assert(_type_len == 2147484680) |
| 4511 | obj.value = reader.read("!Q")[0] |
| 4512 | return obj |
| 4513 | |
| 4514 | def __eq__(self, other): |
| 4515 | if type(self) != type(other): return False |
| 4516 | if self.value != other.value: return False |
| 4517 | return True |
| 4518 | |
| 4519 | def pretty_print(self, q): |
| 4520 | q.text("metadata {") |
| 4521 | with q.group(): |
| 4522 | with q.indent(2): |
| 4523 | q.breakable() |
| 4524 | q.text("value = "); |
| 4525 | q.text("%#x" % self.value) |
| 4526 | q.breakable() |
| 4527 | q.text('}') |
| 4528 | |
| 4529 | oxm.subtypes[2147484680] = metadata |
| 4530 | |
| 4531 | class metadata_masked(oxm): |
| 4532 | type_len = 2147484944 |
| 4533 | |
| 4534 | def __init__(self, value=None, value_mask=None): |
| 4535 | if value != None: |
| 4536 | self.value = value |
| 4537 | else: |
| 4538 | self.value = 0 |
| 4539 | if value_mask != None: |
| 4540 | self.value_mask = value_mask |
| 4541 | else: |
| 4542 | self.value_mask = 0 |
| 4543 | return |
| 4544 | |
| 4545 | def pack(self): |
| 4546 | packed = [] |
| 4547 | packed.append(struct.pack("!L", self.type_len)) |
| 4548 | packed.append(struct.pack("!Q", self.value)) |
| 4549 | packed.append(struct.pack("!Q", self.value_mask)) |
| 4550 | return ''.join(packed) |
| 4551 | |
| 4552 | @staticmethod |
| 4553 | def unpack(reader): |
| 4554 | obj = metadata_masked() |
| 4555 | _type_len = reader.read("!L")[0] |
| 4556 | assert(_type_len == 2147484944) |
| 4557 | obj.value = reader.read("!Q")[0] |
| 4558 | obj.value_mask = reader.read("!Q")[0] |
| 4559 | return obj |
| 4560 | |
| 4561 | def __eq__(self, other): |
| 4562 | if type(self) != type(other): return False |
| 4563 | if self.value != other.value: return False |
| 4564 | if self.value_mask != other.value_mask: return False |
| 4565 | return True |
| 4566 | |
| 4567 | def pretty_print(self, q): |
| 4568 | q.text("metadata_masked {") |
| 4569 | with q.group(): |
| 4570 | with q.indent(2): |
| 4571 | q.breakable() |
| 4572 | q.text("value = "); |
| 4573 | q.text("%#x" % self.value) |
| 4574 | q.text(","); q.breakable() |
| 4575 | q.text("value_mask = "); |
| 4576 | q.text("%#x" % self.value_mask) |
| 4577 | q.breakable() |
| 4578 | q.text('}') |
| 4579 | |
| 4580 | oxm.subtypes[2147484944] = metadata_masked |
| 4581 | |
| 4582 | class mpls_bos(oxm): |
| 4583 | type_len = 2147502081 |
| 4584 | |
| 4585 | def __init__(self, value=None): |
| 4586 | if value != None: |
| 4587 | self.value = value |
| 4588 | else: |
| 4589 | self.value = 0 |
| 4590 | return |
| 4591 | |
| 4592 | def pack(self): |
| 4593 | packed = [] |
| 4594 | packed.append(struct.pack("!L", self.type_len)) |
| 4595 | packed.append(struct.pack("!B", self.value)) |
| 4596 | return ''.join(packed) |
| 4597 | |
| 4598 | @staticmethod |
| 4599 | def unpack(reader): |
| 4600 | obj = mpls_bos() |
| 4601 | _type_len = reader.read("!L")[0] |
| 4602 | assert(_type_len == 2147502081) |
| 4603 | obj.value = reader.read("!B")[0] |
| 4604 | return obj |
| 4605 | |
| 4606 | def __eq__(self, other): |
| 4607 | if type(self) != type(other): return False |
| 4608 | if self.value != other.value: return False |
| 4609 | return True |
| 4610 | |
| 4611 | def pretty_print(self, q): |
| 4612 | q.text("mpls_bos {") |
| 4613 | with q.group(): |
| 4614 | with q.indent(2): |
| 4615 | q.breakable() |
| 4616 | q.text("value = "); |
| 4617 | q.text("%#x" % self.value) |
| 4618 | q.breakable() |
| 4619 | q.text('}') |
| 4620 | |
| 4621 | oxm.subtypes[2147502081] = mpls_bos |
| 4622 | |
| 4623 | class mpls_bos_masked(oxm): |
| 4624 | type_len = 2147502338 |
| 4625 | |
| 4626 | def __init__(self, value=None, value_mask=None): |
| 4627 | if value != None: |
| 4628 | self.value = value |
| 4629 | else: |
| 4630 | self.value = 0 |
| 4631 | if value_mask != None: |
| 4632 | self.value_mask = value_mask |
| 4633 | else: |
| 4634 | self.value_mask = 0 |
| 4635 | return |
| 4636 | |
| 4637 | def pack(self): |
| 4638 | packed = [] |
| 4639 | packed.append(struct.pack("!L", self.type_len)) |
| 4640 | packed.append(struct.pack("!B", self.value)) |
| 4641 | packed.append(struct.pack("!B", self.value_mask)) |
| 4642 | return ''.join(packed) |
| 4643 | |
| 4644 | @staticmethod |
| 4645 | def unpack(reader): |
| 4646 | obj = mpls_bos_masked() |
| 4647 | _type_len = reader.read("!L")[0] |
| 4648 | assert(_type_len == 2147502338) |
| 4649 | obj.value = reader.read("!B")[0] |
| 4650 | obj.value_mask = reader.read("!B")[0] |
| 4651 | return obj |
| 4652 | |
| 4653 | def __eq__(self, other): |
| 4654 | if type(self) != type(other): return False |
| 4655 | if self.value != other.value: return False |
| 4656 | if self.value_mask != other.value_mask: return False |
| 4657 | return True |
| 4658 | |
| 4659 | def pretty_print(self, q): |
| 4660 | q.text("mpls_bos_masked {") |
| 4661 | with q.group(): |
| 4662 | with q.indent(2): |
| 4663 | q.breakable() |
| 4664 | q.text("value = "); |
| 4665 | q.text("%#x" % self.value) |
| 4666 | q.text(","); q.breakable() |
| 4667 | q.text("value_mask = "); |
| 4668 | q.text("%#x" % self.value_mask) |
| 4669 | q.breakable() |
| 4670 | q.text('}') |
| 4671 | |
| 4672 | oxm.subtypes[2147502338] = mpls_bos_masked |
| 4673 | |
| 4674 | class mpls_label(oxm): |
| 4675 | type_len = 2147501060 |
| 4676 | |
| 4677 | def __init__(self, value=None): |
| 4678 | if value != None: |
| 4679 | self.value = value |
| 4680 | else: |
| 4681 | self.value = 0 |
| 4682 | return |
| 4683 | |
| 4684 | def pack(self): |
| 4685 | packed = [] |
| 4686 | packed.append(struct.pack("!L", self.type_len)) |
| 4687 | packed.append(struct.pack("!L", self.value)) |
| 4688 | return ''.join(packed) |
| 4689 | |
| 4690 | @staticmethod |
| 4691 | def unpack(reader): |
| 4692 | obj = mpls_label() |
| 4693 | _type_len = reader.read("!L")[0] |
| 4694 | assert(_type_len == 2147501060) |
| 4695 | obj.value = reader.read("!L")[0] |
| 4696 | return obj |
| 4697 | |
| 4698 | def __eq__(self, other): |
| 4699 | if type(self) != type(other): return False |
| 4700 | if self.value != other.value: return False |
| 4701 | return True |
| 4702 | |
| 4703 | def pretty_print(self, q): |
| 4704 | q.text("mpls_label {") |
| 4705 | with q.group(): |
| 4706 | with q.indent(2): |
| 4707 | q.breakable() |
| 4708 | q.text("value = "); |
| 4709 | q.text("%#x" % self.value) |
| 4710 | q.breakable() |
| 4711 | q.text('}') |
| 4712 | |
| 4713 | oxm.subtypes[2147501060] = mpls_label |
| 4714 | |
| 4715 | class mpls_label_masked(oxm): |
| 4716 | type_len = 2147501320 |
| 4717 | |
| 4718 | def __init__(self, value=None, value_mask=None): |
| 4719 | if value != None: |
| 4720 | self.value = value |
| 4721 | else: |
| 4722 | self.value = 0 |
| 4723 | if value_mask != None: |
| 4724 | self.value_mask = value_mask |
| 4725 | else: |
| 4726 | self.value_mask = 0 |
| 4727 | return |
| 4728 | |
| 4729 | def pack(self): |
| 4730 | packed = [] |
| 4731 | packed.append(struct.pack("!L", self.type_len)) |
| 4732 | packed.append(struct.pack("!L", self.value)) |
| 4733 | packed.append(struct.pack("!L", self.value_mask)) |
| 4734 | return ''.join(packed) |
| 4735 | |
| 4736 | @staticmethod |
| 4737 | def unpack(reader): |
| 4738 | obj = mpls_label_masked() |
| 4739 | _type_len = reader.read("!L")[0] |
| 4740 | assert(_type_len == 2147501320) |
| 4741 | obj.value = reader.read("!L")[0] |
| 4742 | obj.value_mask = reader.read("!L")[0] |
| 4743 | return obj |
| 4744 | |
| 4745 | def __eq__(self, other): |
| 4746 | if type(self) != type(other): return False |
| 4747 | if self.value != other.value: return False |
| 4748 | if self.value_mask != other.value_mask: return False |
| 4749 | return True |
| 4750 | |
| 4751 | def pretty_print(self, q): |
| 4752 | q.text("mpls_label_masked {") |
| 4753 | with q.group(): |
| 4754 | with q.indent(2): |
| 4755 | q.breakable() |
| 4756 | q.text("value = "); |
| 4757 | q.text("%#x" % self.value) |
| 4758 | q.text(","); q.breakable() |
| 4759 | q.text("value_mask = "); |
| 4760 | q.text("%#x" % self.value_mask) |
| 4761 | q.breakable() |
| 4762 | q.text('}') |
| 4763 | |
| 4764 | oxm.subtypes[2147501320] = mpls_label_masked |
| 4765 | |
| 4766 | class mpls_tc(oxm): |
| 4767 | type_len = 2147501569 |
| 4768 | |
| 4769 | def __init__(self, value=None): |
| 4770 | if value != None: |
| 4771 | self.value = value |
| 4772 | else: |
| 4773 | self.value = 0 |
| 4774 | return |
| 4775 | |
| 4776 | def pack(self): |
| 4777 | packed = [] |
| 4778 | packed.append(struct.pack("!L", self.type_len)) |
| 4779 | packed.append(struct.pack("!B", self.value)) |
| 4780 | return ''.join(packed) |
| 4781 | |
| 4782 | @staticmethod |
| 4783 | def unpack(reader): |
| 4784 | obj = mpls_tc() |
| 4785 | _type_len = reader.read("!L")[0] |
| 4786 | assert(_type_len == 2147501569) |
| 4787 | obj.value = reader.read("!B")[0] |
| 4788 | return obj |
| 4789 | |
| 4790 | def __eq__(self, other): |
| 4791 | if type(self) != type(other): return False |
| 4792 | if self.value != other.value: return False |
| 4793 | return True |
| 4794 | |
| 4795 | def pretty_print(self, q): |
| 4796 | q.text("mpls_tc {") |
| 4797 | with q.group(): |
| 4798 | with q.indent(2): |
| 4799 | q.breakable() |
| 4800 | q.text("value = "); |
| 4801 | q.text("%#x" % self.value) |
| 4802 | q.breakable() |
| 4803 | q.text('}') |
| 4804 | |
| 4805 | oxm.subtypes[2147501569] = mpls_tc |
| 4806 | |
| 4807 | class mpls_tc_masked(oxm): |
| 4808 | type_len = 2147501826 |
| 4809 | |
| 4810 | def __init__(self, value=None, value_mask=None): |
| 4811 | if value != None: |
| 4812 | self.value = value |
| 4813 | else: |
| 4814 | self.value = 0 |
| 4815 | if value_mask != None: |
| 4816 | self.value_mask = value_mask |
| 4817 | else: |
| 4818 | self.value_mask = 0 |
| 4819 | return |
| 4820 | |
| 4821 | def pack(self): |
| 4822 | packed = [] |
| 4823 | packed.append(struct.pack("!L", self.type_len)) |
| 4824 | packed.append(struct.pack("!B", self.value)) |
| 4825 | packed.append(struct.pack("!B", self.value_mask)) |
| 4826 | return ''.join(packed) |
| 4827 | |
| 4828 | @staticmethod |
| 4829 | def unpack(reader): |
| 4830 | obj = mpls_tc_masked() |
| 4831 | _type_len = reader.read("!L")[0] |
| 4832 | assert(_type_len == 2147501826) |
| 4833 | obj.value = reader.read("!B")[0] |
| 4834 | obj.value_mask = reader.read("!B")[0] |
| 4835 | return obj |
| 4836 | |
| 4837 | def __eq__(self, other): |
| 4838 | if type(self) != type(other): return False |
| 4839 | if self.value != other.value: return False |
| 4840 | if self.value_mask != other.value_mask: return False |
| 4841 | return True |
| 4842 | |
| 4843 | def pretty_print(self, q): |
| 4844 | q.text("mpls_tc_masked {") |
| 4845 | with q.group(): |
| 4846 | with q.indent(2): |
| 4847 | q.breakable() |
| 4848 | q.text("value = "); |
| 4849 | q.text("%#x" % self.value) |
| 4850 | q.text(","); q.breakable() |
| 4851 | q.text("value_mask = "); |
| 4852 | q.text("%#x" % self.value_mask) |
| 4853 | q.breakable() |
| 4854 | q.text('}') |
| 4855 | |
| 4856 | oxm.subtypes[2147501826] = mpls_tc_masked |
| 4857 | |
Rich Lane | ccd32ed | 2014-11-10 17:48:24 -0800 | [diff] [blame] | 4858 | class pbb_uca(oxm): |
| 4859 | type_len = 2147504641 |
| 4860 | |
| 4861 | def __init__(self, value=None): |
| 4862 | if value != None: |
| 4863 | self.value = value |
| 4864 | else: |
| 4865 | self.value = 0 |
| 4866 | return |
| 4867 | |
| 4868 | def pack(self): |
| 4869 | packed = [] |
| 4870 | packed.append(struct.pack("!L", self.type_len)) |
| 4871 | packed.append(struct.pack("!B", self.value)) |
| 4872 | return ''.join(packed) |
| 4873 | |
| 4874 | @staticmethod |
| 4875 | def unpack(reader): |
| 4876 | obj = pbb_uca() |
| 4877 | _type_len = reader.read("!L")[0] |
| 4878 | assert(_type_len == 2147504641) |
| 4879 | obj.value = reader.read("!B")[0] |
| 4880 | return obj |
| 4881 | |
| 4882 | def __eq__(self, other): |
| 4883 | if type(self) != type(other): return False |
| 4884 | if self.value != other.value: return False |
| 4885 | return True |
| 4886 | |
| 4887 | def pretty_print(self, q): |
| 4888 | q.text("pbb_uca {") |
| 4889 | with q.group(): |
| 4890 | with q.indent(2): |
| 4891 | q.breakable() |
| 4892 | q.text("value = "); |
| 4893 | q.text("%#x" % self.value) |
| 4894 | q.breakable() |
| 4895 | q.text('}') |
| 4896 | |
| 4897 | oxm.subtypes[2147504641] = pbb_uca |
| 4898 | |
| 4899 | class pbb_uca_masked(oxm): |
| 4900 | type_len = 2147504898 |
| 4901 | |
| 4902 | def __init__(self, value=None, value_mask=None): |
| 4903 | if value != None: |
| 4904 | self.value = value |
| 4905 | else: |
| 4906 | self.value = 0 |
| 4907 | if value_mask != None: |
| 4908 | self.value_mask = value_mask |
| 4909 | else: |
| 4910 | self.value_mask = 0 |
| 4911 | return |
| 4912 | |
| 4913 | def pack(self): |
| 4914 | packed = [] |
| 4915 | packed.append(struct.pack("!L", self.type_len)) |
| 4916 | packed.append(struct.pack("!B", self.value)) |
| 4917 | packed.append(struct.pack("!B", self.value_mask)) |
| 4918 | return ''.join(packed) |
| 4919 | |
| 4920 | @staticmethod |
| 4921 | def unpack(reader): |
| 4922 | obj = pbb_uca_masked() |
| 4923 | _type_len = reader.read("!L")[0] |
| 4924 | assert(_type_len == 2147504898) |
| 4925 | obj.value = reader.read("!B")[0] |
| 4926 | obj.value_mask = reader.read("!B")[0] |
| 4927 | return obj |
| 4928 | |
| 4929 | def __eq__(self, other): |
| 4930 | if type(self) != type(other): return False |
| 4931 | if self.value != other.value: return False |
| 4932 | if self.value_mask != other.value_mask: return False |
| 4933 | return True |
| 4934 | |
| 4935 | def pretty_print(self, q): |
| 4936 | q.text("pbb_uca_masked {") |
| 4937 | with q.group(): |
| 4938 | with q.indent(2): |
| 4939 | q.breakable() |
| 4940 | q.text("value = "); |
| 4941 | q.text("%#x" % self.value) |
| 4942 | q.text(","); q.breakable() |
| 4943 | q.text("value_mask = "); |
| 4944 | q.text("%#x" % self.value_mask) |
| 4945 | q.breakable() |
| 4946 | q.text('}') |
| 4947 | |
| 4948 | oxm.subtypes[2147504898] = pbb_uca_masked |
| 4949 | |
Rich Lane | 2e079da | 2014-10-29 15:30:24 -0700 | [diff] [blame] | 4950 | class sctp_dst(oxm): |
| 4951 | type_len = 2147492866 |
| 4952 | |
| 4953 | def __init__(self, value=None): |
| 4954 | if value != None: |
| 4955 | self.value = value |
| 4956 | else: |
| 4957 | self.value = 0 |
| 4958 | return |
| 4959 | |
| 4960 | def pack(self): |
| 4961 | packed = [] |
| 4962 | packed.append(struct.pack("!L", self.type_len)) |
| 4963 | packed.append(struct.pack("!H", self.value)) |
| 4964 | return ''.join(packed) |
| 4965 | |
| 4966 | @staticmethod |
| 4967 | def unpack(reader): |
| 4968 | obj = sctp_dst() |
| 4969 | _type_len = reader.read("!L")[0] |
| 4970 | assert(_type_len == 2147492866) |
| 4971 | obj.value = reader.read("!H")[0] |
| 4972 | return obj |
| 4973 | |
| 4974 | def __eq__(self, other): |
| 4975 | if type(self) != type(other): return False |
| 4976 | if self.value != other.value: return False |
| 4977 | return True |
| 4978 | |
| 4979 | def pretty_print(self, q): |
| 4980 | q.text("sctp_dst {") |
| 4981 | with q.group(): |
| 4982 | with q.indent(2): |
| 4983 | q.breakable() |
| 4984 | q.text("value = "); |
| 4985 | q.text("%#x" % self.value) |
| 4986 | q.breakable() |
| 4987 | q.text('}') |
| 4988 | |
| 4989 | oxm.subtypes[2147492866] = sctp_dst |
| 4990 | |
| 4991 | class sctp_dst_masked(oxm): |
| 4992 | type_len = 2147493124 |
| 4993 | |
| 4994 | def __init__(self, value=None, value_mask=None): |
| 4995 | if value != None: |
| 4996 | self.value = value |
| 4997 | else: |
| 4998 | self.value = 0 |
| 4999 | if value_mask != None: |
| 5000 | self.value_mask = value_mask |
| 5001 | else: |
| 5002 | self.value_mask = 0 |
| 5003 | return |
| 5004 | |
| 5005 | def pack(self): |
| 5006 | packed = [] |
| 5007 | packed.append(struct.pack("!L", self.type_len)) |
| 5008 | packed.append(struct.pack("!H", self.value)) |
| 5009 | packed.append(struct.pack("!H", self.value_mask)) |
| 5010 | return ''.join(packed) |
| 5011 | |
| 5012 | @staticmethod |
| 5013 | def unpack(reader): |
| 5014 | obj = sctp_dst_masked() |
| 5015 | _type_len = reader.read("!L")[0] |
| 5016 | assert(_type_len == 2147493124) |
| 5017 | obj.value = reader.read("!H")[0] |
| 5018 | obj.value_mask = reader.read("!H")[0] |
| 5019 | return obj |
| 5020 | |
| 5021 | def __eq__(self, other): |
| 5022 | if type(self) != type(other): return False |
| 5023 | if self.value != other.value: return False |
| 5024 | if self.value_mask != other.value_mask: return False |
| 5025 | return True |
| 5026 | |
| 5027 | def pretty_print(self, q): |
| 5028 | q.text("sctp_dst_masked {") |
| 5029 | with q.group(): |
| 5030 | with q.indent(2): |
| 5031 | q.breakable() |
| 5032 | q.text("value = "); |
| 5033 | q.text("%#x" % self.value) |
| 5034 | q.text(","); q.breakable() |
| 5035 | q.text("value_mask = "); |
| 5036 | q.text("%#x" % self.value_mask) |
| 5037 | q.breakable() |
| 5038 | q.text('}') |
| 5039 | |
| 5040 | oxm.subtypes[2147493124] = sctp_dst_masked |
| 5041 | |
| 5042 | class sctp_src(oxm): |
| 5043 | type_len = 2147492354 |
| 5044 | |
| 5045 | def __init__(self, value=None): |
| 5046 | if value != None: |
| 5047 | self.value = value |
| 5048 | else: |
| 5049 | self.value = 0 |
| 5050 | return |
| 5051 | |
| 5052 | def pack(self): |
| 5053 | packed = [] |
| 5054 | packed.append(struct.pack("!L", self.type_len)) |
| 5055 | packed.append(struct.pack("!H", self.value)) |
| 5056 | return ''.join(packed) |
| 5057 | |
| 5058 | @staticmethod |
| 5059 | def unpack(reader): |
| 5060 | obj = sctp_src() |
| 5061 | _type_len = reader.read("!L")[0] |
| 5062 | assert(_type_len == 2147492354) |
| 5063 | obj.value = reader.read("!H")[0] |
| 5064 | return obj |
| 5065 | |
| 5066 | def __eq__(self, other): |
| 5067 | if type(self) != type(other): return False |
| 5068 | if self.value != other.value: return False |
| 5069 | return True |
| 5070 | |
| 5071 | def pretty_print(self, q): |
| 5072 | q.text("sctp_src {") |
| 5073 | with q.group(): |
| 5074 | with q.indent(2): |
| 5075 | q.breakable() |
| 5076 | q.text("value = "); |
| 5077 | q.text("%#x" % self.value) |
| 5078 | q.breakable() |
| 5079 | q.text('}') |
| 5080 | |
| 5081 | oxm.subtypes[2147492354] = sctp_src |
| 5082 | |
| 5083 | class sctp_src_masked(oxm): |
| 5084 | type_len = 2147492612 |
| 5085 | |
| 5086 | def __init__(self, value=None, value_mask=None): |
| 5087 | if value != None: |
| 5088 | self.value = value |
| 5089 | else: |
| 5090 | self.value = 0 |
| 5091 | if value_mask != None: |
| 5092 | self.value_mask = value_mask |
| 5093 | else: |
| 5094 | self.value_mask = 0 |
| 5095 | return |
| 5096 | |
| 5097 | def pack(self): |
| 5098 | packed = [] |
| 5099 | packed.append(struct.pack("!L", self.type_len)) |
| 5100 | packed.append(struct.pack("!H", self.value)) |
| 5101 | packed.append(struct.pack("!H", self.value_mask)) |
| 5102 | return ''.join(packed) |
| 5103 | |
| 5104 | @staticmethod |
| 5105 | def unpack(reader): |
| 5106 | obj = sctp_src_masked() |
| 5107 | _type_len = reader.read("!L")[0] |
| 5108 | assert(_type_len == 2147492612) |
| 5109 | obj.value = reader.read("!H")[0] |
| 5110 | obj.value_mask = reader.read("!H")[0] |
| 5111 | return obj |
| 5112 | |
| 5113 | def __eq__(self, other): |
| 5114 | if type(self) != type(other): return False |
| 5115 | if self.value != other.value: return False |
| 5116 | if self.value_mask != other.value_mask: return False |
| 5117 | return True |
| 5118 | |
| 5119 | def pretty_print(self, q): |
| 5120 | q.text("sctp_src_masked {") |
| 5121 | with q.group(): |
| 5122 | with q.indent(2): |
| 5123 | q.breakable() |
| 5124 | q.text("value = "); |
| 5125 | q.text("%#x" % self.value) |
| 5126 | q.text(","); q.breakable() |
| 5127 | q.text("value_mask = "); |
| 5128 | q.text("%#x" % self.value_mask) |
| 5129 | q.breakable() |
| 5130 | q.text('}') |
| 5131 | |
| 5132 | oxm.subtypes[2147492612] = sctp_src_masked |
| 5133 | |
| 5134 | class tcp_dst(oxm): |
| 5135 | type_len = 2147490818 |
| 5136 | |
| 5137 | def __init__(self, value=None): |
| 5138 | if value != None: |
| 5139 | self.value = value |
| 5140 | else: |
| 5141 | self.value = 0 |
| 5142 | return |
| 5143 | |
| 5144 | def pack(self): |
| 5145 | packed = [] |
| 5146 | packed.append(struct.pack("!L", self.type_len)) |
| 5147 | packed.append(struct.pack("!H", self.value)) |
| 5148 | return ''.join(packed) |
| 5149 | |
| 5150 | @staticmethod |
| 5151 | def unpack(reader): |
| 5152 | obj = tcp_dst() |
| 5153 | _type_len = reader.read("!L")[0] |
| 5154 | assert(_type_len == 2147490818) |
| 5155 | obj.value = reader.read("!H")[0] |
| 5156 | return obj |
| 5157 | |
| 5158 | def __eq__(self, other): |
| 5159 | if type(self) != type(other): return False |
| 5160 | if self.value != other.value: return False |
| 5161 | return True |
| 5162 | |
| 5163 | def pretty_print(self, q): |
| 5164 | q.text("tcp_dst {") |
| 5165 | with q.group(): |
| 5166 | with q.indent(2): |
| 5167 | q.breakable() |
| 5168 | q.text("value = "); |
| 5169 | q.text("%#x" % self.value) |
| 5170 | q.breakable() |
| 5171 | q.text('}') |
| 5172 | |
| 5173 | oxm.subtypes[2147490818] = tcp_dst |
| 5174 | |
| 5175 | class tcp_dst_masked(oxm): |
| 5176 | type_len = 2147491076 |
| 5177 | |
| 5178 | def __init__(self, value=None, value_mask=None): |
| 5179 | if value != None: |
| 5180 | self.value = value |
| 5181 | else: |
| 5182 | self.value = 0 |
| 5183 | if value_mask != None: |
| 5184 | self.value_mask = value_mask |
| 5185 | else: |
| 5186 | self.value_mask = 0 |
| 5187 | return |
| 5188 | |
| 5189 | def pack(self): |
| 5190 | packed = [] |
| 5191 | packed.append(struct.pack("!L", self.type_len)) |
| 5192 | packed.append(struct.pack("!H", self.value)) |
| 5193 | packed.append(struct.pack("!H", self.value_mask)) |
| 5194 | return ''.join(packed) |
| 5195 | |
| 5196 | @staticmethod |
| 5197 | def unpack(reader): |
| 5198 | obj = tcp_dst_masked() |
| 5199 | _type_len = reader.read("!L")[0] |
| 5200 | assert(_type_len == 2147491076) |
| 5201 | obj.value = reader.read("!H")[0] |
| 5202 | obj.value_mask = reader.read("!H")[0] |
| 5203 | return obj |
| 5204 | |
| 5205 | def __eq__(self, other): |
| 5206 | if type(self) != type(other): return False |
| 5207 | if self.value != other.value: return False |
| 5208 | if self.value_mask != other.value_mask: return False |
| 5209 | return True |
| 5210 | |
| 5211 | def pretty_print(self, q): |
| 5212 | q.text("tcp_dst_masked {") |
| 5213 | with q.group(): |
| 5214 | with q.indent(2): |
| 5215 | q.breakable() |
| 5216 | q.text("value = "); |
| 5217 | q.text("%#x" % self.value) |
| 5218 | q.text(","); q.breakable() |
| 5219 | q.text("value_mask = "); |
| 5220 | q.text("%#x" % self.value_mask) |
| 5221 | q.breakable() |
| 5222 | q.text('}') |
| 5223 | |
| 5224 | oxm.subtypes[2147491076] = tcp_dst_masked |
| 5225 | |
| 5226 | class tcp_src(oxm): |
| 5227 | type_len = 2147490306 |
| 5228 | |
| 5229 | def __init__(self, value=None): |
| 5230 | if value != None: |
| 5231 | self.value = value |
| 5232 | else: |
| 5233 | self.value = 0 |
| 5234 | return |
| 5235 | |
| 5236 | def pack(self): |
| 5237 | packed = [] |
| 5238 | packed.append(struct.pack("!L", self.type_len)) |
| 5239 | packed.append(struct.pack("!H", self.value)) |
| 5240 | return ''.join(packed) |
| 5241 | |
| 5242 | @staticmethod |
| 5243 | def unpack(reader): |
| 5244 | obj = tcp_src() |
| 5245 | _type_len = reader.read("!L")[0] |
| 5246 | assert(_type_len == 2147490306) |
| 5247 | obj.value = reader.read("!H")[0] |
| 5248 | return obj |
| 5249 | |
| 5250 | def __eq__(self, other): |
| 5251 | if type(self) != type(other): return False |
| 5252 | if self.value != other.value: return False |
| 5253 | return True |
| 5254 | |
| 5255 | def pretty_print(self, q): |
| 5256 | q.text("tcp_src {") |
| 5257 | with q.group(): |
| 5258 | with q.indent(2): |
| 5259 | q.breakable() |
| 5260 | q.text("value = "); |
| 5261 | q.text("%#x" % self.value) |
| 5262 | q.breakable() |
| 5263 | q.text('}') |
| 5264 | |
| 5265 | oxm.subtypes[2147490306] = tcp_src |
| 5266 | |
| 5267 | class tcp_src_masked(oxm): |
| 5268 | type_len = 2147490564 |
| 5269 | |
| 5270 | def __init__(self, value=None, value_mask=None): |
| 5271 | if value != None: |
| 5272 | self.value = value |
| 5273 | else: |
| 5274 | self.value = 0 |
| 5275 | if value_mask != None: |
| 5276 | self.value_mask = value_mask |
| 5277 | else: |
| 5278 | self.value_mask = 0 |
| 5279 | return |
| 5280 | |
| 5281 | def pack(self): |
| 5282 | packed = [] |
| 5283 | packed.append(struct.pack("!L", self.type_len)) |
| 5284 | packed.append(struct.pack("!H", self.value)) |
| 5285 | packed.append(struct.pack("!H", self.value_mask)) |
| 5286 | return ''.join(packed) |
| 5287 | |
| 5288 | @staticmethod |
| 5289 | def unpack(reader): |
| 5290 | obj = tcp_src_masked() |
| 5291 | _type_len = reader.read("!L")[0] |
| 5292 | assert(_type_len == 2147490564) |
| 5293 | obj.value = reader.read("!H")[0] |
| 5294 | obj.value_mask = reader.read("!H")[0] |
| 5295 | return obj |
| 5296 | |
| 5297 | def __eq__(self, other): |
| 5298 | if type(self) != type(other): return False |
| 5299 | if self.value != other.value: return False |
| 5300 | if self.value_mask != other.value_mask: return False |
| 5301 | return True |
| 5302 | |
| 5303 | def pretty_print(self, q): |
| 5304 | q.text("tcp_src_masked {") |
| 5305 | with q.group(): |
| 5306 | with q.indent(2): |
| 5307 | q.breakable() |
| 5308 | q.text("value = "); |
| 5309 | q.text("%#x" % self.value) |
| 5310 | q.text(","); q.breakable() |
| 5311 | q.text("value_mask = "); |
| 5312 | q.text("%#x" % self.value_mask) |
| 5313 | q.breakable() |
| 5314 | q.text('}') |
| 5315 | |
| 5316 | oxm.subtypes[2147490564] = tcp_src_masked |
| 5317 | |
| 5318 | class tunnel_id(oxm): |
| 5319 | type_len = 2147503112 |
| 5320 | |
| 5321 | def __init__(self, value=None): |
| 5322 | if value != None: |
| 5323 | self.value = value |
| 5324 | else: |
| 5325 | self.value = 0 |
| 5326 | return |
| 5327 | |
| 5328 | def pack(self): |
| 5329 | packed = [] |
| 5330 | packed.append(struct.pack("!L", self.type_len)) |
| 5331 | packed.append(struct.pack("!Q", self.value)) |
| 5332 | return ''.join(packed) |
| 5333 | |
| 5334 | @staticmethod |
| 5335 | def unpack(reader): |
| 5336 | obj = tunnel_id() |
| 5337 | _type_len = reader.read("!L")[0] |
| 5338 | assert(_type_len == 2147503112) |
| 5339 | obj.value = reader.read("!Q")[0] |
| 5340 | return obj |
| 5341 | |
| 5342 | def __eq__(self, other): |
| 5343 | if type(self) != type(other): return False |
| 5344 | if self.value != other.value: return False |
| 5345 | return True |
| 5346 | |
| 5347 | def pretty_print(self, q): |
| 5348 | q.text("tunnel_id {") |
| 5349 | with q.group(): |
| 5350 | with q.indent(2): |
| 5351 | q.breakable() |
| 5352 | q.text("value = "); |
| 5353 | q.text("%#x" % self.value) |
| 5354 | q.breakable() |
| 5355 | q.text('}') |
| 5356 | |
| 5357 | oxm.subtypes[2147503112] = tunnel_id |
| 5358 | |
| 5359 | class tunnel_id_masked(oxm): |
| 5360 | type_len = 2147503376 |
| 5361 | |
| 5362 | def __init__(self, value=None, value_mask=None): |
| 5363 | if value != None: |
| 5364 | self.value = value |
| 5365 | else: |
| 5366 | self.value = 0 |
| 5367 | if value_mask != None: |
| 5368 | self.value_mask = value_mask |
| 5369 | else: |
| 5370 | self.value_mask = 0 |
| 5371 | return |
| 5372 | |
| 5373 | def pack(self): |
| 5374 | packed = [] |
| 5375 | packed.append(struct.pack("!L", self.type_len)) |
| 5376 | packed.append(struct.pack("!Q", self.value)) |
| 5377 | packed.append(struct.pack("!Q", self.value_mask)) |
| 5378 | return ''.join(packed) |
| 5379 | |
| 5380 | @staticmethod |
| 5381 | def unpack(reader): |
| 5382 | obj = tunnel_id_masked() |
| 5383 | _type_len = reader.read("!L")[0] |
| 5384 | assert(_type_len == 2147503376) |
| 5385 | obj.value = reader.read("!Q")[0] |
| 5386 | obj.value_mask = reader.read("!Q")[0] |
| 5387 | return obj |
| 5388 | |
| 5389 | def __eq__(self, other): |
| 5390 | if type(self) != type(other): return False |
| 5391 | if self.value != other.value: return False |
| 5392 | if self.value_mask != other.value_mask: return False |
| 5393 | return True |
| 5394 | |
| 5395 | def pretty_print(self, q): |
| 5396 | q.text("tunnel_id_masked {") |
| 5397 | with q.group(): |
| 5398 | with q.indent(2): |
| 5399 | q.breakable() |
| 5400 | q.text("value = "); |
| 5401 | q.text("%#x" % self.value) |
| 5402 | q.text(","); q.breakable() |
| 5403 | q.text("value_mask = "); |
| 5404 | q.text("%#x" % self.value_mask) |
| 5405 | q.breakable() |
| 5406 | q.text('}') |
| 5407 | |
| 5408 | oxm.subtypes[2147503376] = tunnel_id_masked |
| 5409 | |
Harshmeet Singh | 301f717 | 2014-12-08 13:07:29 -0800 | [diff] [blame] | 5410 | class tunnel_ipv4_dst(oxm): |
| 5411 | type_len = 81924 |
| 5412 | |
| 5413 | def __init__(self, value=None): |
| 5414 | if value != None: |
| 5415 | self.value = value |
| 5416 | else: |
| 5417 | self.value = 0 |
| 5418 | return |
| 5419 | |
| 5420 | def pack(self): |
| 5421 | packed = [] |
| 5422 | packed.append(struct.pack("!L", self.type_len)) |
| 5423 | packed.append(struct.pack("!L", self.value)) |
| 5424 | return ''.join(packed) |
| 5425 | |
| 5426 | @staticmethod |
| 5427 | def unpack(reader): |
| 5428 | obj = tunnel_ipv4_dst() |
| 5429 | _type_len = reader.read("!L")[0] |
| 5430 | assert(_type_len == 81924) |
| 5431 | obj.value = reader.read("!L")[0] |
| 5432 | return obj |
| 5433 | |
| 5434 | def __eq__(self, other): |
| 5435 | if type(self) != type(other): return False |
| 5436 | if self.value != other.value: return False |
| 5437 | return True |
| 5438 | |
| 5439 | def pretty_print(self, q): |
| 5440 | q.text("tunnel_ipv4_dst {") |
| 5441 | with q.group(): |
| 5442 | with q.indent(2): |
| 5443 | q.breakable() |
| 5444 | q.text("value = "); |
| 5445 | q.text(util.pretty_ipv4(self.value)) |
| 5446 | q.breakable() |
| 5447 | q.text('}') |
| 5448 | |
| 5449 | oxm.subtypes[81924] = tunnel_ipv4_dst |
| 5450 | |
| 5451 | class tunnel_ipv4_dst_masked(oxm): |
| 5452 | type_len = 82184 |
| 5453 | |
| 5454 | def __init__(self, value=None, value_mask=None): |
| 5455 | if value != None: |
| 5456 | self.value = value |
| 5457 | else: |
| 5458 | self.value = 0 |
| 5459 | if value_mask != None: |
| 5460 | self.value_mask = value_mask |
| 5461 | else: |
| 5462 | self.value_mask = 0 |
| 5463 | return |
| 5464 | |
| 5465 | def pack(self): |
| 5466 | packed = [] |
| 5467 | packed.append(struct.pack("!L", self.type_len)) |
| 5468 | packed.append(struct.pack("!L", self.value)) |
| 5469 | packed.append(struct.pack("!L", self.value_mask)) |
| 5470 | return ''.join(packed) |
| 5471 | |
| 5472 | @staticmethod |
| 5473 | def unpack(reader): |
| 5474 | obj = tunnel_ipv4_dst_masked() |
| 5475 | _type_len = reader.read("!L")[0] |
| 5476 | assert(_type_len == 82184) |
| 5477 | obj.value = reader.read("!L")[0] |
| 5478 | obj.value_mask = reader.read("!L")[0] |
| 5479 | return obj |
| 5480 | |
| 5481 | def __eq__(self, other): |
| 5482 | if type(self) != type(other): return False |
| 5483 | if self.value != other.value: return False |
| 5484 | if self.value_mask != other.value_mask: return False |
| 5485 | return True |
| 5486 | |
| 5487 | def pretty_print(self, q): |
| 5488 | q.text("tunnel_ipv4_dst_masked {") |
| 5489 | with q.group(): |
| 5490 | with q.indent(2): |
| 5491 | q.breakable() |
| 5492 | q.text("value = "); |
| 5493 | q.text(util.pretty_ipv4(self.value)) |
| 5494 | q.text(","); q.breakable() |
| 5495 | q.text("value_mask = "); |
| 5496 | q.text(util.pretty_ipv4(self.value_mask)) |
| 5497 | q.breakable() |
| 5498 | q.text('}') |
| 5499 | |
| 5500 | oxm.subtypes[82184] = tunnel_ipv4_dst_masked |
| 5501 | |
| 5502 | class tunnel_ipv4_src(oxm): |
| 5503 | type_len = 81412 |
| 5504 | |
| 5505 | def __init__(self, value=None): |
| 5506 | if value != None: |
| 5507 | self.value = value |
| 5508 | else: |
| 5509 | self.value = 0 |
| 5510 | return |
| 5511 | |
| 5512 | def pack(self): |
| 5513 | packed = [] |
| 5514 | packed.append(struct.pack("!L", self.type_len)) |
| 5515 | packed.append(struct.pack("!L", self.value)) |
| 5516 | return ''.join(packed) |
| 5517 | |
| 5518 | @staticmethod |
| 5519 | def unpack(reader): |
| 5520 | obj = tunnel_ipv4_src() |
| 5521 | _type_len = reader.read("!L")[0] |
| 5522 | assert(_type_len == 81412) |
| 5523 | obj.value = reader.read("!L")[0] |
| 5524 | return obj |
| 5525 | |
| 5526 | def __eq__(self, other): |
| 5527 | if type(self) != type(other): return False |
| 5528 | if self.value != other.value: return False |
| 5529 | return True |
| 5530 | |
| 5531 | def pretty_print(self, q): |
| 5532 | q.text("tunnel_ipv4_src {") |
| 5533 | with q.group(): |
| 5534 | with q.indent(2): |
| 5535 | q.breakable() |
| 5536 | q.text("value = "); |
| 5537 | q.text(util.pretty_ipv4(self.value)) |
| 5538 | q.breakable() |
| 5539 | q.text('}') |
| 5540 | |
| 5541 | oxm.subtypes[81412] = tunnel_ipv4_src |
| 5542 | |
| 5543 | class tunnel_ipv4_src_masked(oxm): |
| 5544 | type_len = 81672 |
| 5545 | |
| 5546 | def __init__(self, value=None, value_mask=None): |
| 5547 | if value != None: |
| 5548 | self.value = value |
| 5549 | else: |
| 5550 | self.value = 0 |
| 5551 | if value_mask != None: |
| 5552 | self.value_mask = value_mask |
| 5553 | else: |
| 5554 | self.value_mask = 0 |
| 5555 | return |
| 5556 | |
| 5557 | def pack(self): |
| 5558 | packed = [] |
| 5559 | packed.append(struct.pack("!L", self.type_len)) |
| 5560 | packed.append(struct.pack("!L", self.value)) |
| 5561 | packed.append(struct.pack("!L", self.value_mask)) |
| 5562 | return ''.join(packed) |
| 5563 | |
| 5564 | @staticmethod |
| 5565 | def unpack(reader): |
| 5566 | obj = tunnel_ipv4_src_masked() |
| 5567 | _type_len = reader.read("!L")[0] |
| 5568 | assert(_type_len == 81672) |
| 5569 | obj.value = reader.read("!L")[0] |
| 5570 | obj.value_mask = reader.read("!L")[0] |
| 5571 | return obj |
| 5572 | |
| 5573 | def __eq__(self, other): |
| 5574 | if type(self) != type(other): return False |
| 5575 | if self.value != other.value: return False |
| 5576 | if self.value_mask != other.value_mask: return False |
| 5577 | return True |
| 5578 | |
| 5579 | def pretty_print(self, q): |
| 5580 | q.text("tunnel_ipv4_src_masked {") |
| 5581 | with q.group(): |
| 5582 | with q.indent(2): |
| 5583 | q.breakable() |
| 5584 | q.text("value = "); |
| 5585 | q.text(util.pretty_ipv4(self.value)) |
| 5586 | q.text(","); q.breakable() |
| 5587 | q.text("value_mask = "); |
| 5588 | q.text(util.pretty_ipv4(self.value_mask)) |
| 5589 | q.breakable() |
| 5590 | q.text('}') |
| 5591 | |
| 5592 | oxm.subtypes[81672] = tunnel_ipv4_src_masked |
| 5593 | |
Rich Lane | 2e079da | 2014-10-29 15:30:24 -0700 | [diff] [blame] | 5594 | class udp_dst(oxm): |
| 5595 | type_len = 2147491842 |
| 5596 | |
| 5597 | def __init__(self, value=None): |
| 5598 | if value != None: |
| 5599 | self.value = value |
| 5600 | else: |
| 5601 | self.value = 0 |
| 5602 | return |
| 5603 | |
| 5604 | def pack(self): |
| 5605 | packed = [] |
| 5606 | packed.append(struct.pack("!L", self.type_len)) |
| 5607 | packed.append(struct.pack("!H", self.value)) |
| 5608 | return ''.join(packed) |
| 5609 | |
| 5610 | @staticmethod |
| 5611 | def unpack(reader): |
| 5612 | obj = udp_dst() |
| 5613 | _type_len = reader.read("!L")[0] |
| 5614 | assert(_type_len == 2147491842) |
| 5615 | obj.value = reader.read("!H")[0] |
| 5616 | return obj |
| 5617 | |
| 5618 | def __eq__(self, other): |
| 5619 | if type(self) != type(other): return False |
| 5620 | if self.value != other.value: return False |
| 5621 | return True |
| 5622 | |
| 5623 | def pretty_print(self, q): |
| 5624 | q.text("udp_dst {") |
| 5625 | with q.group(): |
| 5626 | with q.indent(2): |
| 5627 | q.breakable() |
| 5628 | q.text("value = "); |
| 5629 | q.text("%#x" % self.value) |
| 5630 | q.breakable() |
| 5631 | q.text('}') |
| 5632 | |
| 5633 | oxm.subtypes[2147491842] = udp_dst |
| 5634 | |
| 5635 | class udp_dst_masked(oxm): |
| 5636 | type_len = 2147492100 |
| 5637 | |
| 5638 | def __init__(self, value=None, value_mask=None): |
| 5639 | if value != None: |
| 5640 | self.value = value |
| 5641 | else: |
| 5642 | self.value = 0 |
| 5643 | if value_mask != None: |
| 5644 | self.value_mask = value_mask |
| 5645 | else: |
| 5646 | self.value_mask = 0 |
| 5647 | return |
| 5648 | |
| 5649 | def pack(self): |
| 5650 | packed = [] |
| 5651 | packed.append(struct.pack("!L", self.type_len)) |
| 5652 | packed.append(struct.pack("!H", self.value)) |
| 5653 | packed.append(struct.pack("!H", self.value_mask)) |
| 5654 | return ''.join(packed) |
| 5655 | |
| 5656 | @staticmethod |
| 5657 | def unpack(reader): |
| 5658 | obj = udp_dst_masked() |
| 5659 | _type_len = reader.read("!L")[0] |
| 5660 | assert(_type_len == 2147492100) |
| 5661 | obj.value = reader.read("!H")[0] |
| 5662 | obj.value_mask = reader.read("!H")[0] |
| 5663 | return obj |
| 5664 | |
| 5665 | def __eq__(self, other): |
| 5666 | if type(self) != type(other): return False |
| 5667 | if self.value != other.value: return False |
| 5668 | if self.value_mask != other.value_mask: return False |
| 5669 | return True |
| 5670 | |
| 5671 | def pretty_print(self, q): |
| 5672 | q.text("udp_dst_masked {") |
| 5673 | with q.group(): |
| 5674 | with q.indent(2): |
| 5675 | q.breakable() |
| 5676 | q.text("value = "); |
| 5677 | q.text("%#x" % self.value) |
| 5678 | q.text(","); q.breakable() |
| 5679 | q.text("value_mask = "); |
| 5680 | q.text("%#x" % self.value_mask) |
| 5681 | q.breakable() |
| 5682 | q.text('}') |
| 5683 | |
| 5684 | oxm.subtypes[2147492100] = udp_dst_masked |
| 5685 | |
| 5686 | class udp_src(oxm): |
| 5687 | type_len = 2147491330 |
| 5688 | |
| 5689 | def __init__(self, value=None): |
| 5690 | if value != None: |
| 5691 | self.value = value |
| 5692 | else: |
| 5693 | self.value = 0 |
| 5694 | return |
| 5695 | |
| 5696 | def pack(self): |
| 5697 | packed = [] |
| 5698 | packed.append(struct.pack("!L", self.type_len)) |
| 5699 | packed.append(struct.pack("!H", self.value)) |
| 5700 | return ''.join(packed) |
| 5701 | |
| 5702 | @staticmethod |
| 5703 | def unpack(reader): |
| 5704 | obj = udp_src() |
| 5705 | _type_len = reader.read("!L")[0] |
| 5706 | assert(_type_len == 2147491330) |
| 5707 | obj.value = reader.read("!H")[0] |
| 5708 | return obj |
| 5709 | |
| 5710 | def __eq__(self, other): |
| 5711 | if type(self) != type(other): return False |
| 5712 | if self.value != other.value: return False |
| 5713 | return True |
| 5714 | |
| 5715 | def pretty_print(self, q): |
| 5716 | q.text("udp_src {") |
| 5717 | with q.group(): |
| 5718 | with q.indent(2): |
| 5719 | q.breakable() |
| 5720 | q.text("value = "); |
| 5721 | q.text("%#x" % self.value) |
| 5722 | q.breakable() |
| 5723 | q.text('}') |
| 5724 | |
| 5725 | oxm.subtypes[2147491330] = udp_src |
| 5726 | |
| 5727 | class udp_src_masked(oxm): |
| 5728 | type_len = 2147491588 |
| 5729 | |
| 5730 | def __init__(self, value=None, value_mask=None): |
| 5731 | if value != None: |
| 5732 | self.value = value |
| 5733 | else: |
| 5734 | self.value = 0 |
| 5735 | if value_mask != None: |
| 5736 | self.value_mask = value_mask |
| 5737 | else: |
| 5738 | self.value_mask = 0 |
| 5739 | return |
| 5740 | |
| 5741 | def pack(self): |
| 5742 | packed = [] |
| 5743 | packed.append(struct.pack("!L", self.type_len)) |
| 5744 | packed.append(struct.pack("!H", self.value)) |
| 5745 | packed.append(struct.pack("!H", self.value_mask)) |
| 5746 | return ''.join(packed) |
| 5747 | |
| 5748 | @staticmethod |
| 5749 | def unpack(reader): |
| 5750 | obj = udp_src_masked() |
| 5751 | _type_len = reader.read("!L")[0] |
| 5752 | assert(_type_len == 2147491588) |
| 5753 | obj.value = reader.read("!H")[0] |
| 5754 | obj.value_mask = reader.read("!H")[0] |
| 5755 | return obj |
| 5756 | |
| 5757 | def __eq__(self, other): |
| 5758 | if type(self) != type(other): return False |
| 5759 | if self.value != other.value: return False |
| 5760 | if self.value_mask != other.value_mask: return False |
| 5761 | return True |
| 5762 | |
| 5763 | def pretty_print(self, q): |
| 5764 | q.text("udp_src_masked {") |
| 5765 | with q.group(): |
| 5766 | with q.indent(2): |
| 5767 | q.breakable() |
| 5768 | q.text("value = "); |
| 5769 | q.text("%#x" % self.value) |
| 5770 | q.text(","); q.breakable() |
| 5771 | q.text("value_mask = "); |
| 5772 | q.text("%#x" % self.value_mask) |
| 5773 | q.breakable() |
| 5774 | q.text('}') |
| 5775 | |
| 5776 | oxm.subtypes[2147491588] = udp_src_masked |
| 5777 | |
| 5778 | class vlan_pcp(oxm): |
| 5779 | type_len = 2147487233 |
| 5780 | |
| 5781 | def __init__(self, value=None): |
| 5782 | if value != None: |
| 5783 | self.value = value |
| 5784 | else: |
| 5785 | self.value = 0 |
| 5786 | return |
| 5787 | |
| 5788 | def pack(self): |
| 5789 | packed = [] |
| 5790 | packed.append(struct.pack("!L", self.type_len)) |
| 5791 | packed.append(struct.pack("!B", self.value)) |
| 5792 | return ''.join(packed) |
| 5793 | |
| 5794 | @staticmethod |
| 5795 | def unpack(reader): |
| 5796 | obj = vlan_pcp() |
| 5797 | _type_len = reader.read("!L")[0] |
| 5798 | assert(_type_len == 2147487233) |
| 5799 | obj.value = reader.read("!B")[0] |
| 5800 | return obj |
| 5801 | |
| 5802 | def __eq__(self, other): |
| 5803 | if type(self) != type(other): return False |
| 5804 | if self.value != other.value: return False |
| 5805 | return True |
| 5806 | |
| 5807 | def pretty_print(self, q): |
| 5808 | q.text("vlan_pcp {") |
| 5809 | with q.group(): |
| 5810 | with q.indent(2): |
| 5811 | q.breakable() |
| 5812 | q.text("value = "); |
| 5813 | q.text("%#x" % self.value) |
| 5814 | q.breakable() |
| 5815 | q.text('}') |
| 5816 | |
| 5817 | oxm.subtypes[2147487233] = vlan_pcp |
| 5818 | |
| 5819 | class vlan_pcp_masked(oxm): |
| 5820 | type_len = 2147487490 |
| 5821 | |
| 5822 | def __init__(self, value=None, value_mask=None): |
| 5823 | if value != None: |
| 5824 | self.value = value |
| 5825 | else: |
| 5826 | self.value = 0 |
| 5827 | if value_mask != None: |
| 5828 | self.value_mask = value_mask |
| 5829 | else: |
| 5830 | self.value_mask = 0 |
| 5831 | return |
| 5832 | |
| 5833 | def pack(self): |
| 5834 | packed = [] |
| 5835 | packed.append(struct.pack("!L", self.type_len)) |
| 5836 | packed.append(struct.pack("!B", self.value)) |
| 5837 | packed.append(struct.pack("!B", self.value_mask)) |
| 5838 | return ''.join(packed) |
| 5839 | |
| 5840 | @staticmethod |
| 5841 | def unpack(reader): |
| 5842 | obj = vlan_pcp_masked() |
| 5843 | _type_len = reader.read("!L")[0] |
| 5844 | assert(_type_len == 2147487490) |
| 5845 | obj.value = reader.read("!B")[0] |
| 5846 | obj.value_mask = reader.read("!B")[0] |
| 5847 | return obj |
| 5848 | |
| 5849 | def __eq__(self, other): |
| 5850 | if type(self) != type(other): return False |
| 5851 | if self.value != other.value: return False |
| 5852 | if self.value_mask != other.value_mask: return False |
| 5853 | return True |
| 5854 | |
| 5855 | def pretty_print(self, q): |
| 5856 | q.text("vlan_pcp_masked {") |
| 5857 | with q.group(): |
| 5858 | with q.indent(2): |
| 5859 | q.breakable() |
| 5860 | q.text("value = "); |
| 5861 | q.text("%#x" % self.value) |
| 5862 | q.text(","); q.breakable() |
| 5863 | q.text("value_mask = "); |
| 5864 | q.text("%#x" % self.value_mask) |
| 5865 | q.breakable() |
| 5866 | q.text('}') |
| 5867 | |
| 5868 | oxm.subtypes[2147487490] = vlan_pcp_masked |
| 5869 | |
| 5870 | class vlan_vid(oxm): |
| 5871 | type_len = 2147486722 |
| 5872 | |
| 5873 | def __init__(self, value=None): |
| 5874 | if value != None: |
| 5875 | self.value = value |
| 5876 | else: |
| 5877 | self.value = 0 |
| 5878 | return |
| 5879 | |
| 5880 | def pack(self): |
| 5881 | packed = [] |
| 5882 | packed.append(struct.pack("!L", self.type_len)) |
| 5883 | packed.append(struct.pack("!H", self.value)) |
| 5884 | return ''.join(packed) |
| 5885 | |
| 5886 | @staticmethod |
| 5887 | def unpack(reader): |
| 5888 | obj = vlan_vid() |
| 5889 | _type_len = reader.read("!L")[0] |
| 5890 | assert(_type_len == 2147486722) |
| 5891 | obj.value = reader.read("!H")[0] |
| 5892 | return obj |
| 5893 | |
| 5894 | def __eq__(self, other): |
| 5895 | if type(self) != type(other): return False |
| 5896 | if self.value != other.value: return False |
| 5897 | return True |
| 5898 | |
| 5899 | def pretty_print(self, q): |
| 5900 | q.text("vlan_vid {") |
| 5901 | with q.group(): |
| 5902 | with q.indent(2): |
| 5903 | q.breakable() |
| 5904 | q.text("value = "); |
| 5905 | q.text("%#x" % self.value) |
| 5906 | q.breakable() |
| 5907 | q.text('}') |
| 5908 | |
| 5909 | oxm.subtypes[2147486722] = vlan_vid |
| 5910 | |
| 5911 | class vlan_vid_masked(oxm): |
| 5912 | type_len = 2147486980 |
| 5913 | |
| 5914 | def __init__(self, value=None, value_mask=None): |
| 5915 | if value != None: |
| 5916 | self.value = value |
| 5917 | else: |
| 5918 | self.value = 0 |
| 5919 | if value_mask != None: |
| 5920 | self.value_mask = value_mask |
| 5921 | else: |
| 5922 | self.value_mask = 0 |
| 5923 | return |
| 5924 | |
| 5925 | def pack(self): |
| 5926 | packed = [] |
| 5927 | packed.append(struct.pack("!L", self.type_len)) |
| 5928 | packed.append(struct.pack("!H", self.value)) |
| 5929 | packed.append(struct.pack("!H", self.value_mask)) |
| 5930 | return ''.join(packed) |
| 5931 | |
| 5932 | @staticmethod |
| 5933 | def unpack(reader): |
| 5934 | obj = vlan_vid_masked() |
| 5935 | _type_len = reader.read("!L")[0] |
| 5936 | assert(_type_len == 2147486980) |
| 5937 | obj.value = reader.read("!H")[0] |
| 5938 | obj.value_mask = reader.read("!H")[0] |
| 5939 | return obj |
| 5940 | |
| 5941 | def __eq__(self, other): |
| 5942 | if type(self) != type(other): return False |
| 5943 | if self.value != other.value: return False |
| 5944 | if self.value_mask != other.value_mask: return False |
| 5945 | return True |
| 5946 | |
| 5947 | def pretty_print(self, q): |
| 5948 | q.text("vlan_vid_masked {") |
| 5949 | with q.group(): |
| 5950 | with q.indent(2): |
| 5951 | q.breakable() |
| 5952 | q.text("value = "); |
| 5953 | q.text("%#x" % self.value) |
| 5954 | q.text(","); q.breakable() |
| 5955 | q.text("value_mask = "); |
| 5956 | q.text("%#x" % self.value_mask) |
| 5957 | q.breakable() |
| 5958 | q.text('}') |
| 5959 | |
| 5960 | oxm.subtypes[2147486980] = vlan_vid_masked |
| 5961 | |
| 5962 | |