blob: 3701cc612e6e10cb60fd5994fd29ef0ef59cf42a [file] [log] [blame]
Rich Lanec2ee4b82013-04-24 17:12:38 -07001# Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University
2# Copyright (c) 2011, 2012 Open Networking Foundation
3# Copyright (c) 2012, 2013 Big Switch Networks, Inc.
Dan Talaycof6202252013-07-02 01:00:29 -07004# See the file LICENSE.pyloxi which should have been included in the source distribution
Rich Lanec2ee4b82013-04-24 17:12:38 -07005
Rich Lane7dcdf022013-12-11 14:45:27 -08006# Automatically generated by LOXI from template module.py
Rich Lanec2ee4b82013-04-24 17:12:38 -07007# Do not modify
8
9import struct
Rich Lane7dcdf022013-12-11 14:45:27 -080010import loxi
Rich Lanec2ee4b82013-04-24 17:12:38 -070011import util
12import loxi.generic_util
Rich Lanec2ee4b82013-04-24 17:12:38 -070013
Rich Lanee2567702015-01-26 15:04:35 -080014import sys
15ofp = sys.modules['loxi.of12']
16
Rich Lane7dcdf022013-12-11 14:45:27 -080017class oxm(loxi.OFObject):
18 subtypes = {}
Rich Laned53156a2013-08-05 17:17:33 -070019
Rich Lane95f7fc92014-01-27 17:08:16 -080020
21 def __init__(self, type_len=None):
22 if type_len != None:
23 self.type_len = type_len
24 else:
25 self.type_len = 0
26 return
27
28 def pack(self):
29 packed = []
30 packed.append(struct.pack("!L", self.type_len))
31 return ''.join(packed)
32
Rich Lane7dcdf022013-12-11 14:45:27 -080033 @staticmethod
34 def unpack(reader):
35 subtype, = reader.peek('!L', 0)
Rich Lane95f7fc92014-01-27 17:08:16 -080036 subclass = oxm.subtypes.get(subtype)
37 if subclass:
38 return subclass.unpack(reader)
39
40 obj = oxm()
41 obj.type_len = reader.read("!L")[0]
42 return obj
43
44 def __eq__(self, other):
45 if type(self) != type(other): return False
46 if self.type_len != other.type_len: return False
47 return True
48
49 def pretty_print(self, q):
50 q.text("oxm {")
51 with q.group():
52 with q.indent(2):
53 q.breakable()
54 q.breakable()
55 q.text('}')
Rich Lanec2ee4b82013-04-24 17:12:38 -070056
Rich Lanec2ee4b82013-04-24 17:12:38 -070057
Rich Lane7dcdf022013-12-11 14:45:27 -080058class arp_op(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -070059 type_len = 2147494402
Rich Lanec2ee4b82013-04-24 17:12:38 -070060
61 def __init__(self, value=None):
62 if value != None:
63 self.value = value
64 else:
65 self.value = 0
Rich Lane7dcdf022013-12-11 14:45:27 -080066 return
Rich Lanec2ee4b82013-04-24 17:12:38 -070067
68 def pack(self):
69 packed = []
70 packed.append(struct.pack("!L", self.type_len))
71 packed.append(struct.pack("!H", self.value))
72 return ''.join(packed)
73
74 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -080075 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -070076 obj = arp_op()
Dan Talaycof6202252013-07-02 01:00:29 -070077 _type_len = reader.read("!L")[0]
78 assert(_type_len == 2147494402)
79 obj.value = reader.read("!H")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -070080 return obj
81
82 def __eq__(self, other):
83 if type(self) != type(other): return False
84 if self.value != other.value: return False
85 return True
86
Rich Lanec2ee4b82013-04-24 17:12:38 -070087 def pretty_print(self, q):
88 q.text("arp_op {")
89 with q.group():
90 with q.indent(2):
91 q.breakable()
92 q.text("value = ");
93 q.text("%#x" % self.value)
94 q.breakable()
95 q.text('}')
96
Rich Lane7dcdf022013-12-11 14:45:27 -080097oxm.subtypes[2147494402] = arp_op
98
99class arp_op_masked(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -0700100 type_len = 2147494660
Rich Lanec2ee4b82013-04-24 17:12:38 -0700101
102 def __init__(self, value=None, value_mask=None):
103 if value != None:
104 self.value = value
105 else:
106 self.value = 0
107 if value_mask != None:
108 self.value_mask = value_mask
109 else:
110 self.value_mask = 0
Rich Lane7dcdf022013-12-11 14:45:27 -0800111 return
Rich Lanec2ee4b82013-04-24 17:12:38 -0700112
113 def pack(self):
114 packed = []
115 packed.append(struct.pack("!L", self.type_len))
116 packed.append(struct.pack("!H", self.value))
117 packed.append(struct.pack("!H", self.value_mask))
118 return ''.join(packed)
119
120 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -0800121 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -0700122 obj = arp_op_masked()
Dan Talaycof6202252013-07-02 01:00:29 -0700123 _type_len = reader.read("!L")[0]
124 assert(_type_len == 2147494660)
125 obj.value = reader.read("!H")[0]
126 obj.value_mask = reader.read("!H")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -0700127 return obj
128
129 def __eq__(self, other):
130 if type(self) != type(other): return False
131 if self.value != other.value: return False
132 if self.value_mask != other.value_mask: return False
133 return True
134
Rich Lanec2ee4b82013-04-24 17:12:38 -0700135 def pretty_print(self, q):
136 q.text("arp_op_masked {")
137 with q.group():
138 with q.indent(2):
139 q.breakable()
140 q.text("value = ");
141 q.text("%#x" % self.value)
142 q.text(","); q.breakable()
143 q.text("value_mask = ");
144 q.text("%#x" % self.value_mask)
145 q.breakable()
146 q.text('}')
147
Rich Lane7dcdf022013-12-11 14:45:27 -0800148oxm.subtypes[2147494660] = arp_op_masked
149
150class arp_sha(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -0700151 type_len = 2147495942
Rich Lanec2ee4b82013-04-24 17:12:38 -0700152
153 def __init__(self, value=None):
154 if value != None:
155 self.value = value
156 else:
157 self.value = [0,0,0,0,0,0]
Rich Lane7dcdf022013-12-11 14:45:27 -0800158 return
Rich Lanec2ee4b82013-04-24 17:12:38 -0700159
160 def pack(self):
161 packed = []
162 packed.append(struct.pack("!L", self.type_len))
163 packed.append(struct.pack("!6B", *self.value))
164 return ''.join(packed)
165
166 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -0800167 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -0700168 obj = arp_sha()
Dan Talaycof6202252013-07-02 01:00:29 -0700169 _type_len = reader.read("!L")[0]
170 assert(_type_len == 2147495942)
Rich Lanec2ee4b82013-04-24 17:12:38 -0700171 obj.value = list(reader.read('!6B'))
172 return obj
173
174 def __eq__(self, other):
175 if type(self) != type(other): return False
176 if self.value != other.value: return False
177 return True
178
Rich Lanec2ee4b82013-04-24 17:12:38 -0700179 def pretty_print(self, q):
180 q.text("arp_sha {")
181 with q.group():
182 with q.indent(2):
183 q.breakable()
184 q.text("value = ");
185 q.text(util.pretty_mac(self.value))
186 q.breakable()
187 q.text('}')
188
Rich Lane7dcdf022013-12-11 14:45:27 -0800189oxm.subtypes[2147495942] = arp_sha
190
191class arp_sha_masked(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -0700192 type_len = 2147496204
Rich Lanec2ee4b82013-04-24 17:12:38 -0700193
194 def __init__(self, value=None, value_mask=None):
195 if value != None:
196 self.value = value
197 else:
198 self.value = [0,0,0,0,0,0]
199 if value_mask != None:
200 self.value_mask = value_mask
201 else:
202 self.value_mask = [0,0,0,0,0,0]
Rich Lane7dcdf022013-12-11 14:45:27 -0800203 return
Rich Lanec2ee4b82013-04-24 17:12:38 -0700204
205 def pack(self):
206 packed = []
207 packed.append(struct.pack("!L", self.type_len))
208 packed.append(struct.pack("!6B", *self.value))
209 packed.append(struct.pack("!6B", *self.value_mask))
210 return ''.join(packed)
211
212 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -0800213 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -0700214 obj = arp_sha_masked()
Dan Talaycof6202252013-07-02 01:00:29 -0700215 _type_len = reader.read("!L")[0]
216 assert(_type_len == 2147496204)
Rich Lanec2ee4b82013-04-24 17:12:38 -0700217 obj.value = list(reader.read('!6B'))
218 obj.value_mask = list(reader.read('!6B'))
219 return obj
220
221 def __eq__(self, other):
222 if type(self) != type(other): return False
223 if self.value != other.value: return False
224 if self.value_mask != other.value_mask: return False
225 return True
226
Rich Lanec2ee4b82013-04-24 17:12:38 -0700227 def pretty_print(self, q):
228 q.text("arp_sha_masked {")
229 with q.group():
230 with q.indent(2):
231 q.breakable()
232 q.text("value = ");
233 q.text(util.pretty_mac(self.value))
234 q.text(","); q.breakable()
235 q.text("value_mask = ");
236 q.text(util.pretty_mac(self.value_mask))
237 q.breakable()
238 q.text('}')
239
Rich Lane7dcdf022013-12-11 14:45:27 -0800240oxm.subtypes[2147496204] = arp_sha_masked
241
242class arp_spa(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -0700243 type_len = 2147494916
Rich Lanec2ee4b82013-04-24 17:12:38 -0700244
245 def __init__(self, value=None):
246 if value != None:
247 self.value = value
248 else:
249 self.value = 0
Rich Lane7dcdf022013-12-11 14:45:27 -0800250 return
Rich Lanec2ee4b82013-04-24 17:12:38 -0700251
252 def pack(self):
253 packed = []
254 packed.append(struct.pack("!L", self.type_len))
255 packed.append(struct.pack("!L", self.value))
256 return ''.join(packed)
257
258 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -0800259 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -0700260 obj = arp_spa()
Dan Talaycof6202252013-07-02 01:00:29 -0700261 _type_len = reader.read("!L")[0]
262 assert(_type_len == 2147494916)
263 obj.value = reader.read("!L")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -0700264 return obj
265
266 def __eq__(self, other):
267 if type(self) != type(other): return False
268 if self.value != other.value: return False
269 return True
270
Rich Lanec2ee4b82013-04-24 17:12:38 -0700271 def pretty_print(self, q):
272 q.text("arp_spa {")
273 with q.group():
274 with q.indent(2):
275 q.breakable()
276 q.text("value = ");
277 q.text("%#x" % self.value)
278 q.breakable()
279 q.text('}')
280
Rich Lane7dcdf022013-12-11 14:45:27 -0800281oxm.subtypes[2147494916] = arp_spa
282
283class arp_spa_masked(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -0700284 type_len = 2147495176
Rich Lanec2ee4b82013-04-24 17:12:38 -0700285
286 def __init__(self, value=None, value_mask=None):
287 if value != None:
288 self.value = value
289 else:
290 self.value = 0
291 if value_mask != None:
292 self.value_mask = value_mask
293 else:
294 self.value_mask = 0
Rich Lane7dcdf022013-12-11 14:45:27 -0800295 return
Rich Lanec2ee4b82013-04-24 17:12:38 -0700296
297 def pack(self):
298 packed = []
299 packed.append(struct.pack("!L", self.type_len))
300 packed.append(struct.pack("!L", self.value))
301 packed.append(struct.pack("!L", self.value_mask))
302 return ''.join(packed)
303
304 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -0800305 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -0700306 obj = arp_spa_masked()
Dan Talaycof6202252013-07-02 01:00:29 -0700307 _type_len = reader.read("!L")[0]
308 assert(_type_len == 2147495176)
309 obj.value = reader.read("!L")[0]
310 obj.value_mask = reader.read("!L")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -0700311 return obj
312
313 def __eq__(self, other):
314 if type(self) != type(other): return False
315 if self.value != other.value: return False
316 if self.value_mask != other.value_mask: return False
317 return True
318
Rich Lanec2ee4b82013-04-24 17:12:38 -0700319 def pretty_print(self, q):
320 q.text("arp_spa_masked {")
321 with q.group():
322 with q.indent(2):
323 q.breakable()
324 q.text("value = ");
325 q.text("%#x" % self.value)
326 q.text(","); q.breakable()
327 q.text("value_mask = ");
328 q.text("%#x" % self.value_mask)
329 q.breakable()
330 q.text('}')
331
Rich Lane7dcdf022013-12-11 14:45:27 -0800332oxm.subtypes[2147495176] = arp_spa_masked
333
334class arp_tha(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -0700335 type_len = 2147496454
Rich Lanec2ee4b82013-04-24 17:12:38 -0700336
337 def __init__(self, value=None):
338 if value != None:
339 self.value = value
340 else:
341 self.value = [0,0,0,0,0,0]
Rich Lane7dcdf022013-12-11 14:45:27 -0800342 return
Rich Lanec2ee4b82013-04-24 17:12:38 -0700343
344 def pack(self):
345 packed = []
346 packed.append(struct.pack("!L", self.type_len))
347 packed.append(struct.pack("!6B", *self.value))
348 return ''.join(packed)
349
350 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -0800351 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -0700352 obj = arp_tha()
Dan Talaycof6202252013-07-02 01:00:29 -0700353 _type_len = reader.read("!L")[0]
354 assert(_type_len == 2147496454)
Rich Lanec2ee4b82013-04-24 17:12:38 -0700355 obj.value = list(reader.read('!6B'))
356 return obj
357
358 def __eq__(self, other):
359 if type(self) != type(other): return False
360 if self.value != other.value: return False
361 return True
362
Rich Lanec2ee4b82013-04-24 17:12:38 -0700363 def pretty_print(self, q):
364 q.text("arp_tha {")
365 with q.group():
366 with q.indent(2):
367 q.breakable()
368 q.text("value = ");
369 q.text(util.pretty_mac(self.value))
370 q.breakable()
371 q.text('}')
372
Rich Lane7dcdf022013-12-11 14:45:27 -0800373oxm.subtypes[2147496454] = arp_tha
374
375class arp_tha_masked(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -0700376 type_len = 2147496716
Rich Lanec2ee4b82013-04-24 17:12:38 -0700377
378 def __init__(self, value=None, value_mask=None):
379 if value != None:
380 self.value = value
381 else:
382 self.value = [0,0,0,0,0,0]
383 if value_mask != None:
384 self.value_mask = value_mask
385 else:
386 self.value_mask = [0,0,0,0,0,0]
Rich Lane7dcdf022013-12-11 14:45:27 -0800387 return
Rich Lanec2ee4b82013-04-24 17:12:38 -0700388
389 def pack(self):
390 packed = []
391 packed.append(struct.pack("!L", self.type_len))
392 packed.append(struct.pack("!6B", *self.value))
393 packed.append(struct.pack("!6B", *self.value_mask))
394 return ''.join(packed)
395
396 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -0800397 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -0700398 obj = arp_tha_masked()
Dan Talaycof6202252013-07-02 01:00:29 -0700399 _type_len = reader.read("!L")[0]
400 assert(_type_len == 2147496716)
Rich Lanec2ee4b82013-04-24 17:12:38 -0700401 obj.value = list(reader.read('!6B'))
402 obj.value_mask = list(reader.read('!6B'))
403 return obj
404
405 def __eq__(self, other):
406 if type(self) != type(other): return False
407 if self.value != other.value: return False
408 if self.value_mask != other.value_mask: return False
409 return True
410
Rich Lanec2ee4b82013-04-24 17:12:38 -0700411 def pretty_print(self, q):
412 q.text("arp_tha_masked {")
413 with q.group():
414 with q.indent(2):
415 q.breakable()
416 q.text("value = ");
417 q.text(util.pretty_mac(self.value))
418 q.text(","); q.breakable()
419 q.text("value_mask = ");
420 q.text(util.pretty_mac(self.value_mask))
421 q.breakable()
422 q.text('}')
423
Rich Lane7dcdf022013-12-11 14:45:27 -0800424oxm.subtypes[2147496716] = arp_tha_masked
425
426class arp_tpa(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -0700427 type_len = 2147495428
Rich Lanec2ee4b82013-04-24 17:12:38 -0700428
429 def __init__(self, value=None):
430 if value != None:
431 self.value = value
432 else:
433 self.value = 0
Rich Lane7dcdf022013-12-11 14:45:27 -0800434 return
Rich Lanec2ee4b82013-04-24 17:12:38 -0700435
436 def pack(self):
437 packed = []
438 packed.append(struct.pack("!L", self.type_len))
439 packed.append(struct.pack("!L", self.value))
440 return ''.join(packed)
441
442 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -0800443 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -0700444 obj = arp_tpa()
Dan Talaycof6202252013-07-02 01:00:29 -0700445 _type_len = reader.read("!L")[0]
446 assert(_type_len == 2147495428)
447 obj.value = reader.read("!L")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -0700448 return obj
449
450 def __eq__(self, other):
451 if type(self) != type(other): return False
452 if self.value != other.value: return False
453 return True
454
Rich Lanec2ee4b82013-04-24 17:12:38 -0700455 def pretty_print(self, q):
456 q.text("arp_tpa {")
457 with q.group():
458 with q.indent(2):
459 q.breakable()
460 q.text("value = ");
461 q.text("%#x" % self.value)
462 q.breakable()
463 q.text('}')
464
Rich Lane7dcdf022013-12-11 14:45:27 -0800465oxm.subtypes[2147495428] = arp_tpa
466
467class arp_tpa_masked(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -0700468 type_len = 2147495688
Rich Lanec2ee4b82013-04-24 17:12:38 -0700469
470 def __init__(self, value=None, value_mask=None):
471 if value != None:
472 self.value = value
473 else:
474 self.value = 0
475 if value_mask != None:
476 self.value_mask = value_mask
477 else:
478 self.value_mask = 0
Rich Lane7dcdf022013-12-11 14:45:27 -0800479 return
Rich Lanec2ee4b82013-04-24 17:12:38 -0700480
481 def pack(self):
482 packed = []
483 packed.append(struct.pack("!L", self.type_len))
484 packed.append(struct.pack("!L", self.value))
485 packed.append(struct.pack("!L", self.value_mask))
486 return ''.join(packed)
487
488 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -0800489 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -0700490 obj = arp_tpa_masked()
Dan Talaycof6202252013-07-02 01:00:29 -0700491 _type_len = reader.read("!L")[0]
492 assert(_type_len == 2147495688)
493 obj.value = reader.read("!L")[0]
494 obj.value_mask = reader.read("!L")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -0700495 return obj
496
497 def __eq__(self, other):
498 if type(self) != type(other): return False
499 if self.value != other.value: return False
500 if self.value_mask != other.value_mask: return False
501 return True
502
Rich Lanec2ee4b82013-04-24 17:12:38 -0700503 def pretty_print(self, q):
504 q.text("arp_tpa_masked {")
505 with q.group():
506 with q.indent(2):
507 q.breakable()
508 q.text("value = ");
509 q.text("%#x" % self.value)
510 q.text(","); q.breakable()
511 q.text("value_mask = ");
512 q.text("%#x" % self.value_mask)
513 q.breakable()
514 q.text('}')
515
Rich Lane7dcdf022013-12-11 14:45:27 -0800516oxm.subtypes[2147495688] = arp_tpa_masked
517
Rich Lanec0d05d12014-03-11 18:02:24 -0700518class bsn_egr_port_group_id(oxm):
519 type_len = 200196
520
521 def __init__(self, value=None):
522 if value != None:
523 self.value = value
524 else:
525 self.value = 0
526 return
527
528 def pack(self):
529 packed = []
530 packed.append(struct.pack("!L", self.type_len))
531 packed.append(struct.pack("!L", self.value))
532 return ''.join(packed)
533
534 @staticmethod
535 def unpack(reader):
536 obj = bsn_egr_port_group_id()
537 _type_len = reader.read("!L")[0]
538 assert(_type_len == 200196)
539 obj.value = reader.read("!L")[0]
540 return obj
541
542 def __eq__(self, other):
543 if type(self) != type(other): return False
544 if self.value != other.value: return False
545 return True
546
547 def pretty_print(self, q):
548 q.text("bsn_egr_port_group_id {")
549 with q.group():
550 with q.indent(2):
551 q.breakable()
552 q.text("value = ");
553 q.text("%#x" % self.value)
554 q.breakable()
555 q.text('}')
556
557oxm.subtypes[200196] = bsn_egr_port_group_id
558
559class bsn_egr_port_group_id_masked(oxm):
560 type_len = 200456
561
562 def __init__(self, value=None, value_mask=None):
563 if value != None:
564 self.value = value
565 else:
566 self.value = 0
567 if value_mask != None:
568 self.value_mask = value_mask
569 else:
570 self.value_mask = 0
571 return
572
573 def pack(self):
574 packed = []
575 packed.append(struct.pack("!L", self.type_len))
576 packed.append(struct.pack("!L", self.value))
577 packed.append(struct.pack("!L", self.value_mask))
578 return ''.join(packed)
579
580 @staticmethod
581 def unpack(reader):
582 obj = bsn_egr_port_group_id_masked()
583 _type_len = reader.read("!L")[0]
584 assert(_type_len == 200456)
585 obj.value = reader.read("!L")[0]
586 obj.value_mask = reader.read("!L")[0]
587 return obj
588
589 def __eq__(self, other):
590 if type(self) != type(other): return False
591 if self.value != other.value: return False
592 if self.value_mask != other.value_mask: return False
593 return True
594
595 def pretty_print(self, q):
596 q.text("bsn_egr_port_group_id_masked {")
597 with q.group():
598 with q.indent(2):
599 q.breakable()
600 q.text("value = ");
601 q.text("%#x" % self.value)
602 q.text(","); q.breakable()
603 q.text("value_mask = ");
604 q.text("%#x" % self.value_mask)
605 q.breakable()
606 q.text('}')
607
608oxm.subtypes[200456] = bsn_egr_port_group_id_masked
609
Rich Lane7dcdf022013-12-11 14:45:27 -0800610class bsn_global_vrf_allowed(oxm):
Rich Laned9e3f7b2013-11-04 11:40:43 -0800611 type_len = 198145
612
613 def __init__(self, value=None):
614 if value != None:
615 self.value = value
616 else:
617 self.value = 0
Rich Lane7dcdf022013-12-11 14:45:27 -0800618 return
Rich Laned9e3f7b2013-11-04 11:40:43 -0800619
620 def pack(self):
621 packed = []
622 packed.append(struct.pack("!L", self.type_len))
623 packed.append(struct.pack("!B", self.value))
624 return ''.join(packed)
625
626 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -0800627 def unpack(reader):
Rich Laned9e3f7b2013-11-04 11:40:43 -0800628 obj = bsn_global_vrf_allowed()
Rich Laned9e3f7b2013-11-04 11:40:43 -0800629 _type_len = reader.read("!L")[0]
630 assert(_type_len == 198145)
631 obj.value = reader.read("!B")[0]
632 return obj
633
634 def __eq__(self, other):
635 if type(self) != type(other): return False
636 if self.value != other.value: return False
637 return True
638
Rich Laned9e3f7b2013-11-04 11:40:43 -0800639 def pretty_print(self, q):
640 q.text("bsn_global_vrf_allowed {")
641 with q.group():
642 with q.indent(2):
643 q.breakable()
644 q.text("value = ");
645 q.text("%#x" % self.value)
646 q.breakable()
647 q.text('}')
648
Rich Lane7dcdf022013-12-11 14:45:27 -0800649oxm.subtypes[198145] = bsn_global_vrf_allowed
650
651class bsn_global_vrf_allowed_masked(oxm):
652 type_len = 198402
Rich Laned9e3f7b2013-11-04 11:40:43 -0800653
654 def __init__(self, value=None, value_mask=None):
655 if value != None:
656 self.value = value
657 else:
658 self.value = 0
659 if value_mask != None:
660 self.value_mask = value_mask
661 else:
662 self.value_mask = 0
Rich Lane7dcdf022013-12-11 14:45:27 -0800663 return
Rich Laned9e3f7b2013-11-04 11:40:43 -0800664
665 def pack(self):
666 packed = []
667 packed.append(struct.pack("!L", self.type_len))
668 packed.append(struct.pack("!B", self.value))
669 packed.append(struct.pack("!B", self.value_mask))
670 return ''.join(packed)
671
672 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -0800673 def unpack(reader):
Rich Laned9e3f7b2013-11-04 11:40:43 -0800674 obj = bsn_global_vrf_allowed_masked()
Rich Laned9e3f7b2013-11-04 11:40:43 -0800675 _type_len = reader.read("!L")[0]
Rich Lane7dcdf022013-12-11 14:45:27 -0800676 assert(_type_len == 198402)
Rich Laned9e3f7b2013-11-04 11:40:43 -0800677 obj.value = reader.read("!B")[0]
678 obj.value_mask = reader.read("!B")[0]
679 return obj
680
681 def __eq__(self, other):
682 if type(self) != type(other): return False
683 if self.value != other.value: return False
684 if self.value_mask != other.value_mask: return False
685 return True
686
Rich Laned9e3f7b2013-11-04 11:40:43 -0800687 def pretty_print(self, q):
688 q.text("bsn_global_vrf_allowed_masked {")
689 with q.group():
690 with q.indent(2):
691 q.breakable()
692 q.text("value = ");
693 q.text("%#x" % self.value)
694 q.text(","); q.breakable()
695 q.text("value_mask = ");
696 q.text("%#x" % self.value_mask)
697 q.breakable()
698 q.text('}')
699
Rich Lane7dcdf022013-12-11 14:45:27 -0800700oxm.subtypes[198402] = bsn_global_vrf_allowed_masked
701
702class bsn_in_ports_128(oxm):
703 type_len = 196624
Rich Lane6f4978c2013-10-20 21:33:52 -0700704
705 def __init__(self, value=None):
706 if value != None:
707 self.value = value
708 else:
709 self.value = set()
Rich Lane7dcdf022013-12-11 14:45:27 -0800710 return
Rich Lane6f4978c2013-10-20 21:33:52 -0700711
712 def pack(self):
713 packed = []
714 packed.append(struct.pack("!L", self.type_len))
715 packed.append(util.pack_bitmap_128(self.value))
716 return ''.join(packed)
717
718 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -0800719 def unpack(reader):
Rich Lane6f4978c2013-10-20 21:33:52 -0700720 obj = bsn_in_ports_128()
Rich Lane6f4978c2013-10-20 21:33:52 -0700721 _type_len = reader.read("!L")[0]
Rich Lane7dcdf022013-12-11 14:45:27 -0800722 assert(_type_len == 196624)
Rich Lane6f4978c2013-10-20 21:33:52 -0700723 obj.value = util.unpack_bitmap_128(reader)
724 return obj
725
726 def __eq__(self, other):
727 if type(self) != type(other): return False
728 if self.value != other.value: return False
729 return True
730
Rich Lane6f4978c2013-10-20 21:33:52 -0700731 def pretty_print(self, q):
732 q.text("bsn_in_ports_128 {")
733 with q.group():
734 with q.indent(2):
735 q.breakable()
736 q.text("value = ");
737 q.pp(self.value)
738 q.breakable()
739 q.text('}')
740
Rich Lane7dcdf022013-12-11 14:45:27 -0800741oxm.subtypes[196624] = bsn_in_ports_128
742
743class bsn_in_ports_128_masked(oxm):
Rich Lane6f4978c2013-10-20 21:33:52 -0700744 type_len = 196896
745
746 def __init__(self, value=None, value_mask=None):
747 if value != None:
748 self.value = value
749 else:
750 self.value = set()
751 if value_mask != None:
752 self.value_mask = value_mask
753 else:
754 self.value_mask = set()
Rich Lane7dcdf022013-12-11 14:45:27 -0800755 return
Rich Lane6f4978c2013-10-20 21:33:52 -0700756
757 def pack(self):
758 packed = []
759 packed.append(struct.pack("!L", self.type_len))
760 packed.append(util.pack_bitmap_128(self.value))
761 packed.append(util.pack_bitmap_128(self.value_mask))
762 return ''.join(packed)
763
764 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -0800765 def unpack(reader):
Rich Lane6f4978c2013-10-20 21:33:52 -0700766 obj = bsn_in_ports_128_masked()
Rich Lane6f4978c2013-10-20 21:33:52 -0700767 _type_len = reader.read("!L")[0]
768 assert(_type_len == 196896)
769 obj.value = util.unpack_bitmap_128(reader)
770 obj.value_mask = util.unpack_bitmap_128(reader)
771 return obj
772
773 def __eq__(self, other):
774 if type(self) != type(other): return False
775 if self.value != other.value: return False
776 if self.value_mask != other.value_mask: return False
777 return True
778
Rich Lane6f4978c2013-10-20 21:33:52 -0700779 def pretty_print(self, q):
780 q.text("bsn_in_ports_128_masked {")
781 with q.group():
782 with q.indent(2):
783 q.breakable()
784 q.text("value = ");
785 q.pp(self.value)
786 q.text(","); q.breakable()
787 q.text("value_mask = ");
788 q.pp(self.value_mask)
789 q.breakable()
790 q.text('}')
791
Rich Lane7dcdf022013-12-11 14:45:27 -0800792oxm.subtypes[196896] = bsn_in_ports_128_masked
793
Rich Lane474324f2015-01-14 15:22:56 -0800794class bsn_in_ports_512(oxm):
795 type_len = 206400
796
797 def __init__(self, value=None):
798 if value != None:
799 self.value = value
800 else:
801 self.value = set()
802 return
803
804 def pack(self):
805 packed = []
806 packed.append(struct.pack("!L", self.type_len))
807 packed.append(util.pack_bitmap_512(self.value))
808 return ''.join(packed)
809
810 @staticmethod
811 def unpack(reader):
812 obj = bsn_in_ports_512()
813 _type_len = reader.read("!L")[0]
814 assert(_type_len == 206400)
815 obj.value = util.unpack_bitmap_512(reader)
816 return obj
817
818 def __eq__(self, other):
819 if type(self) != type(other): return False
820 if self.value != other.value: return False
821 return True
822
823 def pretty_print(self, q):
824 q.text("bsn_in_ports_512 {")
825 with q.group():
826 with q.indent(2):
827 q.breakable()
828 q.text("value = ");
829 q.pp(self.value)
830 q.breakable()
831 q.text('}')
832
833oxm.subtypes[206400] = bsn_in_ports_512
834
835class bsn_in_ports_512_masked(oxm):
836 type_len = 206720
837
838 def __init__(self, value=None, value_mask=None):
839 if value != None:
840 self.value = value
841 else:
842 self.value = set()
843 if value_mask != None:
844 self.value_mask = value_mask
845 else:
846 self.value_mask = set()
847 return
848
849 def pack(self):
850 packed = []
851 packed.append(struct.pack("!L", self.type_len))
852 packed.append(util.pack_bitmap_512(self.value))
853 packed.append(util.pack_bitmap_512(self.value_mask))
854 return ''.join(packed)
855
856 @staticmethod
857 def unpack(reader):
858 obj = bsn_in_ports_512_masked()
859 _type_len = reader.read("!L")[0]
860 assert(_type_len == 206720)
861 obj.value = util.unpack_bitmap_512(reader)
862 obj.value_mask = util.unpack_bitmap_512(reader)
863 return obj
864
865 def __eq__(self, other):
866 if type(self) != type(other): return False
867 if self.value != other.value: return False
868 if self.value_mask != other.value_mask: return False
869 return True
870
871 def pretty_print(self, q):
872 q.text("bsn_in_ports_512_masked {")
873 with q.group():
874 with q.indent(2):
875 q.breakable()
876 q.text("value = ");
877 q.pp(self.value)
878 q.text(","); q.breakable()
879 q.text("value_mask = ");
880 q.pp(self.value_mask)
881 q.breakable()
882 q.text('}')
883
884oxm.subtypes[206720] = bsn_in_ports_512_masked
885
Rich Lane2d1b40e2015-02-11 12:45:33 -0800886class bsn_ingress_port_group_id(oxm):
887 type_len = 206852
888
889 def __init__(self, value=None):
890 if value != None:
891 self.value = value
892 else:
893 self.value = 0
894 return
895
896 def pack(self):
897 packed = []
898 packed.append(struct.pack("!L", self.type_len))
899 packed.append(struct.pack("!L", self.value))
900 return ''.join(packed)
901
902 @staticmethod
903 def unpack(reader):
904 obj = bsn_ingress_port_group_id()
905 _type_len = reader.read("!L")[0]
906 assert(_type_len == 206852)
907 obj.value = reader.read("!L")[0]
908 return obj
909
910 def __eq__(self, other):
911 if type(self) != type(other): return False
912 if self.value != other.value: return False
913 return True
914
915 def pretty_print(self, q):
916 q.text("bsn_ingress_port_group_id {")
917 with q.group():
918 with q.indent(2):
919 q.breakable()
920 q.text("value = ");
921 q.text("%#x" % self.value)
922 q.breakable()
923 q.text('}')
924
925oxm.subtypes[206852] = bsn_ingress_port_group_id
926
927class bsn_ingress_port_group_id_masked(oxm):
928 type_len = 207112
929
930 def __init__(self, value=None, value_mask=None):
931 if value != None:
932 self.value = value
933 else:
934 self.value = 0
935 if value_mask != None:
936 self.value_mask = value_mask
937 else:
938 self.value_mask = 0
939 return
940
941 def pack(self):
942 packed = []
943 packed.append(struct.pack("!L", self.type_len))
944 packed.append(struct.pack("!L", self.value))
945 packed.append(struct.pack("!L", self.value_mask))
946 return ''.join(packed)
947
948 @staticmethod
949 def unpack(reader):
950 obj = bsn_ingress_port_group_id_masked()
951 _type_len = reader.read("!L")[0]
952 assert(_type_len == 207112)
953 obj.value = reader.read("!L")[0]
954 obj.value_mask = reader.read("!L")[0]
955 return obj
956
957 def __eq__(self, other):
958 if type(self) != type(other): return False
959 if self.value != other.value: return False
960 if self.value_mask != other.value_mask: return False
961 return True
962
963 def pretty_print(self, q):
964 q.text("bsn_ingress_port_group_id_masked {")
965 with q.group():
966 with q.indent(2):
967 q.breakable()
968 q.text("value = ");
969 q.text("%#x" % self.value)
970 q.text(","); q.breakable()
971 q.text("value_mask = ");
972 q.text("%#x" % self.value_mask)
973 q.breakable()
974 q.text('}')
975
976oxm.subtypes[207112] = bsn_ingress_port_group_id_masked
977
Rich Laneccd32ed2014-11-10 17:48:24 -0800978class bsn_l2_cache_hit(oxm):
979 type_len = 205825
980
981 def __init__(self, value=None):
982 if value != None:
983 self.value = value
984 else:
985 self.value = 0
986 return
987
988 def pack(self):
989 packed = []
990 packed.append(struct.pack("!L", self.type_len))
991 packed.append(struct.pack("!B", self.value))
992 return ''.join(packed)
993
994 @staticmethod
995 def unpack(reader):
996 obj = bsn_l2_cache_hit()
997 _type_len = reader.read("!L")[0]
998 assert(_type_len == 205825)
999 obj.value = reader.read("!B")[0]
1000 return obj
1001
1002 def __eq__(self, other):
1003 if type(self) != type(other): return False
1004 if self.value != other.value: return False
1005 return True
1006
1007 def pretty_print(self, q):
1008 q.text("bsn_l2_cache_hit {")
1009 with q.group():
1010 with q.indent(2):
1011 q.breakable()
1012 q.text("value = ");
1013 q.text("%#x" % self.value)
1014 q.breakable()
1015 q.text('}')
1016
1017oxm.subtypes[205825] = bsn_l2_cache_hit
1018
1019class bsn_l2_cache_hit_masked(oxm):
1020 type_len = 206082
1021
1022 def __init__(self, value=None, value_mask=None):
1023 if value != None:
1024 self.value = value
1025 else:
1026 self.value = 0
1027 if value_mask != None:
1028 self.value_mask = value_mask
1029 else:
1030 self.value_mask = 0
1031 return
1032
1033 def pack(self):
1034 packed = []
1035 packed.append(struct.pack("!L", self.type_len))
1036 packed.append(struct.pack("!B", self.value))
1037 packed.append(struct.pack("!B", self.value_mask))
1038 return ''.join(packed)
1039
1040 @staticmethod
1041 def unpack(reader):
1042 obj = bsn_l2_cache_hit_masked()
1043 _type_len = reader.read("!L")[0]
1044 assert(_type_len == 206082)
1045 obj.value = reader.read("!B")[0]
1046 obj.value_mask = reader.read("!B")[0]
1047 return obj
1048
1049 def __eq__(self, other):
1050 if type(self) != type(other): return False
1051 if self.value != other.value: return False
1052 if self.value_mask != other.value_mask: return False
1053 return True
1054
1055 def pretty_print(self, q):
1056 q.text("bsn_l2_cache_hit_masked {")
1057 with q.group():
1058 with q.indent(2):
1059 q.breakable()
1060 q.text("value = ");
1061 q.text("%#x" % self.value)
1062 q.text(","); q.breakable()
1063 q.text("value_mask = ");
1064 q.text("%#x" % self.value_mask)
1065 q.breakable()
1066 q.text('}')
1067
1068oxm.subtypes[206082] = bsn_l2_cache_hit_masked
1069
Rich Lane7dcdf022013-12-11 14:45:27 -08001070class bsn_l3_dst_class_id(oxm):
Rich Laned9e3f7b2013-11-04 11:40:43 -08001071 type_len = 199684
1072
1073 def __init__(self, value=None):
1074 if value != None:
1075 self.value = value
1076 else:
1077 self.value = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08001078 return
Rich Laned9e3f7b2013-11-04 11:40:43 -08001079
1080 def pack(self):
1081 packed = []
1082 packed.append(struct.pack("!L", self.type_len))
1083 packed.append(struct.pack("!L", self.value))
1084 return ''.join(packed)
1085
1086 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08001087 def unpack(reader):
Rich Laned9e3f7b2013-11-04 11:40:43 -08001088 obj = bsn_l3_dst_class_id()
Rich Laned9e3f7b2013-11-04 11:40:43 -08001089 _type_len = reader.read("!L")[0]
1090 assert(_type_len == 199684)
1091 obj.value = reader.read("!L")[0]
1092 return obj
1093
1094 def __eq__(self, other):
1095 if type(self) != type(other): return False
1096 if self.value != other.value: return False
1097 return True
1098
Rich Laned9e3f7b2013-11-04 11:40:43 -08001099 def pretty_print(self, q):
1100 q.text("bsn_l3_dst_class_id {")
1101 with q.group():
1102 with q.indent(2):
1103 q.breakable()
1104 q.text("value = ");
1105 q.text("%#x" % self.value)
1106 q.breakable()
1107 q.text('}')
1108
Rich Lane7dcdf022013-12-11 14:45:27 -08001109oxm.subtypes[199684] = bsn_l3_dst_class_id
1110
1111class bsn_l3_dst_class_id_masked(oxm):
1112 type_len = 199944
Rich Laned9e3f7b2013-11-04 11:40:43 -08001113
1114 def __init__(self, value=None, value_mask=None):
1115 if value != None:
1116 self.value = value
1117 else:
1118 self.value = 0
1119 if value_mask != None:
1120 self.value_mask = value_mask
1121 else:
1122 self.value_mask = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08001123 return
Rich Laned9e3f7b2013-11-04 11:40:43 -08001124
1125 def pack(self):
1126 packed = []
1127 packed.append(struct.pack("!L", self.type_len))
1128 packed.append(struct.pack("!L", self.value))
1129 packed.append(struct.pack("!L", self.value_mask))
1130 return ''.join(packed)
1131
1132 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08001133 def unpack(reader):
Rich Laned9e3f7b2013-11-04 11:40:43 -08001134 obj = bsn_l3_dst_class_id_masked()
Rich Laned9e3f7b2013-11-04 11:40:43 -08001135 _type_len = reader.read("!L")[0]
Rich Lane7dcdf022013-12-11 14:45:27 -08001136 assert(_type_len == 199944)
Rich Laned9e3f7b2013-11-04 11:40:43 -08001137 obj.value = reader.read("!L")[0]
1138 obj.value_mask = reader.read("!L")[0]
1139 return obj
1140
1141 def __eq__(self, other):
1142 if type(self) != type(other): return False
1143 if self.value != other.value: return False
1144 if self.value_mask != other.value_mask: return False
1145 return True
1146
Rich Laned9e3f7b2013-11-04 11:40:43 -08001147 def pretty_print(self, q):
1148 q.text("bsn_l3_dst_class_id_masked {")
1149 with q.group():
1150 with q.indent(2):
1151 q.breakable()
1152 q.text("value = ");
1153 q.text("%#x" % self.value)
1154 q.text(","); q.breakable()
1155 q.text("value_mask = ");
1156 q.text("%#x" % self.value_mask)
1157 q.breakable()
1158 q.text('}')
1159
Rich Lane7dcdf022013-12-11 14:45:27 -08001160oxm.subtypes[199944] = bsn_l3_dst_class_id_masked
1161
1162class bsn_l3_interface_class_id(oxm):
Rich Laned9e3f7b2013-11-04 11:40:43 -08001163 type_len = 198660
1164
1165 def __init__(self, value=None):
1166 if value != None:
1167 self.value = value
1168 else:
1169 self.value = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08001170 return
Rich Laned9e3f7b2013-11-04 11:40:43 -08001171
1172 def pack(self):
1173 packed = []
1174 packed.append(struct.pack("!L", self.type_len))
1175 packed.append(struct.pack("!L", self.value))
1176 return ''.join(packed)
1177
1178 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08001179 def unpack(reader):
Rich Laned9e3f7b2013-11-04 11:40:43 -08001180 obj = bsn_l3_interface_class_id()
Rich Laned9e3f7b2013-11-04 11:40:43 -08001181 _type_len = reader.read("!L")[0]
1182 assert(_type_len == 198660)
1183 obj.value = reader.read("!L")[0]
1184 return obj
1185
1186 def __eq__(self, other):
1187 if type(self) != type(other): return False
1188 if self.value != other.value: return False
1189 return True
1190
Rich Laned9e3f7b2013-11-04 11:40:43 -08001191 def pretty_print(self, q):
1192 q.text("bsn_l3_interface_class_id {")
1193 with q.group():
1194 with q.indent(2):
1195 q.breakable()
1196 q.text("value = ");
1197 q.text("%#x" % self.value)
1198 q.breakable()
1199 q.text('}')
1200
Rich Lane7dcdf022013-12-11 14:45:27 -08001201oxm.subtypes[198660] = bsn_l3_interface_class_id
1202
1203class bsn_l3_interface_class_id_masked(oxm):
1204 type_len = 198920
Rich Laned9e3f7b2013-11-04 11:40:43 -08001205
1206 def __init__(self, value=None, value_mask=None):
1207 if value != None:
1208 self.value = value
1209 else:
1210 self.value = 0
1211 if value_mask != None:
1212 self.value_mask = value_mask
1213 else:
1214 self.value_mask = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08001215 return
Rich Laned9e3f7b2013-11-04 11:40:43 -08001216
1217 def pack(self):
1218 packed = []
1219 packed.append(struct.pack("!L", self.type_len))
1220 packed.append(struct.pack("!L", self.value))
1221 packed.append(struct.pack("!L", self.value_mask))
1222 return ''.join(packed)
1223
1224 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08001225 def unpack(reader):
Rich Laned9e3f7b2013-11-04 11:40:43 -08001226 obj = bsn_l3_interface_class_id_masked()
Rich Laned9e3f7b2013-11-04 11:40:43 -08001227 _type_len = reader.read("!L")[0]
Rich Lane7dcdf022013-12-11 14:45:27 -08001228 assert(_type_len == 198920)
Rich Laned9e3f7b2013-11-04 11:40:43 -08001229 obj.value = reader.read("!L")[0]
1230 obj.value_mask = reader.read("!L")[0]
1231 return obj
1232
1233 def __eq__(self, other):
1234 if type(self) != type(other): return False
1235 if self.value != other.value: return False
1236 if self.value_mask != other.value_mask: return False
1237 return True
1238
Rich Laned9e3f7b2013-11-04 11:40:43 -08001239 def pretty_print(self, q):
1240 q.text("bsn_l3_interface_class_id_masked {")
1241 with q.group():
1242 with q.indent(2):
1243 q.breakable()
1244 q.text("value = ");
1245 q.text("%#x" % self.value)
1246 q.text(","); q.breakable()
1247 q.text("value_mask = ");
1248 q.text("%#x" % self.value_mask)
1249 q.breakable()
1250 q.text('}')
1251
Rich Lane7dcdf022013-12-11 14:45:27 -08001252oxm.subtypes[198920] = bsn_l3_interface_class_id_masked
1253
1254class bsn_l3_src_class_id(oxm):
Rich Laned9e3f7b2013-11-04 11:40:43 -08001255 type_len = 199172
1256
1257 def __init__(self, value=None):
1258 if value != None:
1259 self.value = value
1260 else:
1261 self.value = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08001262 return
Rich Laned9e3f7b2013-11-04 11:40:43 -08001263
1264 def pack(self):
1265 packed = []
1266 packed.append(struct.pack("!L", self.type_len))
1267 packed.append(struct.pack("!L", self.value))
1268 return ''.join(packed)
1269
1270 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08001271 def unpack(reader):
Rich Laned9e3f7b2013-11-04 11:40:43 -08001272 obj = bsn_l3_src_class_id()
Rich Laned9e3f7b2013-11-04 11:40:43 -08001273 _type_len = reader.read("!L")[0]
1274 assert(_type_len == 199172)
1275 obj.value = reader.read("!L")[0]
1276 return obj
1277
1278 def __eq__(self, other):
1279 if type(self) != type(other): return False
1280 if self.value != other.value: return False
1281 return True
1282
Rich Laned9e3f7b2013-11-04 11:40:43 -08001283 def pretty_print(self, q):
1284 q.text("bsn_l3_src_class_id {")
1285 with q.group():
1286 with q.indent(2):
1287 q.breakable()
1288 q.text("value = ");
1289 q.text("%#x" % self.value)
1290 q.breakable()
1291 q.text('}')
1292
Rich Lane7dcdf022013-12-11 14:45:27 -08001293oxm.subtypes[199172] = bsn_l3_src_class_id
1294
1295class bsn_l3_src_class_id_masked(oxm):
1296 type_len = 199432
Rich Laned9e3f7b2013-11-04 11:40:43 -08001297
1298 def __init__(self, value=None, value_mask=None):
1299 if value != None:
1300 self.value = value
1301 else:
1302 self.value = 0
1303 if value_mask != None:
1304 self.value_mask = value_mask
1305 else:
1306 self.value_mask = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08001307 return
Rich Laned9e3f7b2013-11-04 11:40:43 -08001308
1309 def pack(self):
1310 packed = []
1311 packed.append(struct.pack("!L", self.type_len))
1312 packed.append(struct.pack("!L", self.value))
1313 packed.append(struct.pack("!L", self.value_mask))
1314 return ''.join(packed)
1315
1316 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08001317 def unpack(reader):
Rich Laned9e3f7b2013-11-04 11:40:43 -08001318 obj = bsn_l3_src_class_id_masked()
Rich Laned9e3f7b2013-11-04 11:40:43 -08001319 _type_len = reader.read("!L")[0]
Rich Lane7dcdf022013-12-11 14:45:27 -08001320 assert(_type_len == 199432)
Rich Laned9e3f7b2013-11-04 11:40:43 -08001321 obj.value = reader.read("!L")[0]
1322 obj.value_mask = reader.read("!L")[0]
1323 return obj
1324
1325 def __eq__(self, other):
1326 if type(self) != type(other): return False
1327 if self.value != other.value: return False
1328 if self.value_mask != other.value_mask: return False
1329 return True
1330
Rich Laned9e3f7b2013-11-04 11:40:43 -08001331 def pretty_print(self, q):
1332 q.text("bsn_l3_src_class_id_masked {")
1333 with q.group():
1334 with q.indent(2):
1335 q.breakable()
1336 q.text("value = ");
1337 q.text("%#x" % self.value)
1338 q.text(","); q.breakable()
1339 q.text("value_mask = ");
1340 q.text("%#x" % self.value_mask)
1341 q.breakable()
1342 q.text('}')
1343
Rich Lane7dcdf022013-12-11 14:45:27 -08001344oxm.subtypes[199432] = bsn_l3_src_class_id_masked
1345
1346class bsn_lag_id(oxm):
Rich Laned9e3f7b2013-11-04 11:40:43 -08001347 type_len = 197124
1348
1349 def __init__(self, value=None):
1350 if value != None:
1351 self.value = value
1352 else:
1353 self.value = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08001354 return
Rich Laned9e3f7b2013-11-04 11:40:43 -08001355
1356 def pack(self):
1357 packed = []
1358 packed.append(struct.pack("!L", self.type_len))
1359 packed.append(struct.pack("!L", self.value))
1360 return ''.join(packed)
1361
1362 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08001363 def unpack(reader):
Rich Laned9e3f7b2013-11-04 11:40:43 -08001364 obj = bsn_lag_id()
Rich Laned9e3f7b2013-11-04 11:40:43 -08001365 _type_len = reader.read("!L")[0]
1366 assert(_type_len == 197124)
1367 obj.value = reader.read("!L")[0]
1368 return obj
1369
1370 def __eq__(self, other):
1371 if type(self) != type(other): return False
1372 if self.value != other.value: return False
1373 return True
1374
Rich Laned9e3f7b2013-11-04 11:40:43 -08001375 def pretty_print(self, q):
1376 q.text("bsn_lag_id {")
1377 with q.group():
1378 with q.indent(2):
1379 q.breakable()
1380 q.text("value = ");
1381 q.text("%#x" % self.value)
1382 q.breakable()
1383 q.text('}')
1384
Rich Lane7dcdf022013-12-11 14:45:27 -08001385oxm.subtypes[197124] = bsn_lag_id
1386
1387class bsn_lag_id_masked(oxm):
1388 type_len = 197384
Rich Laned9e3f7b2013-11-04 11:40:43 -08001389
1390 def __init__(self, value=None, value_mask=None):
1391 if value != None:
1392 self.value = value
1393 else:
1394 self.value = 0
1395 if value_mask != None:
1396 self.value_mask = value_mask
1397 else:
1398 self.value_mask = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08001399 return
Rich Laned9e3f7b2013-11-04 11:40:43 -08001400
1401 def pack(self):
1402 packed = []
1403 packed.append(struct.pack("!L", self.type_len))
1404 packed.append(struct.pack("!L", self.value))
1405 packed.append(struct.pack("!L", self.value_mask))
1406 return ''.join(packed)
1407
1408 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08001409 def unpack(reader):
Rich Laned9e3f7b2013-11-04 11:40:43 -08001410 obj = bsn_lag_id_masked()
Rich Laned9e3f7b2013-11-04 11:40:43 -08001411 _type_len = reader.read("!L")[0]
Rich Lane7dcdf022013-12-11 14:45:27 -08001412 assert(_type_len == 197384)
Rich Laned9e3f7b2013-11-04 11:40:43 -08001413 obj.value = reader.read("!L")[0]
1414 obj.value_mask = reader.read("!L")[0]
1415 return obj
1416
1417 def __eq__(self, other):
1418 if type(self) != type(other): return False
1419 if self.value != other.value: return False
1420 if self.value_mask != other.value_mask: return False
1421 return True
1422
Rich Laned9e3f7b2013-11-04 11:40:43 -08001423 def pretty_print(self, q):
1424 q.text("bsn_lag_id_masked {")
1425 with q.group():
1426 with q.indent(2):
1427 q.breakable()
1428 q.text("value = ");
1429 q.text("%#x" % self.value)
1430 q.text(","); q.breakable()
1431 q.text("value_mask = ");
1432 q.text("%#x" % self.value_mask)
1433 q.breakable()
1434 q.text('}')
1435
Rich Lane7dcdf022013-12-11 14:45:27 -08001436oxm.subtypes[197384] = bsn_lag_id_masked
1437
Harshmeet Singhc51f4042014-05-21 13:32:52 -07001438class bsn_tcp_flags(oxm):
1439 type_len = 204802
1440
1441 def __init__(self, value=None):
1442 if value != None:
1443 self.value = value
1444 else:
1445 self.value = 0
1446 return
1447
1448 def pack(self):
1449 packed = []
1450 packed.append(struct.pack("!L", self.type_len))
1451 packed.append(struct.pack("!H", self.value))
1452 return ''.join(packed)
1453
1454 @staticmethod
1455 def unpack(reader):
1456 obj = bsn_tcp_flags()
1457 _type_len = reader.read("!L")[0]
1458 assert(_type_len == 204802)
1459 obj.value = reader.read("!H")[0]
1460 return obj
1461
1462 def __eq__(self, other):
1463 if type(self) != type(other): return False
1464 if self.value != other.value: return False
1465 return True
1466
1467 def pretty_print(self, q):
1468 q.text("bsn_tcp_flags {")
1469 with q.group():
1470 with q.indent(2):
1471 q.breakable()
1472 q.text("value = ");
1473 q.text("%#x" % self.value)
1474 q.breakable()
1475 q.text('}')
1476
1477oxm.subtypes[204802] = bsn_tcp_flags
1478
1479class bsn_tcp_flags_masked(oxm):
1480 type_len = 205060
1481
1482 def __init__(self, value=None, value_mask=None):
1483 if value != None:
1484 self.value = value
1485 else:
1486 self.value = 0
1487 if value_mask != None:
1488 self.value_mask = value_mask
1489 else:
1490 self.value_mask = 0
1491 return
1492
1493 def pack(self):
1494 packed = []
1495 packed.append(struct.pack("!L", self.type_len))
1496 packed.append(struct.pack("!H", self.value))
1497 packed.append(struct.pack("!H", self.value_mask))
1498 return ''.join(packed)
1499
1500 @staticmethod
1501 def unpack(reader):
1502 obj = bsn_tcp_flags_masked()
1503 _type_len = reader.read("!L")[0]
1504 assert(_type_len == 205060)
1505 obj.value = reader.read("!H")[0]
1506 obj.value_mask = reader.read("!H")[0]
1507 return obj
1508
1509 def __eq__(self, other):
1510 if type(self) != type(other): return False
1511 if self.value != other.value: return False
1512 if self.value_mask != other.value_mask: return False
1513 return True
1514
1515 def pretty_print(self, q):
1516 q.text("bsn_tcp_flags_masked {")
1517 with q.group():
1518 with q.indent(2):
1519 q.breakable()
1520 q.text("value = ");
1521 q.text("%#x" % self.value)
1522 q.text(","); q.breakable()
1523 q.text("value_mask = ");
1524 q.text("%#x" % self.value_mask)
1525 q.breakable()
1526 q.text('}')
1527
1528oxm.subtypes[205060] = bsn_tcp_flags_masked
1529
Rich Lane93b33132014-04-21 12:20:58 -07001530class bsn_udf0(oxm):
1531 type_len = 200708
1532
1533 def __init__(self, value=None):
1534 if value != None:
1535 self.value = value
1536 else:
1537 self.value = 0
1538 return
1539
1540 def pack(self):
1541 packed = []
1542 packed.append(struct.pack("!L", self.type_len))
1543 packed.append(struct.pack("!L", self.value))
1544 return ''.join(packed)
1545
1546 @staticmethod
1547 def unpack(reader):
1548 obj = bsn_udf0()
1549 _type_len = reader.read("!L")[0]
1550 assert(_type_len == 200708)
1551 obj.value = reader.read("!L")[0]
1552 return obj
1553
1554 def __eq__(self, other):
1555 if type(self) != type(other): return False
1556 if self.value != other.value: return False
1557 return True
1558
1559 def pretty_print(self, q):
1560 q.text("bsn_udf0 {")
1561 with q.group():
1562 with q.indent(2):
1563 q.breakable()
1564 q.text("value = ");
1565 q.text("%#x" % self.value)
1566 q.breakable()
1567 q.text('}')
1568
1569oxm.subtypes[200708] = bsn_udf0
1570
1571class bsn_udf0_masked(oxm):
1572 type_len = 200968
1573
1574 def __init__(self, value=None, value_mask=None):
1575 if value != None:
1576 self.value = value
1577 else:
1578 self.value = 0
1579 if value_mask != None:
1580 self.value_mask = value_mask
1581 else:
1582 self.value_mask = 0
1583 return
1584
1585 def pack(self):
1586 packed = []
1587 packed.append(struct.pack("!L", self.type_len))
1588 packed.append(struct.pack("!L", self.value))
1589 packed.append(struct.pack("!L", self.value_mask))
1590 return ''.join(packed)
1591
1592 @staticmethod
1593 def unpack(reader):
1594 obj = bsn_udf0_masked()
1595 _type_len = reader.read("!L")[0]
1596 assert(_type_len == 200968)
1597 obj.value = reader.read("!L")[0]
1598 obj.value_mask = reader.read("!L")[0]
1599 return obj
1600
1601 def __eq__(self, other):
1602 if type(self) != type(other): return False
1603 if self.value != other.value: return False
1604 if self.value_mask != other.value_mask: return False
1605 return True
1606
1607 def pretty_print(self, q):
1608 q.text("bsn_udf0_masked {")
1609 with q.group():
1610 with q.indent(2):
1611 q.breakable()
1612 q.text("value = ");
1613 q.text("%#x" % self.value)
1614 q.text(","); q.breakable()
1615 q.text("value_mask = ");
1616 q.text("%#x" % self.value_mask)
1617 q.breakable()
1618 q.text('}')
1619
1620oxm.subtypes[200968] = bsn_udf0_masked
1621
1622class bsn_udf1(oxm):
1623 type_len = 201220
1624
1625 def __init__(self, value=None):
1626 if value != None:
1627 self.value = value
1628 else:
1629 self.value = 0
1630 return
1631
1632 def pack(self):
1633 packed = []
1634 packed.append(struct.pack("!L", self.type_len))
1635 packed.append(struct.pack("!L", self.value))
1636 return ''.join(packed)
1637
1638 @staticmethod
1639 def unpack(reader):
1640 obj = bsn_udf1()
1641 _type_len = reader.read("!L")[0]
1642 assert(_type_len == 201220)
1643 obj.value = reader.read("!L")[0]
1644 return obj
1645
1646 def __eq__(self, other):
1647 if type(self) != type(other): return False
1648 if self.value != other.value: return False
1649 return True
1650
1651 def pretty_print(self, q):
1652 q.text("bsn_udf1 {")
1653 with q.group():
1654 with q.indent(2):
1655 q.breakable()
1656 q.text("value = ");
1657 q.text("%#x" % self.value)
1658 q.breakable()
1659 q.text('}')
1660
1661oxm.subtypes[201220] = bsn_udf1
1662
1663class bsn_udf1_masked(oxm):
1664 type_len = 201480
1665
1666 def __init__(self, value=None, value_mask=None):
1667 if value != None:
1668 self.value = value
1669 else:
1670 self.value = 0
1671 if value_mask != None:
1672 self.value_mask = value_mask
1673 else:
1674 self.value_mask = 0
1675 return
1676
1677 def pack(self):
1678 packed = []
1679 packed.append(struct.pack("!L", self.type_len))
1680 packed.append(struct.pack("!L", self.value))
1681 packed.append(struct.pack("!L", self.value_mask))
1682 return ''.join(packed)
1683
1684 @staticmethod
1685 def unpack(reader):
1686 obj = bsn_udf1_masked()
1687 _type_len = reader.read("!L")[0]
1688 assert(_type_len == 201480)
1689 obj.value = reader.read("!L")[0]
1690 obj.value_mask = reader.read("!L")[0]
1691 return obj
1692
1693 def __eq__(self, other):
1694 if type(self) != type(other): return False
1695 if self.value != other.value: return False
1696 if self.value_mask != other.value_mask: return False
1697 return True
1698
1699 def pretty_print(self, q):
1700 q.text("bsn_udf1_masked {")
1701 with q.group():
1702 with q.indent(2):
1703 q.breakable()
1704 q.text("value = ");
1705 q.text("%#x" % self.value)
1706 q.text(","); q.breakable()
1707 q.text("value_mask = ");
1708 q.text("%#x" % self.value_mask)
1709 q.breakable()
1710 q.text('}')
1711
1712oxm.subtypes[201480] = bsn_udf1_masked
1713
1714class bsn_udf2(oxm):
1715 type_len = 201732
1716
1717 def __init__(self, value=None):
1718 if value != None:
1719 self.value = value
1720 else:
1721 self.value = 0
1722 return
1723
1724 def pack(self):
1725 packed = []
1726 packed.append(struct.pack("!L", self.type_len))
1727 packed.append(struct.pack("!L", self.value))
1728 return ''.join(packed)
1729
1730 @staticmethod
1731 def unpack(reader):
1732 obj = bsn_udf2()
1733 _type_len = reader.read("!L")[0]
1734 assert(_type_len == 201732)
1735 obj.value = reader.read("!L")[0]
1736 return obj
1737
1738 def __eq__(self, other):
1739 if type(self) != type(other): return False
1740 if self.value != other.value: return False
1741 return True
1742
1743 def pretty_print(self, q):
1744 q.text("bsn_udf2 {")
1745 with q.group():
1746 with q.indent(2):
1747 q.breakable()
1748 q.text("value = ");
1749 q.text("%#x" % self.value)
1750 q.breakable()
1751 q.text('}')
1752
1753oxm.subtypes[201732] = bsn_udf2
1754
1755class bsn_udf2_masked(oxm):
1756 type_len = 201992
1757
1758 def __init__(self, value=None, value_mask=None):
1759 if value != None:
1760 self.value = value
1761 else:
1762 self.value = 0
1763 if value_mask != None:
1764 self.value_mask = value_mask
1765 else:
1766 self.value_mask = 0
1767 return
1768
1769 def pack(self):
1770 packed = []
1771 packed.append(struct.pack("!L", self.type_len))
1772 packed.append(struct.pack("!L", self.value))
1773 packed.append(struct.pack("!L", self.value_mask))
1774 return ''.join(packed)
1775
1776 @staticmethod
1777 def unpack(reader):
1778 obj = bsn_udf2_masked()
1779 _type_len = reader.read("!L")[0]
1780 assert(_type_len == 201992)
1781 obj.value = reader.read("!L")[0]
1782 obj.value_mask = reader.read("!L")[0]
1783 return obj
1784
1785 def __eq__(self, other):
1786 if type(self) != type(other): return False
1787 if self.value != other.value: return False
1788 if self.value_mask != other.value_mask: return False
1789 return True
1790
1791 def pretty_print(self, q):
1792 q.text("bsn_udf2_masked {")
1793 with q.group():
1794 with q.indent(2):
1795 q.breakable()
1796 q.text("value = ");
1797 q.text("%#x" % self.value)
1798 q.text(","); q.breakable()
1799 q.text("value_mask = ");
1800 q.text("%#x" % self.value_mask)
1801 q.breakable()
1802 q.text('}')
1803
1804oxm.subtypes[201992] = bsn_udf2_masked
1805
1806class bsn_udf3(oxm):
1807 type_len = 202244
1808
1809 def __init__(self, value=None):
1810 if value != None:
1811 self.value = value
1812 else:
1813 self.value = 0
1814 return
1815
1816 def pack(self):
1817 packed = []
1818 packed.append(struct.pack("!L", self.type_len))
1819 packed.append(struct.pack("!L", self.value))
1820 return ''.join(packed)
1821
1822 @staticmethod
1823 def unpack(reader):
1824 obj = bsn_udf3()
1825 _type_len = reader.read("!L")[0]
1826 assert(_type_len == 202244)
1827 obj.value = reader.read("!L")[0]
1828 return obj
1829
1830 def __eq__(self, other):
1831 if type(self) != type(other): return False
1832 if self.value != other.value: return False
1833 return True
1834
1835 def pretty_print(self, q):
1836 q.text("bsn_udf3 {")
1837 with q.group():
1838 with q.indent(2):
1839 q.breakable()
1840 q.text("value = ");
1841 q.text("%#x" % self.value)
1842 q.breakable()
1843 q.text('}')
1844
1845oxm.subtypes[202244] = bsn_udf3
1846
1847class bsn_udf3_masked(oxm):
1848 type_len = 202504
1849
1850 def __init__(self, value=None, value_mask=None):
1851 if value != None:
1852 self.value = value
1853 else:
1854 self.value = 0
1855 if value_mask != None:
1856 self.value_mask = value_mask
1857 else:
1858 self.value_mask = 0
1859 return
1860
1861 def pack(self):
1862 packed = []
1863 packed.append(struct.pack("!L", self.type_len))
1864 packed.append(struct.pack("!L", self.value))
1865 packed.append(struct.pack("!L", self.value_mask))
1866 return ''.join(packed)
1867
1868 @staticmethod
1869 def unpack(reader):
1870 obj = bsn_udf3_masked()
1871 _type_len = reader.read("!L")[0]
1872 assert(_type_len == 202504)
1873 obj.value = reader.read("!L")[0]
1874 obj.value_mask = reader.read("!L")[0]
1875 return obj
1876
1877 def __eq__(self, other):
1878 if type(self) != type(other): return False
1879 if self.value != other.value: return False
1880 if self.value_mask != other.value_mask: return False
1881 return True
1882
1883 def pretty_print(self, q):
1884 q.text("bsn_udf3_masked {")
1885 with q.group():
1886 with q.indent(2):
1887 q.breakable()
1888 q.text("value = ");
1889 q.text("%#x" % self.value)
1890 q.text(","); q.breakable()
1891 q.text("value_mask = ");
1892 q.text("%#x" % self.value_mask)
1893 q.breakable()
1894 q.text('}')
1895
1896oxm.subtypes[202504] = bsn_udf3_masked
1897
1898class bsn_udf4(oxm):
1899 type_len = 202756
1900
1901 def __init__(self, value=None):
1902 if value != None:
1903 self.value = value
1904 else:
1905 self.value = 0
1906 return
1907
1908 def pack(self):
1909 packed = []
1910 packed.append(struct.pack("!L", self.type_len))
1911 packed.append(struct.pack("!L", self.value))
1912 return ''.join(packed)
1913
1914 @staticmethod
1915 def unpack(reader):
1916 obj = bsn_udf4()
1917 _type_len = reader.read("!L")[0]
1918 assert(_type_len == 202756)
1919 obj.value = reader.read("!L")[0]
1920 return obj
1921
1922 def __eq__(self, other):
1923 if type(self) != type(other): return False
1924 if self.value != other.value: return False
1925 return True
1926
1927 def pretty_print(self, q):
1928 q.text("bsn_udf4 {")
1929 with q.group():
1930 with q.indent(2):
1931 q.breakable()
1932 q.text("value = ");
1933 q.text("%#x" % self.value)
1934 q.breakable()
1935 q.text('}')
1936
1937oxm.subtypes[202756] = bsn_udf4
1938
1939class bsn_udf4_masked(oxm):
1940 type_len = 203016
1941
1942 def __init__(self, value=None, value_mask=None):
1943 if value != None:
1944 self.value = value
1945 else:
1946 self.value = 0
1947 if value_mask != None:
1948 self.value_mask = value_mask
1949 else:
1950 self.value_mask = 0
1951 return
1952
1953 def pack(self):
1954 packed = []
1955 packed.append(struct.pack("!L", self.type_len))
1956 packed.append(struct.pack("!L", self.value))
1957 packed.append(struct.pack("!L", self.value_mask))
1958 return ''.join(packed)
1959
1960 @staticmethod
1961 def unpack(reader):
1962 obj = bsn_udf4_masked()
1963 _type_len = reader.read("!L")[0]
1964 assert(_type_len == 203016)
1965 obj.value = reader.read("!L")[0]
1966 obj.value_mask = reader.read("!L")[0]
1967 return obj
1968
1969 def __eq__(self, other):
1970 if type(self) != type(other): return False
1971 if self.value != other.value: return False
1972 if self.value_mask != other.value_mask: return False
1973 return True
1974
1975 def pretty_print(self, q):
1976 q.text("bsn_udf4_masked {")
1977 with q.group():
1978 with q.indent(2):
1979 q.breakable()
1980 q.text("value = ");
1981 q.text("%#x" % self.value)
1982 q.text(","); q.breakable()
1983 q.text("value_mask = ");
1984 q.text("%#x" % self.value_mask)
1985 q.breakable()
1986 q.text('}')
1987
1988oxm.subtypes[203016] = bsn_udf4_masked
1989
1990class bsn_udf5(oxm):
1991 type_len = 203268
1992
1993 def __init__(self, value=None):
1994 if value != None:
1995 self.value = value
1996 else:
1997 self.value = 0
1998 return
1999
2000 def pack(self):
2001 packed = []
2002 packed.append(struct.pack("!L", self.type_len))
2003 packed.append(struct.pack("!L", self.value))
2004 return ''.join(packed)
2005
2006 @staticmethod
2007 def unpack(reader):
2008 obj = bsn_udf5()
2009 _type_len = reader.read("!L")[0]
2010 assert(_type_len == 203268)
2011 obj.value = reader.read("!L")[0]
2012 return obj
2013
2014 def __eq__(self, other):
2015 if type(self) != type(other): return False
2016 if self.value != other.value: return False
2017 return True
2018
2019 def pretty_print(self, q):
2020 q.text("bsn_udf5 {")
2021 with q.group():
2022 with q.indent(2):
2023 q.breakable()
2024 q.text("value = ");
2025 q.text("%#x" % self.value)
2026 q.breakable()
2027 q.text('}')
2028
2029oxm.subtypes[203268] = bsn_udf5
2030
2031class bsn_udf5_masked(oxm):
2032 type_len = 203528
2033
2034 def __init__(self, value=None, value_mask=None):
2035 if value != None:
2036 self.value = value
2037 else:
2038 self.value = 0
2039 if value_mask != None:
2040 self.value_mask = value_mask
2041 else:
2042 self.value_mask = 0
2043 return
2044
2045 def pack(self):
2046 packed = []
2047 packed.append(struct.pack("!L", self.type_len))
2048 packed.append(struct.pack("!L", self.value))
2049 packed.append(struct.pack("!L", self.value_mask))
2050 return ''.join(packed)
2051
2052 @staticmethod
2053 def unpack(reader):
2054 obj = bsn_udf5_masked()
2055 _type_len = reader.read("!L")[0]
2056 assert(_type_len == 203528)
2057 obj.value = reader.read("!L")[0]
2058 obj.value_mask = reader.read("!L")[0]
2059 return obj
2060
2061 def __eq__(self, other):
2062 if type(self) != type(other): return False
2063 if self.value != other.value: return False
2064 if self.value_mask != other.value_mask: return False
2065 return True
2066
2067 def pretty_print(self, q):
2068 q.text("bsn_udf5_masked {")
2069 with q.group():
2070 with q.indent(2):
2071 q.breakable()
2072 q.text("value = ");
2073 q.text("%#x" % self.value)
2074 q.text(","); q.breakable()
2075 q.text("value_mask = ");
2076 q.text("%#x" % self.value_mask)
2077 q.breakable()
2078 q.text('}')
2079
2080oxm.subtypes[203528] = bsn_udf5_masked
2081
2082class bsn_udf6(oxm):
2083 type_len = 203780
2084
2085 def __init__(self, value=None):
2086 if value != None:
2087 self.value = value
2088 else:
2089 self.value = 0
2090 return
2091
2092 def pack(self):
2093 packed = []
2094 packed.append(struct.pack("!L", self.type_len))
2095 packed.append(struct.pack("!L", self.value))
2096 return ''.join(packed)
2097
2098 @staticmethod
2099 def unpack(reader):
2100 obj = bsn_udf6()
2101 _type_len = reader.read("!L")[0]
2102 assert(_type_len == 203780)
2103 obj.value = reader.read("!L")[0]
2104 return obj
2105
2106 def __eq__(self, other):
2107 if type(self) != type(other): return False
2108 if self.value != other.value: return False
2109 return True
2110
2111 def pretty_print(self, q):
2112 q.text("bsn_udf6 {")
2113 with q.group():
2114 with q.indent(2):
2115 q.breakable()
2116 q.text("value = ");
2117 q.text("%#x" % self.value)
2118 q.breakable()
2119 q.text('}')
2120
2121oxm.subtypes[203780] = bsn_udf6
2122
2123class bsn_udf6_masked(oxm):
2124 type_len = 204040
2125
2126 def __init__(self, value=None, value_mask=None):
2127 if value != None:
2128 self.value = value
2129 else:
2130 self.value = 0
2131 if value_mask != None:
2132 self.value_mask = value_mask
2133 else:
2134 self.value_mask = 0
2135 return
2136
2137 def pack(self):
2138 packed = []
2139 packed.append(struct.pack("!L", self.type_len))
2140 packed.append(struct.pack("!L", self.value))
2141 packed.append(struct.pack("!L", self.value_mask))
2142 return ''.join(packed)
2143
2144 @staticmethod
2145 def unpack(reader):
2146 obj = bsn_udf6_masked()
2147 _type_len = reader.read("!L")[0]
2148 assert(_type_len == 204040)
2149 obj.value = reader.read("!L")[0]
2150 obj.value_mask = reader.read("!L")[0]
2151 return obj
2152
2153 def __eq__(self, other):
2154 if type(self) != type(other): return False
2155 if self.value != other.value: return False
2156 if self.value_mask != other.value_mask: return False
2157 return True
2158
2159 def pretty_print(self, q):
2160 q.text("bsn_udf6_masked {")
2161 with q.group():
2162 with q.indent(2):
2163 q.breakable()
2164 q.text("value = ");
2165 q.text("%#x" % self.value)
2166 q.text(","); q.breakable()
2167 q.text("value_mask = ");
2168 q.text("%#x" % self.value_mask)
2169 q.breakable()
2170 q.text('}')
2171
2172oxm.subtypes[204040] = bsn_udf6_masked
2173
2174class bsn_udf7(oxm):
2175 type_len = 204292
2176
2177 def __init__(self, value=None):
2178 if value != None:
2179 self.value = value
2180 else:
2181 self.value = 0
2182 return
2183
2184 def pack(self):
2185 packed = []
2186 packed.append(struct.pack("!L", self.type_len))
2187 packed.append(struct.pack("!L", self.value))
2188 return ''.join(packed)
2189
2190 @staticmethod
2191 def unpack(reader):
2192 obj = bsn_udf7()
2193 _type_len = reader.read("!L")[0]
2194 assert(_type_len == 204292)
2195 obj.value = reader.read("!L")[0]
2196 return obj
2197
2198 def __eq__(self, other):
2199 if type(self) != type(other): return False
2200 if self.value != other.value: return False
2201 return True
2202
2203 def pretty_print(self, q):
2204 q.text("bsn_udf7 {")
2205 with q.group():
2206 with q.indent(2):
2207 q.breakable()
2208 q.text("value = ");
2209 q.text("%#x" % self.value)
2210 q.breakable()
2211 q.text('}')
2212
2213oxm.subtypes[204292] = bsn_udf7
2214
2215class bsn_udf7_masked(oxm):
2216 type_len = 204552
2217
2218 def __init__(self, value=None, value_mask=None):
2219 if value != None:
2220 self.value = value
2221 else:
2222 self.value = 0
2223 if value_mask != None:
2224 self.value_mask = value_mask
2225 else:
2226 self.value_mask = 0
2227 return
2228
2229 def pack(self):
2230 packed = []
2231 packed.append(struct.pack("!L", self.type_len))
2232 packed.append(struct.pack("!L", self.value))
2233 packed.append(struct.pack("!L", self.value_mask))
2234 return ''.join(packed)
2235
2236 @staticmethod
2237 def unpack(reader):
2238 obj = bsn_udf7_masked()
2239 _type_len = reader.read("!L")[0]
2240 assert(_type_len == 204552)
2241 obj.value = reader.read("!L")[0]
2242 obj.value_mask = reader.read("!L")[0]
2243 return obj
2244
2245 def __eq__(self, other):
2246 if type(self) != type(other): return False
2247 if self.value != other.value: return False
2248 if self.value_mask != other.value_mask: return False
2249 return True
2250
2251 def pretty_print(self, q):
2252 q.text("bsn_udf7_masked {")
2253 with q.group():
2254 with q.indent(2):
2255 q.breakable()
2256 q.text("value = ");
2257 q.text("%#x" % self.value)
2258 q.text(","); q.breakable()
2259 q.text("value_mask = ");
2260 q.text("%#x" % self.value_mask)
2261 q.breakable()
2262 q.text('}')
2263
2264oxm.subtypes[204552] = bsn_udf7_masked
2265
Rich Lane5587ab12014-06-30 11:19:09 -07002266class bsn_vlan_xlate_port_group_id(oxm):
2267 type_len = 205316
2268
2269 def __init__(self, value=None):
2270 if value != None:
2271 self.value = value
2272 else:
2273 self.value = 0
2274 return
2275
2276 def pack(self):
2277 packed = []
2278 packed.append(struct.pack("!L", self.type_len))
2279 packed.append(struct.pack("!L", self.value))
2280 return ''.join(packed)
2281
2282 @staticmethod
2283 def unpack(reader):
2284 obj = bsn_vlan_xlate_port_group_id()
2285 _type_len = reader.read("!L")[0]
2286 assert(_type_len == 205316)
2287 obj.value = reader.read("!L")[0]
2288 return obj
2289
2290 def __eq__(self, other):
2291 if type(self) != type(other): return False
2292 if self.value != other.value: return False
2293 return True
2294
2295 def pretty_print(self, q):
2296 q.text("bsn_vlan_xlate_port_group_id {")
2297 with q.group():
2298 with q.indent(2):
2299 q.breakable()
2300 q.text("value = ");
2301 q.text("%#x" % self.value)
2302 q.breakable()
2303 q.text('}')
2304
2305oxm.subtypes[205316] = bsn_vlan_xlate_port_group_id
2306
2307class bsn_vlan_xlate_port_group_id_masked(oxm):
2308 type_len = 205576
2309
2310 def __init__(self, value=None, value_mask=None):
2311 if value != None:
2312 self.value = value
2313 else:
2314 self.value = 0
2315 if value_mask != None:
2316 self.value_mask = value_mask
2317 else:
2318 self.value_mask = 0
2319 return
2320
2321 def pack(self):
2322 packed = []
2323 packed.append(struct.pack("!L", self.type_len))
2324 packed.append(struct.pack("!L", self.value))
2325 packed.append(struct.pack("!L", self.value_mask))
2326 return ''.join(packed)
2327
2328 @staticmethod
2329 def unpack(reader):
2330 obj = bsn_vlan_xlate_port_group_id_masked()
2331 _type_len = reader.read("!L")[0]
2332 assert(_type_len == 205576)
2333 obj.value = reader.read("!L")[0]
2334 obj.value_mask = reader.read("!L")[0]
2335 return obj
2336
2337 def __eq__(self, other):
2338 if type(self) != type(other): return False
2339 if self.value != other.value: return False
2340 if self.value_mask != other.value_mask: return False
2341 return True
2342
2343 def pretty_print(self, q):
2344 q.text("bsn_vlan_xlate_port_group_id_masked {")
2345 with q.group():
2346 with q.indent(2):
2347 q.breakable()
2348 q.text("value = ");
2349 q.text("%#x" % self.value)
2350 q.text(","); q.breakable()
2351 q.text("value_mask = ");
2352 q.text("%#x" % self.value_mask)
2353 q.breakable()
2354 q.text('}')
2355
2356oxm.subtypes[205576] = bsn_vlan_xlate_port_group_id_masked
2357
Rich Lane7dcdf022013-12-11 14:45:27 -08002358class bsn_vrf(oxm):
Rich Laned9e3f7b2013-11-04 11:40:43 -08002359 type_len = 197636
2360
2361 def __init__(self, value=None):
2362 if value != None:
2363 self.value = value
2364 else:
2365 self.value = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08002366 return
Rich Laned9e3f7b2013-11-04 11:40:43 -08002367
2368 def pack(self):
2369 packed = []
2370 packed.append(struct.pack("!L", self.type_len))
2371 packed.append(struct.pack("!L", self.value))
2372 return ''.join(packed)
2373
2374 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08002375 def unpack(reader):
Rich Laned9e3f7b2013-11-04 11:40:43 -08002376 obj = bsn_vrf()
Rich Laned9e3f7b2013-11-04 11:40:43 -08002377 _type_len = reader.read("!L")[0]
2378 assert(_type_len == 197636)
2379 obj.value = reader.read("!L")[0]
2380 return obj
2381
2382 def __eq__(self, other):
2383 if type(self) != type(other): return False
2384 if self.value != other.value: return False
2385 return True
2386
Rich Laned9e3f7b2013-11-04 11:40:43 -08002387 def pretty_print(self, q):
2388 q.text("bsn_vrf {")
2389 with q.group():
2390 with q.indent(2):
2391 q.breakable()
2392 q.text("value = ");
2393 q.text("%#x" % self.value)
2394 q.breakable()
2395 q.text('}')
2396
Rich Lane7dcdf022013-12-11 14:45:27 -08002397oxm.subtypes[197636] = bsn_vrf
2398
2399class bsn_vrf_masked(oxm):
2400 type_len = 197896
Rich Laned9e3f7b2013-11-04 11:40:43 -08002401
2402 def __init__(self, value=None, value_mask=None):
2403 if value != None:
2404 self.value = value
2405 else:
2406 self.value = 0
2407 if value_mask != None:
2408 self.value_mask = value_mask
2409 else:
2410 self.value_mask = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08002411 return
Rich Laned9e3f7b2013-11-04 11:40:43 -08002412
2413 def pack(self):
2414 packed = []
2415 packed.append(struct.pack("!L", self.type_len))
2416 packed.append(struct.pack("!L", self.value))
2417 packed.append(struct.pack("!L", self.value_mask))
2418 return ''.join(packed)
2419
2420 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08002421 def unpack(reader):
Rich Laned9e3f7b2013-11-04 11:40:43 -08002422 obj = bsn_vrf_masked()
Rich Laned9e3f7b2013-11-04 11:40:43 -08002423 _type_len = reader.read("!L")[0]
Rich Lane7dcdf022013-12-11 14:45:27 -08002424 assert(_type_len == 197896)
Rich Laned9e3f7b2013-11-04 11:40:43 -08002425 obj.value = reader.read("!L")[0]
2426 obj.value_mask = reader.read("!L")[0]
2427 return obj
2428
2429 def __eq__(self, other):
2430 if type(self) != type(other): return False
2431 if self.value != other.value: return False
2432 if self.value_mask != other.value_mask: return False
2433 return True
2434
Rich Laned9e3f7b2013-11-04 11:40:43 -08002435 def pretty_print(self, q):
2436 q.text("bsn_vrf_masked {")
2437 with q.group():
2438 with q.indent(2):
2439 q.breakable()
2440 q.text("value = ");
2441 q.text("%#x" % self.value)
2442 q.text(","); q.breakable()
2443 q.text("value_mask = ");
2444 q.text("%#x" % self.value_mask)
2445 q.breakable()
2446 q.text('}')
2447
Rich Lane7dcdf022013-12-11 14:45:27 -08002448oxm.subtypes[197896] = bsn_vrf_masked
2449
2450class eth_dst(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07002451 type_len = 2147485190
Rich Lanec2ee4b82013-04-24 17:12:38 -07002452
2453 def __init__(self, value=None):
2454 if value != None:
2455 self.value = value
2456 else:
2457 self.value = [0,0,0,0,0,0]
Rich Lane7dcdf022013-12-11 14:45:27 -08002458 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07002459
2460 def pack(self):
2461 packed = []
2462 packed.append(struct.pack("!L", self.type_len))
2463 packed.append(struct.pack("!6B", *self.value))
2464 return ''.join(packed)
2465
2466 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08002467 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07002468 obj = eth_dst()
Dan Talaycof6202252013-07-02 01:00:29 -07002469 _type_len = reader.read("!L")[0]
2470 assert(_type_len == 2147485190)
Rich Lanec2ee4b82013-04-24 17:12:38 -07002471 obj.value = list(reader.read('!6B'))
2472 return obj
2473
2474 def __eq__(self, other):
2475 if type(self) != type(other): return False
2476 if self.value != other.value: return False
2477 return True
2478
Rich Lanec2ee4b82013-04-24 17:12:38 -07002479 def pretty_print(self, q):
2480 q.text("eth_dst {")
2481 with q.group():
2482 with q.indent(2):
2483 q.breakable()
2484 q.text("value = ");
2485 q.text(util.pretty_mac(self.value))
2486 q.breakable()
2487 q.text('}')
2488
Rich Lane7dcdf022013-12-11 14:45:27 -08002489oxm.subtypes[2147485190] = eth_dst
2490
2491class eth_dst_masked(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07002492 type_len = 2147485452
Rich Lanec2ee4b82013-04-24 17:12:38 -07002493
2494 def __init__(self, value=None, value_mask=None):
2495 if value != None:
2496 self.value = value
2497 else:
2498 self.value = [0,0,0,0,0,0]
2499 if value_mask != None:
2500 self.value_mask = value_mask
2501 else:
2502 self.value_mask = [0,0,0,0,0,0]
Rich Lane7dcdf022013-12-11 14:45:27 -08002503 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07002504
2505 def pack(self):
2506 packed = []
2507 packed.append(struct.pack("!L", self.type_len))
2508 packed.append(struct.pack("!6B", *self.value))
2509 packed.append(struct.pack("!6B", *self.value_mask))
2510 return ''.join(packed)
2511
2512 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08002513 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07002514 obj = eth_dst_masked()
Dan Talaycof6202252013-07-02 01:00:29 -07002515 _type_len = reader.read("!L")[0]
2516 assert(_type_len == 2147485452)
Rich Lanec2ee4b82013-04-24 17:12:38 -07002517 obj.value = list(reader.read('!6B'))
2518 obj.value_mask = list(reader.read('!6B'))
2519 return obj
2520
2521 def __eq__(self, other):
2522 if type(self) != type(other): return False
2523 if self.value != other.value: return False
2524 if self.value_mask != other.value_mask: return False
2525 return True
2526
Rich Lanec2ee4b82013-04-24 17:12:38 -07002527 def pretty_print(self, q):
2528 q.text("eth_dst_masked {")
2529 with q.group():
2530 with q.indent(2):
2531 q.breakable()
2532 q.text("value = ");
2533 q.text(util.pretty_mac(self.value))
2534 q.text(","); q.breakable()
2535 q.text("value_mask = ");
2536 q.text(util.pretty_mac(self.value_mask))
2537 q.breakable()
2538 q.text('}')
2539
Rich Lane7dcdf022013-12-11 14:45:27 -08002540oxm.subtypes[2147485452] = eth_dst_masked
2541
2542class eth_src(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07002543 type_len = 2147485702
Rich Lanec2ee4b82013-04-24 17:12:38 -07002544
2545 def __init__(self, value=None):
2546 if value != None:
2547 self.value = value
2548 else:
2549 self.value = [0,0,0,0,0,0]
Rich Lane7dcdf022013-12-11 14:45:27 -08002550 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07002551
2552 def pack(self):
2553 packed = []
2554 packed.append(struct.pack("!L", self.type_len))
2555 packed.append(struct.pack("!6B", *self.value))
2556 return ''.join(packed)
2557
2558 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08002559 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07002560 obj = eth_src()
Dan Talaycof6202252013-07-02 01:00:29 -07002561 _type_len = reader.read("!L")[0]
2562 assert(_type_len == 2147485702)
Rich Lanec2ee4b82013-04-24 17:12:38 -07002563 obj.value = list(reader.read('!6B'))
2564 return obj
2565
2566 def __eq__(self, other):
2567 if type(self) != type(other): return False
2568 if self.value != other.value: return False
2569 return True
2570
Rich Lanec2ee4b82013-04-24 17:12:38 -07002571 def pretty_print(self, q):
2572 q.text("eth_src {")
2573 with q.group():
2574 with q.indent(2):
2575 q.breakable()
2576 q.text("value = ");
2577 q.text(util.pretty_mac(self.value))
2578 q.breakable()
2579 q.text('}')
2580
Rich Lane7dcdf022013-12-11 14:45:27 -08002581oxm.subtypes[2147485702] = eth_src
2582
2583class eth_src_masked(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07002584 type_len = 2147485964
Rich Lanec2ee4b82013-04-24 17:12:38 -07002585
2586 def __init__(self, value=None, value_mask=None):
2587 if value != None:
2588 self.value = value
2589 else:
2590 self.value = [0,0,0,0,0,0]
2591 if value_mask != None:
2592 self.value_mask = value_mask
2593 else:
2594 self.value_mask = [0,0,0,0,0,0]
Rich Lane7dcdf022013-12-11 14:45:27 -08002595 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07002596
2597 def pack(self):
2598 packed = []
2599 packed.append(struct.pack("!L", self.type_len))
2600 packed.append(struct.pack("!6B", *self.value))
2601 packed.append(struct.pack("!6B", *self.value_mask))
2602 return ''.join(packed)
2603
2604 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08002605 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07002606 obj = eth_src_masked()
Dan Talaycof6202252013-07-02 01:00:29 -07002607 _type_len = reader.read("!L")[0]
2608 assert(_type_len == 2147485964)
Rich Lanec2ee4b82013-04-24 17:12:38 -07002609 obj.value = list(reader.read('!6B'))
2610 obj.value_mask = list(reader.read('!6B'))
2611 return obj
2612
2613 def __eq__(self, other):
2614 if type(self) != type(other): return False
2615 if self.value != other.value: return False
2616 if self.value_mask != other.value_mask: return False
2617 return True
2618
Rich Lanec2ee4b82013-04-24 17:12:38 -07002619 def pretty_print(self, q):
2620 q.text("eth_src_masked {")
2621 with q.group():
2622 with q.indent(2):
2623 q.breakable()
2624 q.text("value = ");
2625 q.text(util.pretty_mac(self.value))
2626 q.text(","); q.breakable()
2627 q.text("value_mask = ");
2628 q.text(util.pretty_mac(self.value_mask))
2629 q.breakable()
2630 q.text('}')
2631
Rich Lane7dcdf022013-12-11 14:45:27 -08002632oxm.subtypes[2147485964] = eth_src_masked
2633
2634class eth_type(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07002635 type_len = 2147486210
Rich Lanec2ee4b82013-04-24 17:12:38 -07002636
2637 def __init__(self, value=None):
2638 if value != None:
2639 self.value = value
2640 else:
2641 self.value = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08002642 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07002643
2644 def pack(self):
2645 packed = []
2646 packed.append(struct.pack("!L", self.type_len))
2647 packed.append(struct.pack("!H", self.value))
2648 return ''.join(packed)
2649
2650 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08002651 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07002652 obj = eth_type()
Dan Talaycof6202252013-07-02 01:00:29 -07002653 _type_len = reader.read("!L")[0]
2654 assert(_type_len == 2147486210)
2655 obj.value = reader.read("!H")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07002656 return obj
2657
2658 def __eq__(self, other):
2659 if type(self) != type(other): return False
2660 if self.value != other.value: return False
2661 return True
2662
Rich Lanec2ee4b82013-04-24 17:12:38 -07002663 def pretty_print(self, q):
2664 q.text("eth_type {")
2665 with q.group():
2666 with q.indent(2):
2667 q.breakable()
2668 q.text("value = ");
2669 q.text("%#x" % self.value)
2670 q.breakable()
2671 q.text('}')
2672
Rich Lane7dcdf022013-12-11 14:45:27 -08002673oxm.subtypes[2147486210] = eth_type
2674
2675class eth_type_masked(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07002676 type_len = 2147486468
Rich Lanec2ee4b82013-04-24 17:12:38 -07002677
2678 def __init__(self, value=None, value_mask=None):
2679 if value != None:
2680 self.value = value
2681 else:
2682 self.value = 0
2683 if value_mask != None:
2684 self.value_mask = value_mask
2685 else:
2686 self.value_mask = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08002687 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07002688
2689 def pack(self):
2690 packed = []
2691 packed.append(struct.pack("!L", self.type_len))
2692 packed.append(struct.pack("!H", self.value))
2693 packed.append(struct.pack("!H", self.value_mask))
2694 return ''.join(packed)
2695
2696 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08002697 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07002698 obj = eth_type_masked()
Dan Talaycof6202252013-07-02 01:00:29 -07002699 _type_len = reader.read("!L")[0]
2700 assert(_type_len == 2147486468)
2701 obj.value = reader.read("!H")[0]
2702 obj.value_mask = reader.read("!H")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07002703 return obj
2704
2705 def __eq__(self, other):
2706 if type(self) != type(other): return False
2707 if self.value != other.value: return False
2708 if self.value_mask != other.value_mask: return False
2709 return True
2710
Rich Lanec2ee4b82013-04-24 17:12:38 -07002711 def pretty_print(self, q):
2712 q.text("eth_type_masked {")
2713 with q.group():
2714 with q.indent(2):
2715 q.breakable()
2716 q.text("value = ");
2717 q.text("%#x" % self.value)
2718 q.text(","); q.breakable()
2719 q.text("value_mask = ");
2720 q.text("%#x" % self.value_mask)
2721 q.breakable()
2722 q.text('}')
2723
Rich Lane7dcdf022013-12-11 14:45:27 -08002724oxm.subtypes[2147486468] = eth_type_masked
2725
2726class icmpv4_code(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07002727 type_len = 2147493889
Rich Lanec2ee4b82013-04-24 17:12:38 -07002728
2729 def __init__(self, value=None):
2730 if value != None:
2731 self.value = value
2732 else:
2733 self.value = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08002734 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07002735
2736 def pack(self):
2737 packed = []
2738 packed.append(struct.pack("!L", self.type_len))
2739 packed.append(struct.pack("!B", self.value))
2740 return ''.join(packed)
2741
2742 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08002743 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07002744 obj = icmpv4_code()
Dan Talaycof6202252013-07-02 01:00:29 -07002745 _type_len = reader.read("!L")[0]
2746 assert(_type_len == 2147493889)
2747 obj.value = reader.read("!B")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07002748 return obj
2749
2750 def __eq__(self, other):
2751 if type(self) != type(other): return False
2752 if self.value != other.value: return False
2753 return True
2754
Rich Lanec2ee4b82013-04-24 17:12:38 -07002755 def pretty_print(self, q):
2756 q.text("icmpv4_code {")
2757 with q.group():
2758 with q.indent(2):
2759 q.breakable()
2760 q.text("value = ");
2761 q.text("%#x" % self.value)
2762 q.breakable()
2763 q.text('}')
2764
Rich Lane7dcdf022013-12-11 14:45:27 -08002765oxm.subtypes[2147493889] = icmpv4_code
2766
2767class icmpv4_code_masked(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07002768 type_len = 2147494146
Rich Lanec2ee4b82013-04-24 17:12:38 -07002769
2770 def __init__(self, value=None, value_mask=None):
2771 if value != None:
2772 self.value = value
2773 else:
2774 self.value = 0
2775 if value_mask != None:
2776 self.value_mask = value_mask
2777 else:
2778 self.value_mask = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08002779 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07002780
2781 def pack(self):
2782 packed = []
2783 packed.append(struct.pack("!L", self.type_len))
2784 packed.append(struct.pack("!B", self.value))
2785 packed.append(struct.pack("!B", self.value_mask))
2786 return ''.join(packed)
2787
2788 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08002789 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07002790 obj = icmpv4_code_masked()
Dan Talaycof6202252013-07-02 01:00:29 -07002791 _type_len = reader.read("!L")[0]
2792 assert(_type_len == 2147494146)
2793 obj.value = reader.read("!B")[0]
2794 obj.value_mask = reader.read("!B")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07002795 return obj
2796
2797 def __eq__(self, other):
2798 if type(self) != type(other): return False
2799 if self.value != other.value: return False
2800 if self.value_mask != other.value_mask: return False
2801 return True
2802
Rich Lanec2ee4b82013-04-24 17:12:38 -07002803 def pretty_print(self, q):
2804 q.text("icmpv4_code_masked {")
2805 with q.group():
2806 with q.indent(2):
2807 q.breakable()
2808 q.text("value = ");
2809 q.text("%#x" % self.value)
2810 q.text(","); q.breakable()
2811 q.text("value_mask = ");
2812 q.text("%#x" % self.value_mask)
2813 q.breakable()
2814 q.text('}')
2815
Rich Lane7dcdf022013-12-11 14:45:27 -08002816oxm.subtypes[2147494146] = icmpv4_code_masked
2817
2818class icmpv4_type(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07002819 type_len = 2147493377
Rich Lanec2ee4b82013-04-24 17:12:38 -07002820
2821 def __init__(self, value=None):
2822 if value != None:
2823 self.value = value
2824 else:
2825 self.value = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08002826 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07002827
2828 def pack(self):
2829 packed = []
2830 packed.append(struct.pack("!L", self.type_len))
2831 packed.append(struct.pack("!B", self.value))
2832 return ''.join(packed)
2833
2834 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08002835 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07002836 obj = icmpv4_type()
Dan Talaycof6202252013-07-02 01:00:29 -07002837 _type_len = reader.read("!L")[0]
2838 assert(_type_len == 2147493377)
2839 obj.value = reader.read("!B")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07002840 return obj
2841
2842 def __eq__(self, other):
2843 if type(self) != type(other): return False
2844 if self.value != other.value: return False
2845 return True
2846
Rich Lanec2ee4b82013-04-24 17:12:38 -07002847 def pretty_print(self, q):
2848 q.text("icmpv4_type {")
2849 with q.group():
2850 with q.indent(2):
2851 q.breakable()
2852 q.text("value = ");
2853 q.text("%#x" % self.value)
2854 q.breakable()
2855 q.text('}')
2856
Rich Lane7dcdf022013-12-11 14:45:27 -08002857oxm.subtypes[2147493377] = icmpv4_type
2858
2859class icmpv4_type_masked(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07002860 type_len = 2147493634
Rich Lanec2ee4b82013-04-24 17:12:38 -07002861
2862 def __init__(self, value=None, value_mask=None):
2863 if value != None:
2864 self.value = value
2865 else:
2866 self.value = 0
2867 if value_mask != None:
2868 self.value_mask = value_mask
2869 else:
2870 self.value_mask = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08002871 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07002872
2873 def pack(self):
2874 packed = []
2875 packed.append(struct.pack("!L", self.type_len))
2876 packed.append(struct.pack("!B", self.value))
2877 packed.append(struct.pack("!B", self.value_mask))
2878 return ''.join(packed)
2879
2880 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08002881 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07002882 obj = icmpv4_type_masked()
Dan Talaycof6202252013-07-02 01:00:29 -07002883 _type_len = reader.read("!L")[0]
2884 assert(_type_len == 2147493634)
2885 obj.value = reader.read("!B")[0]
2886 obj.value_mask = reader.read("!B")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07002887 return obj
2888
2889 def __eq__(self, other):
2890 if type(self) != type(other): return False
2891 if self.value != other.value: return False
2892 if self.value_mask != other.value_mask: return False
2893 return True
2894
Rich Lanec2ee4b82013-04-24 17:12:38 -07002895 def pretty_print(self, q):
2896 q.text("icmpv4_type_masked {")
2897 with q.group():
2898 with q.indent(2):
2899 q.breakable()
2900 q.text("value = ");
2901 q.text("%#x" % self.value)
2902 q.text(","); q.breakable()
2903 q.text("value_mask = ");
2904 q.text("%#x" % self.value_mask)
2905 q.breakable()
2906 q.text('}')
2907
Rich Lane7dcdf022013-12-11 14:45:27 -08002908oxm.subtypes[2147493634] = icmpv4_type_masked
2909
2910class icmpv6_code(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07002911 type_len = 2147499009
Rich Lanec2ee4b82013-04-24 17:12:38 -07002912
2913 def __init__(self, value=None):
2914 if value != None:
2915 self.value = value
2916 else:
2917 self.value = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08002918 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07002919
2920 def pack(self):
2921 packed = []
2922 packed.append(struct.pack("!L", self.type_len))
2923 packed.append(struct.pack("!B", self.value))
2924 return ''.join(packed)
2925
2926 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08002927 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07002928 obj = icmpv6_code()
Dan Talaycof6202252013-07-02 01:00:29 -07002929 _type_len = reader.read("!L")[0]
2930 assert(_type_len == 2147499009)
2931 obj.value = reader.read("!B")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07002932 return obj
2933
2934 def __eq__(self, other):
2935 if type(self) != type(other): return False
2936 if self.value != other.value: return False
2937 return True
2938
Rich Lanec2ee4b82013-04-24 17:12:38 -07002939 def pretty_print(self, q):
2940 q.text("icmpv6_code {")
2941 with q.group():
2942 with q.indent(2):
2943 q.breakable()
2944 q.text("value = ");
2945 q.text("%#x" % self.value)
2946 q.breakable()
2947 q.text('}')
2948
Rich Lane7dcdf022013-12-11 14:45:27 -08002949oxm.subtypes[2147499009] = icmpv6_code
2950
2951class icmpv6_code_masked(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07002952 type_len = 2147499266
Rich Lanec2ee4b82013-04-24 17:12:38 -07002953
2954 def __init__(self, value=None, value_mask=None):
2955 if value != None:
2956 self.value = value
2957 else:
2958 self.value = 0
2959 if value_mask != None:
2960 self.value_mask = value_mask
2961 else:
2962 self.value_mask = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08002963 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07002964
2965 def pack(self):
2966 packed = []
2967 packed.append(struct.pack("!L", self.type_len))
2968 packed.append(struct.pack("!B", self.value))
2969 packed.append(struct.pack("!B", self.value_mask))
2970 return ''.join(packed)
2971
2972 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08002973 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07002974 obj = icmpv6_code_masked()
Dan Talaycof6202252013-07-02 01:00:29 -07002975 _type_len = reader.read("!L")[0]
2976 assert(_type_len == 2147499266)
2977 obj.value = reader.read("!B")[0]
2978 obj.value_mask = reader.read("!B")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07002979 return obj
2980
2981 def __eq__(self, other):
2982 if type(self) != type(other): return False
2983 if self.value != other.value: return False
2984 if self.value_mask != other.value_mask: return False
2985 return True
2986
Rich Lanec2ee4b82013-04-24 17:12:38 -07002987 def pretty_print(self, q):
2988 q.text("icmpv6_code_masked {")
2989 with q.group():
2990 with q.indent(2):
2991 q.breakable()
2992 q.text("value = ");
2993 q.text("%#x" % self.value)
2994 q.text(","); q.breakable()
2995 q.text("value_mask = ");
2996 q.text("%#x" % self.value_mask)
2997 q.breakable()
2998 q.text('}')
2999
Rich Lane7dcdf022013-12-11 14:45:27 -08003000oxm.subtypes[2147499266] = icmpv6_code_masked
3001
3002class icmpv6_type(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07003003 type_len = 2147498497
Rich Lanec2ee4b82013-04-24 17:12:38 -07003004
3005 def __init__(self, value=None):
3006 if value != None:
3007 self.value = value
3008 else:
3009 self.value = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08003010 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07003011
3012 def pack(self):
3013 packed = []
3014 packed.append(struct.pack("!L", self.type_len))
3015 packed.append(struct.pack("!B", self.value))
3016 return ''.join(packed)
3017
3018 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08003019 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07003020 obj = icmpv6_type()
Dan Talaycof6202252013-07-02 01:00:29 -07003021 _type_len = reader.read("!L")[0]
3022 assert(_type_len == 2147498497)
3023 obj.value = reader.read("!B")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07003024 return obj
3025
3026 def __eq__(self, other):
3027 if type(self) != type(other): return False
3028 if self.value != other.value: return False
3029 return True
3030
Rich Lanec2ee4b82013-04-24 17:12:38 -07003031 def pretty_print(self, q):
3032 q.text("icmpv6_type {")
3033 with q.group():
3034 with q.indent(2):
3035 q.breakable()
3036 q.text("value = ");
3037 q.text("%#x" % self.value)
3038 q.breakable()
3039 q.text('}')
3040
Rich Lane7dcdf022013-12-11 14:45:27 -08003041oxm.subtypes[2147498497] = icmpv6_type
3042
3043class icmpv6_type_masked(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07003044 type_len = 2147498754
Rich Lanec2ee4b82013-04-24 17:12:38 -07003045
3046 def __init__(self, value=None, value_mask=None):
3047 if value != None:
3048 self.value = value
3049 else:
3050 self.value = 0
3051 if value_mask != None:
3052 self.value_mask = value_mask
3053 else:
3054 self.value_mask = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08003055 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07003056
3057 def pack(self):
3058 packed = []
3059 packed.append(struct.pack("!L", self.type_len))
3060 packed.append(struct.pack("!B", self.value))
3061 packed.append(struct.pack("!B", self.value_mask))
3062 return ''.join(packed)
3063
3064 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08003065 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07003066 obj = icmpv6_type_masked()
Dan Talaycof6202252013-07-02 01:00:29 -07003067 _type_len = reader.read("!L")[0]
3068 assert(_type_len == 2147498754)
3069 obj.value = reader.read("!B")[0]
3070 obj.value_mask = reader.read("!B")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07003071 return obj
3072
3073 def __eq__(self, other):
3074 if type(self) != type(other): return False
3075 if self.value != other.value: return False
3076 if self.value_mask != other.value_mask: return False
3077 return True
3078
Rich Lanec2ee4b82013-04-24 17:12:38 -07003079 def pretty_print(self, q):
3080 q.text("icmpv6_type_masked {")
3081 with q.group():
3082 with q.indent(2):
3083 q.breakable()
3084 q.text("value = ");
3085 q.text("%#x" % self.value)
3086 q.text(","); q.breakable()
3087 q.text("value_mask = ");
3088 q.text("%#x" % self.value_mask)
3089 q.breakable()
3090 q.text('}')
3091
Rich Lane7dcdf022013-12-11 14:45:27 -08003092oxm.subtypes[2147498754] = icmpv6_type_masked
3093
3094class in_phy_port(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07003095 type_len = 2147484164
Rich Lanec2ee4b82013-04-24 17:12:38 -07003096
3097 def __init__(self, value=None):
3098 if value != None:
3099 self.value = value
3100 else:
3101 self.value = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08003102 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07003103
3104 def pack(self):
3105 packed = []
3106 packed.append(struct.pack("!L", self.type_len))
Dan Talaycof6202252013-07-02 01:00:29 -07003107 packed.append(util.pack_port_no(self.value))
Rich Lanec2ee4b82013-04-24 17:12:38 -07003108 return ''.join(packed)
3109
3110 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08003111 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07003112 obj = in_phy_port()
Dan Talaycof6202252013-07-02 01:00:29 -07003113 _type_len = reader.read("!L")[0]
3114 assert(_type_len == 2147484164)
3115 obj.value = util.unpack_port_no(reader)
Rich Lanec2ee4b82013-04-24 17:12:38 -07003116 return obj
3117
3118 def __eq__(self, other):
3119 if type(self) != type(other): return False
3120 if self.value != other.value: return False
3121 return True
3122
Rich Lanec2ee4b82013-04-24 17:12:38 -07003123 def pretty_print(self, q):
3124 q.text("in_phy_port {")
3125 with q.group():
3126 with q.indent(2):
3127 q.breakable()
3128 q.text("value = ");
3129 q.text(util.pretty_port(self.value))
3130 q.breakable()
3131 q.text('}')
3132
Rich Lane7dcdf022013-12-11 14:45:27 -08003133oxm.subtypes[2147484164] = in_phy_port
3134
3135class in_phy_port_masked(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07003136 type_len = 2147484424
Rich Lanec2ee4b82013-04-24 17:12:38 -07003137
3138 def __init__(self, value=None, value_mask=None):
3139 if value != None:
3140 self.value = value
3141 else:
3142 self.value = 0
3143 if value_mask != None:
3144 self.value_mask = value_mask
3145 else:
3146 self.value_mask = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08003147 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07003148
3149 def pack(self):
3150 packed = []
3151 packed.append(struct.pack("!L", self.type_len))
Dan Talaycof6202252013-07-02 01:00:29 -07003152 packed.append(util.pack_port_no(self.value))
3153 packed.append(util.pack_port_no(self.value_mask))
Rich Lanec2ee4b82013-04-24 17:12:38 -07003154 return ''.join(packed)
3155
3156 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08003157 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07003158 obj = in_phy_port_masked()
Dan Talaycof6202252013-07-02 01:00:29 -07003159 _type_len = reader.read("!L")[0]
3160 assert(_type_len == 2147484424)
3161 obj.value = util.unpack_port_no(reader)
3162 obj.value_mask = util.unpack_port_no(reader)
Rich Lanec2ee4b82013-04-24 17:12:38 -07003163 return obj
3164
3165 def __eq__(self, other):
3166 if type(self) != type(other): return False
3167 if self.value != other.value: return False
3168 if self.value_mask != other.value_mask: return False
3169 return True
3170
Rich Lanec2ee4b82013-04-24 17:12:38 -07003171 def pretty_print(self, q):
3172 q.text("in_phy_port_masked {")
3173 with q.group():
3174 with q.indent(2):
3175 q.breakable()
3176 q.text("value = ");
3177 q.text(util.pretty_port(self.value))
3178 q.text(","); q.breakable()
3179 q.text("value_mask = ");
3180 q.text(util.pretty_port(self.value_mask))
3181 q.breakable()
3182 q.text('}')
3183
Rich Lane7dcdf022013-12-11 14:45:27 -08003184oxm.subtypes[2147484424] = in_phy_port_masked
3185
3186class in_port(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07003187 type_len = 2147483652
Rich Lanec2ee4b82013-04-24 17:12:38 -07003188
3189 def __init__(self, value=None):
3190 if value != None:
3191 self.value = value
3192 else:
3193 self.value = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08003194 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07003195
3196 def pack(self):
3197 packed = []
3198 packed.append(struct.pack("!L", self.type_len))
Dan Talaycof6202252013-07-02 01:00:29 -07003199 packed.append(util.pack_port_no(self.value))
Rich Lanec2ee4b82013-04-24 17:12:38 -07003200 return ''.join(packed)
3201
3202 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08003203 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07003204 obj = in_port()
Dan Talaycof6202252013-07-02 01:00:29 -07003205 _type_len = reader.read("!L")[0]
3206 assert(_type_len == 2147483652)
3207 obj.value = util.unpack_port_no(reader)
Rich Lanec2ee4b82013-04-24 17:12:38 -07003208 return obj
3209
3210 def __eq__(self, other):
3211 if type(self) != type(other): return False
3212 if self.value != other.value: return False
3213 return True
3214
Rich Lanec2ee4b82013-04-24 17:12:38 -07003215 def pretty_print(self, q):
3216 q.text("in_port {")
3217 with q.group():
3218 with q.indent(2):
3219 q.breakable()
3220 q.text("value = ");
3221 q.text(util.pretty_port(self.value))
3222 q.breakable()
3223 q.text('}')
3224
Rich Lane7dcdf022013-12-11 14:45:27 -08003225oxm.subtypes[2147483652] = in_port
3226
3227class in_port_masked(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07003228 type_len = 2147483912
Rich Lanec2ee4b82013-04-24 17:12:38 -07003229
3230 def __init__(self, value=None, value_mask=None):
3231 if value != None:
3232 self.value = value
3233 else:
3234 self.value = 0
3235 if value_mask != None:
3236 self.value_mask = value_mask
3237 else:
3238 self.value_mask = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08003239 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07003240
3241 def pack(self):
3242 packed = []
3243 packed.append(struct.pack("!L", self.type_len))
Dan Talaycof6202252013-07-02 01:00:29 -07003244 packed.append(util.pack_port_no(self.value))
3245 packed.append(util.pack_port_no(self.value_mask))
Rich Lanec2ee4b82013-04-24 17:12:38 -07003246 return ''.join(packed)
3247
3248 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08003249 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07003250 obj = in_port_masked()
Dan Talaycof6202252013-07-02 01:00:29 -07003251 _type_len = reader.read("!L")[0]
3252 assert(_type_len == 2147483912)
3253 obj.value = util.unpack_port_no(reader)
3254 obj.value_mask = util.unpack_port_no(reader)
Rich Lanec2ee4b82013-04-24 17:12:38 -07003255 return obj
3256
3257 def __eq__(self, other):
3258 if type(self) != type(other): return False
3259 if self.value != other.value: return False
3260 if self.value_mask != other.value_mask: return False
3261 return True
3262
Rich Lanec2ee4b82013-04-24 17:12:38 -07003263 def pretty_print(self, q):
3264 q.text("in_port_masked {")
3265 with q.group():
3266 with q.indent(2):
3267 q.breakable()
3268 q.text("value = ");
3269 q.text(util.pretty_port(self.value))
3270 q.text(","); q.breakable()
3271 q.text("value_mask = ");
3272 q.text(util.pretty_port(self.value_mask))
3273 q.breakable()
3274 q.text('}')
3275
Rich Lane7dcdf022013-12-11 14:45:27 -08003276oxm.subtypes[2147483912] = in_port_masked
3277
3278class ip_dscp(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07003279 type_len = 2147487745
Rich Lanec2ee4b82013-04-24 17:12:38 -07003280
3281 def __init__(self, value=None):
3282 if value != None:
3283 self.value = value
3284 else:
3285 self.value = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08003286 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07003287
3288 def pack(self):
3289 packed = []
3290 packed.append(struct.pack("!L", self.type_len))
3291 packed.append(struct.pack("!B", self.value))
3292 return ''.join(packed)
3293
3294 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08003295 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07003296 obj = ip_dscp()
Dan Talaycof6202252013-07-02 01:00:29 -07003297 _type_len = reader.read("!L")[0]
3298 assert(_type_len == 2147487745)
3299 obj.value = reader.read("!B")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07003300 return obj
3301
3302 def __eq__(self, other):
3303 if type(self) != type(other): return False
3304 if self.value != other.value: return False
3305 return True
3306
Rich Lanec2ee4b82013-04-24 17:12:38 -07003307 def pretty_print(self, q):
3308 q.text("ip_dscp {")
3309 with q.group():
3310 with q.indent(2):
3311 q.breakable()
3312 q.text("value = ");
3313 q.text("%#x" % self.value)
3314 q.breakable()
3315 q.text('}')
3316
Rich Lane7dcdf022013-12-11 14:45:27 -08003317oxm.subtypes[2147487745] = ip_dscp
3318
3319class ip_dscp_masked(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07003320 type_len = 2147488002
Rich Lanec2ee4b82013-04-24 17:12:38 -07003321
3322 def __init__(self, value=None, value_mask=None):
3323 if value != None:
3324 self.value = value
3325 else:
3326 self.value = 0
3327 if value_mask != None:
3328 self.value_mask = value_mask
3329 else:
3330 self.value_mask = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08003331 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07003332
3333 def pack(self):
3334 packed = []
3335 packed.append(struct.pack("!L", self.type_len))
3336 packed.append(struct.pack("!B", self.value))
3337 packed.append(struct.pack("!B", self.value_mask))
3338 return ''.join(packed)
3339
3340 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08003341 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07003342 obj = ip_dscp_masked()
Dan Talaycof6202252013-07-02 01:00:29 -07003343 _type_len = reader.read("!L")[0]
3344 assert(_type_len == 2147488002)
3345 obj.value = reader.read("!B")[0]
3346 obj.value_mask = reader.read("!B")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07003347 return obj
3348
3349 def __eq__(self, other):
3350 if type(self) != type(other): return False
3351 if self.value != other.value: return False
3352 if self.value_mask != other.value_mask: return False
3353 return True
3354
Rich Lanec2ee4b82013-04-24 17:12:38 -07003355 def pretty_print(self, q):
3356 q.text("ip_dscp_masked {")
3357 with q.group():
3358 with q.indent(2):
3359 q.breakable()
3360 q.text("value = ");
3361 q.text("%#x" % self.value)
3362 q.text(","); q.breakable()
3363 q.text("value_mask = ");
3364 q.text("%#x" % self.value_mask)
3365 q.breakable()
3366 q.text('}')
3367
Rich Lane7dcdf022013-12-11 14:45:27 -08003368oxm.subtypes[2147488002] = ip_dscp_masked
3369
3370class ip_ecn(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07003371 type_len = 2147488257
Rich Lanec2ee4b82013-04-24 17:12:38 -07003372
3373 def __init__(self, value=None):
3374 if value != None:
3375 self.value = value
3376 else:
3377 self.value = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08003378 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07003379
3380 def pack(self):
3381 packed = []
3382 packed.append(struct.pack("!L", self.type_len))
3383 packed.append(struct.pack("!B", self.value))
3384 return ''.join(packed)
3385
3386 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08003387 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07003388 obj = ip_ecn()
Dan Talaycof6202252013-07-02 01:00:29 -07003389 _type_len = reader.read("!L")[0]
3390 assert(_type_len == 2147488257)
3391 obj.value = reader.read("!B")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07003392 return obj
3393
3394 def __eq__(self, other):
3395 if type(self) != type(other): return False
3396 if self.value != other.value: return False
3397 return True
3398
Rich Lanec2ee4b82013-04-24 17:12:38 -07003399 def pretty_print(self, q):
3400 q.text("ip_ecn {")
3401 with q.group():
3402 with q.indent(2):
3403 q.breakable()
3404 q.text("value = ");
3405 q.text("%#x" % self.value)
3406 q.breakable()
3407 q.text('}')
3408
Rich Lane7dcdf022013-12-11 14:45:27 -08003409oxm.subtypes[2147488257] = ip_ecn
3410
3411class ip_ecn_masked(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07003412 type_len = 2147488514
Rich Lanec2ee4b82013-04-24 17:12:38 -07003413
3414 def __init__(self, value=None, value_mask=None):
3415 if value != None:
3416 self.value = value
3417 else:
3418 self.value = 0
3419 if value_mask != None:
3420 self.value_mask = value_mask
3421 else:
3422 self.value_mask = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08003423 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07003424
3425 def pack(self):
3426 packed = []
3427 packed.append(struct.pack("!L", self.type_len))
3428 packed.append(struct.pack("!B", self.value))
3429 packed.append(struct.pack("!B", self.value_mask))
3430 return ''.join(packed)
3431
3432 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08003433 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07003434 obj = ip_ecn_masked()
Dan Talaycof6202252013-07-02 01:00:29 -07003435 _type_len = reader.read("!L")[0]
3436 assert(_type_len == 2147488514)
3437 obj.value = reader.read("!B")[0]
3438 obj.value_mask = reader.read("!B")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07003439 return obj
3440
3441 def __eq__(self, other):
3442 if type(self) != type(other): return False
3443 if self.value != other.value: return False
3444 if self.value_mask != other.value_mask: return False
3445 return True
3446
Rich Lanec2ee4b82013-04-24 17:12:38 -07003447 def pretty_print(self, q):
3448 q.text("ip_ecn_masked {")
3449 with q.group():
3450 with q.indent(2):
3451 q.breakable()
3452 q.text("value = ");
3453 q.text("%#x" % self.value)
3454 q.text(","); q.breakable()
3455 q.text("value_mask = ");
3456 q.text("%#x" % self.value_mask)
3457 q.breakable()
3458 q.text('}')
3459
Rich Lane7dcdf022013-12-11 14:45:27 -08003460oxm.subtypes[2147488514] = ip_ecn_masked
3461
3462class ip_proto(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07003463 type_len = 2147488769
Rich Lanec2ee4b82013-04-24 17:12:38 -07003464
3465 def __init__(self, value=None):
3466 if value != None:
3467 self.value = value
3468 else:
3469 self.value = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08003470 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07003471
3472 def pack(self):
3473 packed = []
3474 packed.append(struct.pack("!L", self.type_len))
3475 packed.append(struct.pack("!B", self.value))
3476 return ''.join(packed)
3477
3478 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08003479 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07003480 obj = ip_proto()
Dan Talaycof6202252013-07-02 01:00:29 -07003481 _type_len = reader.read("!L")[0]
3482 assert(_type_len == 2147488769)
3483 obj.value = reader.read("!B")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07003484 return obj
3485
3486 def __eq__(self, other):
3487 if type(self) != type(other): return False
3488 if self.value != other.value: return False
3489 return True
3490
Rich Lanec2ee4b82013-04-24 17:12:38 -07003491 def pretty_print(self, q):
3492 q.text("ip_proto {")
3493 with q.group():
3494 with q.indent(2):
3495 q.breakable()
3496 q.text("value = ");
3497 q.text("%#x" % self.value)
3498 q.breakable()
3499 q.text('}')
3500
Rich Lane7dcdf022013-12-11 14:45:27 -08003501oxm.subtypes[2147488769] = ip_proto
3502
3503class ip_proto_masked(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07003504 type_len = 2147489026
Rich Lanec2ee4b82013-04-24 17:12:38 -07003505
3506 def __init__(self, value=None, value_mask=None):
3507 if value != None:
3508 self.value = value
3509 else:
3510 self.value = 0
3511 if value_mask != None:
3512 self.value_mask = value_mask
3513 else:
3514 self.value_mask = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08003515 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07003516
3517 def pack(self):
3518 packed = []
3519 packed.append(struct.pack("!L", self.type_len))
3520 packed.append(struct.pack("!B", self.value))
3521 packed.append(struct.pack("!B", self.value_mask))
3522 return ''.join(packed)
3523
3524 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08003525 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07003526 obj = ip_proto_masked()
Dan Talaycof6202252013-07-02 01:00:29 -07003527 _type_len = reader.read("!L")[0]
3528 assert(_type_len == 2147489026)
3529 obj.value = reader.read("!B")[0]
3530 obj.value_mask = reader.read("!B")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07003531 return obj
3532
3533 def __eq__(self, other):
3534 if type(self) != type(other): return False
3535 if self.value != other.value: return False
3536 if self.value_mask != other.value_mask: return False
3537 return True
3538
Rich Lanec2ee4b82013-04-24 17:12:38 -07003539 def pretty_print(self, q):
3540 q.text("ip_proto_masked {")
3541 with q.group():
3542 with q.indent(2):
3543 q.breakable()
3544 q.text("value = ");
3545 q.text("%#x" % self.value)
3546 q.text(","); q.breakable()
3547 q.text("value_mask = ");
3548 q.text("%#x" % self.value_mask)
3549 q.breakable()
3550 q.text('}')
3551
Rich Lane7dcdf022013-12-11 14:45:27 -08003552oxm.subtypes[2147489026] = ip_proto_masked
3553
3554class ipv4_dst(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07003555 type_len = 2147489796
Rich Lanec2ee4b82013-04-24 17:12:38 -07003556
3557 def __init__(self, value=None):
3558 if value != None:
3559 self.value = value
3560 else:
3561 self.value = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08003562 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07003563
3564 def pack(self):
3565 packed = []
3566 packed.append(struct.pack("!L", self.type_len))
3567 packed.append(struct.pack("!L", self.value))
3568 return ''.join(packed)
3569
3570 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08003571 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07003572 obj = ipv4_dst()
Dan Talaycof6202252013-07-02 01:00:29 -07003573 _type_len = reader.read("!L")[0]
3574 assert(_type_len == 2147489796)
3575 obj.value = reader.read("!L")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07003576 return obj
3577
3578 def __eq__(self, other):
3579 if type(self) != type(other): return False
3580 if self.value != other.value: return False
3581 return True
3582
Rich Lanec2ee4b82013-04-24 17:12:38 -07003583 def pretty_print(self, q):
3584 q.text("ipv4_dst {")
3585 with q.group():
3586 with q.indent(2):
3587 q.breakable()
3588 q.text("value = ");
Rich Laned53156a2013-08-05 17:17:33 -07003589 q.text(util.pretty_ipv4(self.value))
Rich Lanec2ee4b82013-04-24 17:12:38 -07003590 q.breakable()
3591 q.text('}')
3592
Rich Lane7dcdf022013-12-11 14:45:27 -08003593oxm.subtypes[2147489796] = ipv4_dst
3594
3595class ipv4_dst_masked(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07003596 type_len = 2147490056
Rich Lanec2ee4b82013-04-24 17:12:38 -07003597
3598 def __init__(self, value=None, value_mask=None):
3599 if value != None:
3600 self.value = value
3601 else:
3602 self.value = 0
3603 if value_mask != None:
3604 self.value_mask = value_mask
3605 else:
3606 self.value_mask = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08003607 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07003608
3609 def pack(self):
3610 packed = []
3611 packed.append(struct.pack("!L", self.type_len))
3612 packed.append(struct.pack("!L", self.value))
3613 packed.append(struct.pack("!L", self.value_mask))
3614 return ''.join(packed)
3615
3616 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08003617 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07003618 obj = ipv4_dst_masked()
Dan Talaycof6202252013-07-02 01:00:29 -07003619 _type_len = reader.read("!L")[0]
3620 assert(_type_len == 2147490056)
3621 obj.value = reader.read("!L")[0]
3622 obj.value_mask = reader.read("!L")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07003623 return obj
3624
3625 def __eq__(self, other):
3626 if type(self) != type(other): return False
3627 if self.value != other.value: return False
3628 if self.value_mask != other.value_mask: return False
3629 return True
3630
Rich Lanec2ee4b82013-04-24 17:12:38 -07003631 def pretty_print(self, q):
3632 q.text("ipv4_dst_masked {")
3633 with q.group():
3634 with q.indent(2):
3635 q.breakable()
3636 q.text("value = ");
Rich Laned53156a2013-08-05 17:17:33 -07003637 q.text(util.pretty_ipv4(self.value))
Rich Lanec2ee4b82013-04-24 17:12:38 -07003638 q.text(","); q.breakable()
3639 q.text("value_mask = ");
Rich Laned53156a2013-08-05 17:17:33 -07003640 q.text(util.pretty_ipv4(self.value_mask))
Rich Lanec2ee4b82013-04-24 17:12:38 -07003641 q.breakable()
3642 q.text('}')
3643
Rich Lane7dcdf022013-12-11 14:45:27 -08003644oxm.subtypes[2147490056] = ipv4_dst_masked
3645
3646class ipv4_src(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07003647 type_len = 2147489284
Rich Lanec2ee4b82013-04-24 17:12:38 -07003648
3649 def __init__(self, value=None):
3650 if value != None:
3651 self.value = value
3652 else:
3653 self.value = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08003654 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07003655
3656 def pack(self):
3657 packed = []
3658 packed.append(struct.pack("!L", self.type_len))
3659 packed.append(struct.pack("!L", self.value))
3660 return ''.join(packed)
3661
3662 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08003663 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07003664 obj = ipv4_src()
Dan Talaycof6202252013-07-02 01:00:29 -07003665 _type_len = reader.read("!L")[0]
3666 assert(_type_len == 2147489284)
3667 obj.value = reader.read("!L")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07003668 return obj
3669
3670 def __eq__(self, other):
3671 if type(self) != type(other): return False
3672 if self.value != other.value: return False
3673 return True
3674
Rich Lanec2ee4b82013-04-24 17:12:38 -07003675 def pretty_print(self, q):
3676 q.text("ipv4_src {")
3677 with q.group():
3678 with q.indent(2):
3679 q.breakable()
3680 q.text("value = ");
Rich Laned53156a2013-08-05 17:17:33 -07003681 q.text(util.pretty_ipv4(self.value))
Rich Lanec2ee4b82013-04-24 17:12:38 -07003682 q.breakable()
3683 q.text('}')
3684
Rich Lane7dcdf022013-12-11 14:45:27 -08003685oxm.subtypes[2147489284] = ipv4_src
3686
3687class ipv4_src_masked(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07003688 type_len = 2147489544
Rich Lanec2ee4b82013-04-24 17:12:38 -07003689
3690 def __init__(self, value=None, value_mask=None):
3691 if value != None:
3692 self.value = value
3693 else:
3694 self.value = 0
3695 if value_mask != None:
3696 self.value_mask = value_mask
3697 else:
3698 self.value_mask = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08003699 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07003700
3701 def pack(self):
3702 packed = []
3703 packed.append(struct.pack("!L", self.type_len))
3704 packed.append(struct.pack("!L", self.value))
3705 packed.append(struct.pack("!L", self.value_mask))
3706 return ''.join(packed)
3707
3708 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08003709 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07003710 obj = ipv4_src_masked()
Dan Talaycof6202252013-07-02 01:00:29 -07003711 _type_len = reader.read("!L")[0]
3712 assert(_type_len == 2147489544)
3713 obj.value = reader.read("!L")[0]
3714 obj.value_mask = reader.read("!L")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07003715 return obj
3716
3717 def __eq__(self, other):
3718 if type(self) != type(other): return False
3719 if self.value != other.value: return False
3720 if self.value_mask != other.value_mask: return False
3721 return True
3722
Rich Lanec2ee4b82013-04-24 17:12:38 -07003723 def pretty_print(self, q):
3724 q.text("ipv4_src_masked {")
3725 with q.group():
3726 with q.indent(2):
3727 q.breakable()
3728 q.text("value = ");
Rich Laned53156a2013-08-05 17:17:33 -07003729 q.text(util.pretty_ipv4(self.value))
Rich Lanec2ee4b82013-04-24 17:12:38 -07003730 q.text(","); q.breakable()
3731 q.text("value_mask = ");
Rich Laned53156a2013-08-05 17:17:33 -07003732 q.text(util.pretty_ipv4(self.value_mask))
Rich Lanec2ee4b82013-04-24 17:12:38 -07003733 q.breakable()
3734 q.text('}')
3735
Rich Lane7dcdf022013-12-11 14:45:27 -08003736oxm.subtypes[2147489544] = ipv4_src_masked
3737
3738class ipv6_dst(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07003739 type_len = 2147497488
Rich Lanec2ee4b82013-04-24 17:12:38 -07003740
3741 def __init__(self, value=None):
3742 if value != None:
3743 self.value = value
3744 else:
3745 self.value = '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
Rich Lane7dcdf022013-12-11 14:45:27 -08003746 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07003747
3748 def pack(self):
3749 packed = []
3750 packed.append(struct.pack("!L", self.type_len))
3751 packed.append(struct.pack("!16s", self.value))
3752 return ''.join(packed)
3753
3754 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08003755 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07003756 obj = ipv6_dst()
Dan Talaycof6202252013-07-02 01:00:29 -07003757 _type_len = reader.read("!L")[0]
3758 assert(_type_len == 2147497488)
Rich Lanec2ee4b82013-04-24 17:12:38 -07003759 obj.value = reader.read('!16s')[0]
3760 return obj
3761
3762 def __eq__(self, other):
3763 if type(self) != type(other): return False
3764 if self.value != other.value: return False
3765 return True
3766
Rich Lanec2ee4b82013-04-24 17:12:38 -07003767 def pretty_print(self, q):
3768 q.text("ipv6_dst {")
3769 with q.group():
3770 with q.indent(2):
3771 q.breakable()
3772 q.text("value = ");
3773 q.pp(self.value)
3774 q.breakable()
3775 q.text('}')
3776
Rich Lane7dcdf022013-12-11 14:45:27 -08003777oxm.subtypes[2147497488] = ipv6_dst
3778
3779class ipv6_dst_masked(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07003780 type_len = 2147497760
Rich Lanec2ee4b82013-04-24 17:12:38 -07003781
3782 def __init__(self, value=None, value_mask=None):
3783 if value != None:
3784 self.value = value
3785 else:
3786 self.value = '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
3787 if value_mask != None:
3788 self.value_mask = value_mask
3789 else:
3790 self.value_mask = '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
Rich Lane7dcdf022013-12-11 14:45:27 -08003791 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07003792
3793 def pack(self):
3794 packed = []
3795 packed.append(struct.pack("!L", self.type_len))
3796 packed.append(struct.pack("!16s", self.value))
3797 packed.append(struct.pack("!16s", self.value_mask))
3798 return ''.join(packed)
3799
3800 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08003801 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07003802 obj = ipv6_dst_masked()
Dan Talaycof6202252013-07-02 01:00:29 -07003803 _type_len = reader.read("!L")[0]
3804 assert(_type_len == 2147497760)
Rich Lanec2ee4b82013-04-24 17:12:38 -07003805 obj.value = reader.read('!16s')[0]
3806 obj.value_mask = reader.read('!16s')[0]
3807 return obj
3808
3809 def __eq__(self, other):
3810 if type(self) != type(other): return False
3811 if self.value != other.value: return False
3812 if self.value_mask != other.value_mask: return False
3813 return True
3814
Rich Lanec2ee4b82013-04-24 17:12:38 -07003815 def pretty_print(self, q):
3816 q.text("ipv6_dst_masked {")
3817 with q.group():
3818 with q.indent(2):
3819 q.breakable()
3820 q.text("value = ");
3821 q.pp(self.value)
3822 q.text(","); q.breakable()
3823 q.text("value_mask = ");
3824 q.pp(self.value_mask)
3825 q.breakable()
3826 q.text('}')
3827
Rich Lane7dcdf022013-12-11 14:45:27 -08003828oxm.subtypes[2147497760] = ipv6_dst_masked
3829
3830class ipv6_flabel(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07003831 type_len = 2147497988
Rich Lanec2ee4b82013-04-24 17:12:38 -07003832
3833 def __init__(self, value=None):
3834 if value != None:
3835 self.value = value
3836 else:
3837 self.value = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08003838 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07003839
3840 def pack(self):
3841 packed = []
3842 packed.append(struct.pack("!L", self.type_len))
3843 packed.append(struct.pack("!L", self.value))
3844 return ''.join(packed)
3845
3846 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08003847 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07003848 obj = ipv6_flabel()
Dan Talaycof6202252013-07-02 01:00:29 -07003849 _type_len = reader.read("!L")[0]
3850 assert(_type_len == 2147497988)
3851 obj.value = reader.read("!L")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07003852 return obj
3853
3854 def __eq__(self, other):
3855 if type(self) != type(other): return False
3856 if self.value != other.value: return False
3857 return True
3858
Rich Lanec2ee4b82013-04-24 17:12:38 -07003859 def pretty_print(self, q):
3860 q.text("ipv6_flabel {")
3861 with q.group():
3862 with q.indent(2):
3863 q.breakable()
3864 q.text("value = ");
3865 q.text("%#x" % self.value)
3866 q.breakable()
3867 q.text('}')
3868
Rich Lane7dcdf022013-12-11 14:45:27 -08003869oxm.subtypes[2147497988] = ipv6_flabel
3870
3871class ipv6_flabel_masked(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07003872 type_len = 2147498248
Rich Lanec2ee4b82013-04-24 17:12:38 -07003873
3874 def __init__(self, value=None, value_mask=None):
3875 if value != None:
3876 self.value = value
3877 else:
3878 self.value = 0
3879 if value_mask != None:
3880 self.value_mask = value_mask
3881 else:
3882 self.value_mask = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08003883 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07003884
3885 def pack(self):
3886 packed = []
3887 packed.append(struct.pack("!L", self.type_len))
3888 packed.append(struct.pack("!L", self.value))
3889 packed.append(struct.pack("!L", self.value_mask))
3890 return ''.join(packed)
3891
3892 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08003893 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07003894 obj = ipv6_flabel_masked()
Dan Talaycof6202252013-07-02 01:00:29 -07003895 _type_len = reader.read("!L")[0]
3896 assert(_type_len == 2147498248)
3897 obj.value = reader.read("!L")[0]
3898 obj.value_mask = reader.read("!L")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07003899 return obj
3900
3901 def __eq__(self, other):
3902 if type(self) != type(other): return False
3903 if self.value != other.value: return False
3904 if self.value_mask != other.value_mask: return False
3905 return True
3906
Rich Lanec2ee4b82013-04-24 17:12:38 -07003907 def pretty_print(self, q):
3908 q.text("ipv6_flabel_masked {")
3909 with q.group():
3910 with q.indent(2):
3911 q.breakable()
3912 q.text("value = ");
3913 q.text("%#x" % self.value)
3914 q.text(","); q.breakable()
3915 q.text("value_mask = ");
3916 q.text("%#x" % self.value_mask)
3917 q.breakable()
3918 q.text('}')
3919
Rich Lane7dcdf022013-12-11 14:45:27 -08003920oxm.subtypes[2147498248] = ipv6_flabel_masked
3921
3922class ipv6_nd_sll(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07003923 type_len = 2147500038
Rich Lanec2ee4b82013-04-24 17:12:38 -07003924
3925 def __init__(self, value=None):
3926 if value != None:
3927 self.value = value
3928 else:
3929 self.value = [0,0,0,0,0,0]
Rich Lane7dcdf022013-12-11 14:45:27 -08003930 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07003931
3932 def pack(self):
3933 packed = []
3934 packed.append(struct.pack("!L", self.type_len))
3935 packed.append(struct.pack("!6B", *self.value))
3936 return ''.join(packed)
3937
3938 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08003939 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07003940 obj = ipv6_nd_sll()
Dan Talaycof6202252013-07-02 01:00:29 -07003941 _type_len = reader.read("!L")[0]
3942 assert(_type_len == 2147500038)
Rich Lanec2ee4b82013-04-24 17:12:38 -07003943 obj.value = list(reader.read('!6B'))
3944 return obj
3945
3946 def __eq__(self, other):
3947 if type(self) != type(other): return False
3948 if self.value != other.value: return False
3949 return True
3950
Rich Lanec2ee4b82013-04-24 17:12:38 -07003951 def pretty_print(self, q):
3952 q.text("ipv6_nd_sll {")
3953 with q.group():
3954 with q.indent(2):
3955 q.breakable()
3956 q.text("value = ");
3957 q.text(util.pretty_mac(self.value))
3958 q.breakable()
3959 q.text('}')
3960
Rich Lane7dcdf022013-12-11 14:45:27 -08003961oxm.subtypes[2147500038] = ipv6_nd_sll
3962
3963class ipv6_nd_sll_masked(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07003964 type_len = 2147500300
Rich Lanec2ee4b82013-04-24 17:12:38 -07003965
3966 def __init__(self, value=None, value_mask=None):
3967 if value != None:
3968 self.value = value
3969 else:
3970 self.value = [0,0,0,0,0,0]
3971 if value_mask != None:
3972 self.value_mask = value_mask
3973 else:
3974 self.value_mask = [0,0,0,0,0,0]
Rich Lane7dcdf022013-12-11 14:45:27 -08003975 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07003976
3977 def pack(self):
3978 packed = []
3979 packed.append(struct.pack("!L", self.type_len))
3980 packed.append(struct.pack("!6B", *self.value))
3981 packed.append(struct.pack("!6B", *self.value_mask))
3982 return ''.join(packed)
3983
3984 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08003985 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07003986 obj = ipv6_nd_sll_masked()
Dan Talaycof6202252013-07-02 01:00:29 -07003987 _type_len = reader.read("!L")[0]
3988 assert(_type_len == 2147500300)
Rich Lanec2ee4b82013-04-24 17:12:38 -07003989 obj.value = list(reader.read('!6B'))
3990 obj.value_mask = list(reader.read('!6B'))
3991 return obj
3992
3993 def __eq__(self, other):
3994 if type(self) != type(other): return False
3995 if self.value != other.value: return False
3996 if self.value_mask != other.value_mask: return False
3997 return True
3998
Rich Lanec2ee4b82013-04-24 17:12:38 -07003999 def pretty_print(self, q):
4000 q.text("ipv6_nd_sll_masked {")
4001 with q.group():
4002 with q.indent(2):
4003 q.breakable()
4004 q.text("value = ");
4005 q.text(util.pretty_mac(self.value))
4006 q.text(","); q.breakable()
4007 q.text("value_mask = ");
4008 q.text(util.pretty_mac(self.value_mask))
4009 q.breakable()
4010 q.text('}')
4011
Rich Lane7dcdf022013-12-11 14:45:27 -08004012oxm.subtypes[2147500300] = ipv6_nd_sll_masked
4013
4014class ipv6_nd_target(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07004015 type_len = 2147499536
Rich Lanec2ee4b82013-04-24 17:12:38 -07004016
4017 def __init__(self, value=None):
4018 if value != None:
4019 self.value = value
4020 else:
4021 self.value = '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
Rich Lane7dcdf022013-12-11 14:45:27 -08004022 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07004023
4024 def pack(self):
4025 packed = []
4026 packed.append(struct.pack("!L", self.type_len))
4027 packed.append(struct.pack("!16s", self.value))
4028 return ''.join(packed)
4029
4030 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08004031 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07004032 obj = ipv6_nd_target()
Dan Talaycof6202252013-07-02 01:00:29 -07004033 _type_len = reader.read("!L")[0]
4034 assert(_type_len == 2147499536)
Rich Lanec2ee4b82013-04-24 17:12:38 -07004035 obj.value = reader.read('!16s')[0]
4036 return obj
4037
4038 def __eq__(self, other):
4039 if type(self) != type(other): return False
4040 if self.value != other.value: return False
4041 return True
4042
Rich Lanec2ee4b82013-04-24 17:12:38 -07004043 def pretty_print(self, q):
4044 q.text("ipv6_nd_target {")
4045 with q.group():
4046 with q.indent(2):
4047 q.breakable()
4048 q.text("value = ");
4049 q.pp(self.value)
4050 q.breakable()
4051 q.text('}')
4052
Rich Lane7dcdf022013-12-11 14:45:27 -08004053oxm.subtypes[2147499536] = ipv6_nd_target
4054
4055class ipv6_nd_target_masked(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07004056 type_len = 2147499808
Rich Lanec2ee4b82013-04-24 17:12:38 -07004057
4058 def __init__(self, value=None, value_mask=None):
4059 if value != None:
4060 self.value = value
4061 else:
4062 self.value = '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
4063 if value_mask != None:
4064 self.value_mask = value_mask
4065 else:
4066 self.value_mask = '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
Rich Lane7dcdf022013-12-11 14:45:27 -08004067 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07004068
4069 def pack(self):
4070 packed = []
4071 packed.append(struct.pack("!L", self.type_len))
4072 packed.append(struct.pack("!16s", self.value))
4073 packed.append(struct.pack("!16s", self.value_mask))
4074 return ''.join(packed)
4075
4076 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08004077 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07004078 obj = ipv6_nd_target_masked()
Dan Talaycof6202252013-07-02 01:00:29 -07004079 _type_len = reader.read("!L")[0]
4080 assert(_type_len == 2147499808)
Rich Lanec2ee4b82013-04-24 17:12:38 -07004081 obj.value = reader.read('!16s')[0]
4082 obj.value_mask = reader.read('!16s')[0]
4083 return obj
4084
4085 def __eq__(self, other):
4086 if type(self) != type(other): return False
4087 if self.value != other.value: return False
4088 if self.value_mask != other.value_mask: return False
4089 return True
4090
Rich Lanec2ee4b82013-04-24 17:12:38 -07004091 def pretty_print(self, q):
4092 q.text("ipv6_nd_target_masked {")
4093 with q.group():
4094 with q.indent(2):
4095 q.breakable()
4096 q.text("value = ");
4097 q.pp(self.value)
4098 q.text(","); q.breakable()
4099 q.text("value_mask = ");
4100 q.pp(self.value_mask)
4101 q.breakable()
4102 q.text('}')
4103
Rich Lane7dcdf022013-12-11 14:45:27 -08004104oxm.subtypes[2147499808] = ipv6_nd_target_masked
4105
4106class ipv6_nd_tll(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07004107 type_len = 2147500550
Rich Lanec2ee4b82013-04-24 17:12:38 -07004108
4109 def __init__(self, value=None):
4110 if value != None:
4111 self.value = value
4112 else:
4113 self.value = [0,0,0,0,0,0]
Rich Lane7dcdf022013-12-11 14:45:27 -08004114 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07004115
4116 def pack(self):
4117 packed = []
4118 packed.append(struct.pack("!L", self.type_len))
4119 packed.append(struct.pack("!6B", *self.value))
4120 return ''.join(packed)
4121
4122 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08004123 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07004124 obj = ipv6_nd_tll()
Dan Talaycof6202252013-07-02 01:00:29 -07004125 _type_len = reader.read("!L")[0]
4126 assert(_type_len == 2147500550)
Rich Lanec2ee4b82013-04-24 17:12:38 -07004127 obj.value = list(reader.read('!6B'))
4128 return obj
4129
4130 def __eq__(self, other):
4131 if type(self) != type(other): return False
4132 if self.value != other.value: return False
4133 return True
4134
Rich Lanec2ee4b82013-04-24 17:12:38 -07004135 def pretty_print(self, q):
4136 q.text("ipv6_nd_tll {")
4137 with q.group():
4138 with q.indent(2):
4139 q.breakable()
4140 q.text("value = ");
4141 q.text(util.pretty_mac(self.value))
4142 q.breakable()
4143 q.text('}')
4144
Rich Lane7dcdf022013-12-11 14:45:27 -08004145oxm.subtypes[2147500550] = ipv6_nd_tll
4146
4147class ipv6_nd_tll_masked(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07004148 type_len = 2147500812
Rich Lanec2ee4b82013-04-24 17:12:38 -07004149
4150 def __init__(self, value=None, value_mask=None):
4151 if value != None:
4152 self.value = value
4153 else:
4154 self.value = [0,0,0,0,0,0]
4155 if value_mask != None:
4156 self.value_mask = value_mask
4157 else:
4158 self.value_mask = [0,0,0,0,0,0]
Rich Lane7dcdf022013-12-11 14:45:27 -08004159 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07004160
4161 def pack(self):
4162 packed = []
4163 packed.append(struct.pack("!L", self.type_len))
4164 packed.append(struct.pack("!6B", *self.value))
4165 packed.append(struct.pack("!6B", *self.value_mask))
4166 return ''.join(packed)
4167
4168 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08004169 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07004170 obj = ipv6_nd_tll_masked()
Dan Talaycof6202252013-07-02 01:00:29 -07004171 _type_len = reader.read("!L")[0]
4172 assert(_type_len == 2147500812)
Rich Lanec2ee4b82013-04-24 17:12:38 -07004173 obj.value = list(reader.read('!6B'))
4174 obj.value_mask = list(reader.read('!6B'))
4175 return obj
4176
4177 def __eq__(self, other):
4178 if type(self) != type(other): return False
4179 if self.value != other.value: return False
4180 if self.value_mask != other.value_mask: return False
4181 return True
4182
Rich Lanec2ee4b82013-04-24 17:12:38 -07004183 def pretty_print(self, q):
4184 q.text("ipv6_nd_tll_masked {")
4185 with q.group():
4186 with q.indent(2):
4187 q.breakable()
4188 q.text("value = ");
4189 q.text(util.pretty_mac(self.value))
4190 q.text(","); q.breakable()
4191 q.text("value_mask = ");
4192 q.text(util.pretty_mac(self.value_mask))
4193 q.breakable()
4194 q.text('}')
4195
Rich Lane7dcdf022013-12-11 14:45:27 -08004196oxm.subtypes[2147500812] = ipv6_nd_tll_masked
4197
4198class ipv6_src(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07004199 type_len = 2147496976
Rich Lanec2ee4b82013-04-24 17:12:38 -07004200
4201 def __init__(self, value=None):
4202 if value != None:
4203 self.value = value
4204 else:
4205 self.value = '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
Rich Lane7dcdf022013-12-11 14:45:27 -08004206 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07004207
4208 def pack(self):
4209 packed = []
4210 packed.append(struct.pack("!L", self.type_len))
4211 packed.append(struct.pack("!16s", self.value))
4212 return ''.join(packed)
4213
4214 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08004215 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07004216 obj = ipv6_src()
Dan Talaycof6202252013-07-02 01:00:29 -07004217 _type_len = reader.read("!L")[0]
4218 assert(_type_len == 2147496976)
Rich Lanec2ee4b82013-04-24 17:12:38 -07004219 obj.value = reader.read('!16s')[0]
4220 return obj
4221
4222 def __eq__(self, other):
4223 if type(self) != type(other): return False
4224 if self.value != other.value: return False
4225 return True
4226
Rich Lanec2ee4b82013-04-24 17:12:38 -07004227 def pretty_print(self, q):
4228 q.text("ipv6_src {")
4229 with q.group():
4230 with q.indent(2):
4231 q.breakable()
4232 q.text("value = ");
4233 q.pp(self.value)
4234 q.breakable()
4235 q.text('}')
4236
Rich Lane7dcdf022013-12-11 14:45:27 -08004237oxm.subtypes[2147496976] = ipv6_src
4238
4239class ipv6_src_masked(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07004240 type_len = 2147497248
Rich Lanec2ee4b82013-04-24 17:12:38 -07004241
4242 def __init__(self, value=None, value_mask=None):
4243 if value != None:
4244 self.value = value
4245 else:
4246 self.value = '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
4247 if value_mask != None:
4248 self.value_mask = value_mask
4249 else:
4250 self.value_mask = '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
Rich Lane7dcdf022013-12-11 14:45:27 -08004251 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07004252
4253 def pack(self):
4254 packed = []
4255 packed.append(struct.pack("!L", self.type_len))
4256 packed.append(struct.pack("!16s", self.value))
4257 packed.append(struct.pack("!16s", self.value_mask))
4258 return ''.join(packed)
4259
4260 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08004261 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07004262 obj = ipv6_src_masked()
Dan Talaycof6202252013-07-02 01:00:29 -07004263 _type_len = reader.read("!L")[0]
4264 assert(_type_len == 2147497248)
Rich Lanec2ee4b82013-04-24 17:12:38 -07004265 obj.value = reader.read('!16s')[0]
4266 obj.value_mask = reader.read('!16s')[0]
4267 return obj
4268
4269 def __eq__(self, other):
4270 if type(self) != type(other): return False
4271 if self.value != other.value: return False
4272 if self.value_mask != other.value_mask: return False
4273 return True
4274
Rich Lanec2ee4b82013-04-24 17:12:38 -07004275 def pretty_print(self, q):
4276 q.text("ipv6_src_masked {")
4277 with q.group():
4278 with q.indent(2):
4279 q.breakable()
4280 q.text("value = ");
4281 q.pp(self.value)
4282 q.text(","); q.breakable()
4283 q.text("value_mask = ");
4284 q.pp(self.value_mask)
4285 q.breakable()
4286 q.text('}')
4287
Rich Lane7dcdf022013-12-11 14:45:27 -08004288oxm.subtypes[2147497248] = ipv6_src_masked
4289
4290class metadata(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07004291 type_len = 2147484680
Rich Lanec2ee4b82013-04-24 17:12:38 -07004292
4293 def __init__(self, value=None):
4294 if value != None:
4295 self.value = value
4296 else:
4297 self.value = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08004298 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07004299
4300 def pack(self):
4301 packed = []
4302 packed.append(struct.pack("!L", self.type_len))
4303 packed.append(struct.pack("!Q", self.value))
4304 return ''.join(packed)
4305
4306 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08004307 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07004308 obj = metadata()
Dan Talaycof6202252013-07-02 01:00:29 -07004309 _type_len = reader.read("!L")[0]
4310 assert(_type_len == 2147484680)
4311 obj.value = reader.read("!Q")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07004312 return obj
4313
4314 def __eq__(self, other):
4315 if type(self) != type(other): return False
4316 if self.value != other.value: return False
4317 return True
4318
Rich Lanec2ee4b82013-04-24 17:12:38 -07004319 def pretty_print(self, q):
4320 q.text("metadata {")
4321 with q.group():
4322 with q.indent(2):
4323 q.breakable()
4324 q.text("value = ");
4325 q.text("%#x" % self.value)
4326 q.breakable()
4327 q.text('}')
4328
Rich Lane7dcdf022013-12-11 14:45:27 -08004329oxm.subtypes[2147484680] = metadata
4330
4331class metadata_masked(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07004332 type_len = 2147484944
Rich Lanec2ee4b82013-04-24 17:12:38 -07004333
4334 def __init__(self, value=None, value_mask=None):
4335 if value != None:
4336 self.value = value
4337 else:
4338 self.value = 0
4339 if value_mask != None:
4340 self.value_mask = value_mask
4341 else:
4342 self.value_mask = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08004343 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07004344
4345 def pack(self):
4346 packed = []
4347 packed.append(struct.pack("!L", self.type_len))
4348 packed.append(struct.pack("!Q", self.value))
4349 packed.append(struct.pack("!Q", self.value_mask))
4350 return ''.join(packed)
4351
4352 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08004353 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07004354 obj = metadata_masked()
Dan Talaycof6202252013-07-02 01:00:29 -07004355 _type_len = reader.read("!L")[0]
4356 assert(_type_len == 2147484944)
4357 obj.value = reader.read("!Q")[0]
4358 obj.value_mask = reader.read("!Q")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07004359 return obj
4360
4361 def __eq__(self, other):
4362 if type(self) != type(other): return False
4363 if self.value != other.value: return False
4364 if self.value_mask != other.value_mask: return False
4365 return True
4366
Rich Lanec2ee4b82013-04-24 17:12:38 -07004367 def pretty_print(self, q):
4368 q.text("metadata_masked {")
4369 with q.group():
4370 with q.indent(2):
4371 q.breakable()
4372 q.text("value = ");
4373 q.text("%#x" % self.value)
4374 q.text(","); q.breakable()
4375 q.text("value_mask = ");
4376 q.text("%#x" % self.value_mask)
4377 q.breakable()
4378 q.text('}')
4379
Rich Lane7dcdf022013-12-11 14:45:27 -08004380oxm.subtypes[2147484944] = metadata_masked
4381
4382class mpls_label(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07004383 type_len = 2147501060
Rich Lanec2ee4b82013-04-24 17:12:38 -07004384
4385 def __init__(self, value=None):
4386 if value != None:
4387 self.value = value
4388 else:
4389 self.value = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08004390 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07004391
4392 def pack(self):
4393 packed = []
4394 packed.append(struct.pack("!L", self.type_len))
4395 packed.append(struct.pack("!L", self.value))
4396 return ''.join(packed)
4397
4398 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08004399 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07004400 obj = mpls_label()
Dan Talaycof6202252013-07-02 01:00:29 -07004401 _type_len = reader.read("!L")[0]
4402 assert(_type_len == 2147501060)
4403 obj.value = reader.read("!L")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07004404 return obj
4405
4406 def __eq__(self, other):
4407 if type(self) != type(other): return False
4408 if self.value != other.value: return False
4409 return True
4410
Rich Lanec2ee4b82013-04-24 17:12:38 -07004411 def pretty_print(self, q):
4412 q.text("mpls_label {")
4413 with q.group():
4414 with q.indent(2):
4415 q.breakable()
4416 q.text("value = ");
4417 q.text("%#x" % self.value)
4418 q.breakable()
4419 q.text('}')
4420
Rich Lane7dcdf022013-12-11 14:45:27 -08004421oxm.subtypes[2147501060] = mpls_label
4422
4423class mpls_label_masked(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07004424 type_len = 2147501320
Rich Lanec2ee4b82013-04-24 17:12:38 -07004425
4426 def __init__(self, value=None, value_mask=None):
4427 if value != None:
4428 self.value = value
4429 else:
4430 self.value = 0
4431 if value_mask != None:
4432 self.value_mask = value_mask
4433 else:
4434 self.value_mask = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08004435 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07004436
4437 def pack(self):
4438 packed = []
4439 packed.append(struct.pack("!L", self.type_len))
4440 packed.append(struct.pack("!L", self.value))
4441 packed.append(struct.pack("!L", self.value_mask))
4442 return ''.join(packed)
4443
4444 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08004445 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07004446 obj = mpls_label_masked()
Dan Talaycof6202252013-07-02 01:00:29 -07004447 _type_len = reader.read("!L")[0]
4448 assert(_type_len == 2147501320)
4449 obj.value = reader.read("!L")[0]
4450 obj.value_mask = reader.read("!L")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07004451 return obj
4452
4453 def __eq__(self, other):
4454 if type(self) != type(other): return False
4455 if self.value != other.value: return False
4456 if self.value_mask != other.value_mask: return False
4457 return True
4458
Rich Lanec2ee4b82013-04-24 17:12:38 -07004459 def pretty_print(self, q):
4460 q.text("mpls_label_masked {")
4461 with q.group():
4462 with q.indent(2):
4463 q.breakable()
4464 q.text("value = ");
4465 q.text("%#x" % self.value)
4466 q.text(","); q.breakable()
4467 q.text("value_mask = ");
4468 q.text("%#x" % self.value_mask)
4469 q.breakable()
4470 q.text('}')
4471
Rich Lane7dcdf022013-12-11 14:45:27 -08004472oxm.subtypes[2147501320] = mpls_label_masked
4473
4474class mpls_tc(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07004475 type_len = 2147501569
Rich Lanec2ee4b82013-04-24 17:12:38 -07004476
4477 def __init__(self, value=None):
4478 if value != None:
4479 self.value = value
4480 else:
4481 self.value = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08004482 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07004483
4484 def pack(self):
4485 packed = []
4486 packed.append(struct.pack("!L", self.type_len))
4487 packed.append(struct.pack("!B", self.value))
4488 return ''.join(packed)
4489
4490 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08004491 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07004492 obj = mpls_tc()
Dan Talaycof6202252013-07-02 01:00:29 -07004493 _type_len = reader.read("!L")[0]
4494 assert(_type_len == 2147501569)
4495 obj.value = reader.read("!B")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07004496 return obj
4497
4498 def __eq__(self, other):
4499 if type(self) != type(other): return False
4500 if self.value != other.value: return False
4501 return True
4502
Rich Lanec2ee4b82013-04-24 17:12:38 -07004503 def pretty_print(self, q):
4504 q.text("mpls_tc {")
4505 with q.group():
4506 with q.indent(2):
4507 q.breakable()
4508 q.text("value = ");
4509 q.text("%#x" % self.value)
4510 q.breakable()
4511 q.text('}')
4512
Rich Lane7dcdf022013-12-11 14:45:27 -08004513oxm.subtypes[2147501569] = mpls_tc
4514
4515class mpls_tc_masked(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07004516 type_len = 2147501826
Rich Lanec2ee4b82013-04-24 17:12:38 -07004517
4518 def __init__(self, value=None, value_mask=None):
4519 if value != None:
4520 self.value = value
4521 else:
4522 self.value = 0
4523 if value_mask != None:
4524 self.value_mask = value_mask
4525 else:
4526 self.value_mask = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08004527 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07004528
4529 def pack(self):
4530 packed = []
4531 packed.append(struct.pack("!L", self.type_len))
4532 packed.append(struct.pack("!B", self.value))
4533 packed.append(struct.pack("!B", self.value_mask))
4534 return ''.join(packed)
4535
4536 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08004537 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07004538 obj = mpls_tc_masked()
Dan Talaycof6202252013-07-02 01:00:29 -07004539 _type_len = reader.read("!L")[0]
4540 assert(_type_len == 2147501826)
4541 obj.value = reader.read("!B")[0]
4542 obj.value_mask = reader.read("!B")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07004543 return obj
4544
4545 def __eq__(self, other):
4546 if type(self) != type(other): return False
4547 if self.value != other.value: return False
4548 if self.value_mask != other.value_mask: return False
4549 return True
4550
Rich Lanec2ee4b82013-04-24 17:12:38 -07004551 def pretty_print(self, q):
4552 q.text("mpls_tc_masked {")
4553 with q.group():
4554 with q.indent(2):
4555 q.breakable()
4556 q.text("value = ");
4557 q.text("%#x" % self.value)
4558 q.text(","); q.breakable()
4559 q.text("value_mask = ");
4560 q.text("%#x" % self.value_mask)
4561 q.breakable()
4562 q.text('}')
4563
Rich Lane7dcdf022013-12-11 14:45:27 -08004564oxm.subtypes[2147501826] = mpls_tc_masked
4565
4566class sctp_dst(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07004567 type_len = 2147492866
Rich Lanec2ee4b82013-04-24 17:12:38 -07004568
4569 def __init__(self, value=None):
4570 if value != None:
4571 self.value = value
4572 else:
4573 self.value = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08004574 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07004575
4576 def pack(self):
4577 packed = []
4578 packed.append(struct.pack("!L", self.type_len))
4579 packed.append(struct.pack("!H", self.value))
4580 return ''.join(packed)
4581
4582 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08004583 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07004584 obj = sctp_dst()
Dan Talaycof6202252013-07-02 01:00:29 -07004585 _type_len = reader.read("!L")[0]
4586 assert(_type_len == 2147492866)
4587 obj.value = reader.read("!H")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07004588 return obj
4589
4590 def __eq__(self, other):
4591 if type(self) != type(other): return False
4592 if self.value != other.value: return False
4593 return True
4594
Rich Lanec2ee4b82013-04-24 17:12:38 -07004595 def pretty_print(self, q):
4596 q.text("sctp_dst {")
4597 with q.group():
4598 with q.indent(2):
4599 q.breakable()
4600 q.text("value = ");
4601 q.text("%#x" % self.value)
4602 q.breakable()
4603 q.text('}')
4604
Rich Lane7dcdf022013-12-11 14:45:27 -08004605oxm.subtypes[2147492866] = sctp_dst
4606
4607class sctp_dst_masked(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07004608 type_len = 2147493124
Rich Lanec2ee4b82013-04-24 17:12:38 -07004609
4610 def __init__(self, value=None, value_mask=None):
4611 if value != None:
4612 self.value = value
4613 else:
4614 self.value = 0
4615 if value_mask != None:
4616 self.value_mask = value_mask
4617 else:
4618 self.value_mask = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08004619 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07004620
4621 def pack(self):
4622 packed = []
4623 packed.append(struct.pack("!L", self.type_len))
4624 packed.append(struct.pack("!H", self.value))
4625 packed.append(struct.pack("!H", self.value_mask))
4626 return ''.join(packed)
4627
4628 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08004629 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07004630 obj = sctp_dst_masked()
Dan Talaycof6202252013-07-02 01:00:29 -07004631 _type_len = reader.read("!L")[0]
4632 assert(_type_len == 2147493124)
4633 obj.value = reader.read("!H")[0]
4634 obj.value_mask = reader.read("!H")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07004635 return obj
4636
4637 def __eq__(self, other):
4638 if type(self) != type(other): return False
4639 if self.value != other.value: return False
4640 if self.value_mask != other.value_mask: return False
4641 return True
4642
Rich Lanec2ee4b82013-04-24 17:12:38 -07004643 def pretty_print(self, q):
4644 q.text("sctp_dst_masked {")
4645 with q.group():
4646 with q.indent(2):
4647 q.breakable()
4648 q.text("value = ");
4649 q.text("%#x" % self.value)
4650 q.text(","); q.breakable()
4651 q.text("value_mask = ");
4652 q.text("%#x" % self.value_mask)
4653 q.breakable()
4654 q.text('}')
4655
Rich Lane7dcdf022013-12-11 14:45:27 -08004656oxm.subtypes[2147493124] = sctp_dst_masked
4657
4658class sctp_src(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07004659 type_len = 2147492354
Rich Lanec2ee4b82013-04-24 17:12:38 -07004660
4661 def __init__(self, value=None):
4662 if value != None:
4663 self.value = value
4664 else:
4665 self.value = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08004666 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07004667
4668 def pack(self):
4669 packed = []
4670 packed.append(struct.pack("!L", self.type_len))
4671 packed.append(struct.pack("!H", self.value))
4672 return ''.join(packed)
4673
4674 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08004675 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07004676 obj = sctp_src()
Dan Talaycof6202252013-07-02 01:00:29 -07004677 _type_len = reader.read("!L")[0]
4678 assert(_type_len == 2147492354)
4679 obj.value = reader.read("!H")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07004680 return obj
4681
4682 def __eq__(self, other):
4683 if type(self) != type(other): return False
4684 if self.value != other.value: return False
4685 return True
4686
Rich Lanec2ee4b82013-04-24 17:12:38 -07004687 def pretty_print(self, q):
4688 q.text("sctp_src {")
4689 with q.group():
4690 with q.indent(2):
4691 q.breakable()
4692 q.text("value = ");
4693 q.text("%#x" % self.value)
4694 q.breakable()
4695 q.text('}')
4696
Rich Lane7dcdf022013-12-11 14:45:27 -08004697oxm.subtypes[2147492354] = sctp_src
4698
4699class sctp_src_masked(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07004700 type_len = 2147492612
Rich Lanec2ee4b82013-04-24 17:12:38 -07004701
4702 def __init__(self, value=None, value_mask=None):
4703 if value != None:
4704 self.value = value
4705 else:
4706 self.value = 0
4707 if value_mask != None:
4708 self.value_mask = value_mask
4709 else:
4710 self.value_mask = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08004711 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07004712
4713 def pack(self):
4714 packed = []
4715 packed.append(struct.pack("!L", self.type_len))
4716 packed.append(struct.pack("!H", self.value))
4717 packed.append(struct.pack("!H", self.value_mask))
4718 return ''.join(packed)
4719
4720 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08004721 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07004722 obj = sctp_src_masked()
Dan Talaycof6202252013-07-02 01:00:29 -07004723 _type_len = reader.read("!L")[0]
4724 assert(_type_len == 2147492612)
4725 obj.value = reader.read("!H")[0]
4726 obj.value_mask = reader.read("!H")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07004727 return obj
4728
4729 def __eq__(self, other):
4730 if type(self) != type(other): return False
4731 if self.value != other.value: return False
4732 if self.value_mask != other.value_mask: return False
4733 return True
4734
Rich Lanec2ee4b82013-04-24 17:12:38 -07004735 def pretty_print(self, q):
4736 q.text("sctp_src_masked {")
4737 with q.group():
4738 with q.indent(2):
4739 q.breakable()
4740 q.text("value = ");
4741 q.text("%#x" % self.value)
4742 q.text(","); q.breakable()
4743 q.text("value_mask = ");
4744 q.text("%#x" % self.value_mask)
4745 q.breakable()
4746 q.text('}')
4747
Rich Lane7dcdf022013-12-11 14:45:27 -08004748oxm.subtypes[2147492612] = sctp_src_masked
4749
4750class tcp_dst(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07004751 type_len = 2147490818
Rich Lanec2ee4b82013-04-24 17:12:38 -07004752
4753 def __init__(self, value=None):
4754 if value != None:
4755 self.value = value
4756 else:
4757 self.value = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08004758 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07004759
4760 def pack(self):
4761 packed = []
4762 packed.append(struct.pack("!L", self.type_len))
4763 packed.append(struct.pack("!H", self.value))
4764 return ''.join(packed)
4765
4766 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08004767 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07004768 obj = tcp_dst()
Dan Talaycof6202252013-07-02 01:00:29 -07004769 _type_len = reader.read("!L")[0]
4770 assert(_type_len == 2147490818)
4771 obj.value = reader.read("!H")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07004772 return obj
4773
4774 def __eq__(self, other):
4775 if type(self) != type(other): return False
4776 if self.value != other.value: return False
4777 return True
4778
Rich Lanec2ee4b82013-04-24 17:12:38 -07004779 def pretty_print(self, q):
4780 q.text("tcp_dst {")
4781 with q.group():
4782 with q.indent(2):
4783 q.breakable()
4784 q.text("value = ");
4785 q.text("%#x" % self.value)
4786 q.breakable()
4787 q.text('}')
4788
Rich Lane7dcdf022013-12-11 14:45:27 -08004789oxm.subtypes[2147490818] = tcp_dst
4790
4791class tcp_dst_masked(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07004792 type_len = 2147491076
Rich Lanec2ee4b82013-04-24 17:12:38 -07004793
4794 def __init__(self, value=None, value_mask=None):
4795 if value != None:
4796 self.value = value
4797 else:
4798 self.value = 0
4799 if value_mask != None:
4800 self.value_mask = value_mask
4801 else:
4802 self.value_mask = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08004803 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07004804
4805 def pack(self):
4806 packed = []
4807 packed.append(struct.pack("!L", self.type_len))
4808 packed.append(struct.pack("!H", self.value))
4809 packed.append(struct.pack("!H", self.value_mask))
4810 return ''.join(packed)
4811
4812 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08004813 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07004814 obj = tcp_dst_masked()
Dan Talaycof6202252013-07-02 01:00:29 -07004815 _type_len = reader.read("!L")[0]
4816 assert(_type_len == 2147491076)
4817 obj.value = reader.read("!H")[0]
4818 obj.value_mask = reader.read("!H")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07004819 return obj
4820
4821 def __eq__(self, other):
4822 if type(self) != type(other): return False
4823 if self.value != other.value: return False
4824 if self.value_mask != other.value_mask: return False
4825 return True
4826
Rich Lanec2ee4b82013-04-24 17:12:38 -07004827 def pretty_print(self, q):
4828 q.text("tcp_dst_masked {")
4829 with q.group():
4830 with q.indent(2):
4831 q.breakable()
4832 q.text("value = ");
4833 q.text("%#x" % self.value)
4834 q.text(","); q.breakable()
4835 q.text("value_mask = ");
4836 q.text("%#x" % self.value_mask)
4837 q.breakable()
4838 q.text('}')
4839
Rich Lane7dcdf022013-12-11 14:45:27 -08004840oxm.subtypes[2147491076] = tcp_dst_masked
4841
4842class tcp_src(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07004843 type_len = 2147490306
Rich Lanec2ee4b82013-04-24 17:12:38 -07004844
4845 def __init__(self, value=None):
4846 if value != None:
4847 self.value = value
4848 else:
4849 self.value = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08004850 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07004851
4852 def pack(self):
4853 packed = []
4854 packed.append(struct.pack("!L", self.type_len))
4855 packed.append(struct.pack("!H", self.value))
4856 return ''.join(packed)
4857
4858 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08004859 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07004860 obj = tcp_src()
Dan Talaycof6202252013-07-02 01:00:29 -07004861 _type_len = reader.read("!L")[0]
4862 assert(_type_len == 2147490306)
4863 obj.value = reader.read("!H")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07004864 return obj
4865
4866 def __eq__(self, other):
4867 if type(self) != type(other): return False
4868 if self.value != other.value: return False
4869 return True
4870
Rich Lanec2ee4b82013-04-24 17:12:38 -07004871 def pretty_print(self, q):
4872 q.text("tcp_src {")
4873 with q.group():
4874 with q.indent(2):
4875 q.breakable()
4876 q.text("value = ");
4877 q.text("%#x" % self.value)
4878 q.breakable()
4879 q.text('}')
4880
Rich Lane7dcdf022013-12-11 14:45:27 -08004881oxm.subtypes[2147490306] = tcp_src
4882
4883class tcp_src_masked(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07004884 type_len = 2147490564
Rich Lanec2ee4b82013-04-24 17:12:38 -07004885
4886 def __init__(self, value=None, value_mask=None):
4887 if value != None:
4888 self.value = value
4889 else:
4890 self.value = 0
4891 if value_mask != None:
4892 self.value_mask = value_mask
4893 else:
4894 self.value_mask = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08004895 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07004896
4897 def pack(self):
4898 packed = []
4899 packed.append(struct.pack("!L", self.type_len))
4900 packed.append(struct.pack("!H", self.value))
4901 packed.append(struct.pack("!H", self.value_mask))
4902 return ''.join(packed)
4903
4904 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08004905 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07004906 obj = tcp_src_masked()
Dan Talaycof6202252013-07-02 01:00:29 -07004907 _type_len = reader.read("!L")[0]
4908 assert(_type_len == 2147490564)
4909 obj.value = reader.read("!H")[0]
4910 obj.value_mask = reader.read("!H")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07004911 return obj
4912
4913 def __eq__(self, other):
4914 if type(self) != type(other): return False
4915 if self.value != other.value: return False
4916 if self.value_mask != other.value_mask: return False
4917 return True
4918
Rich Lanec2ee4b82013-04-24 17:12:38 -07004919 def pretty_print(self, q):
4920 q.text("tcp_src_masked {")
4921 with q.group():
4922 with q.indent(2):
4923 q.breakable()
4924 q.text("value = ");
4925 q.text("%#x" % self.value)
4926 q.text(","); q.breakable()
4927 q.text("value_mask = ");
4928 q.text("%#x" % self.value_mask)
4929 q.breakable()
4930 q.text('}')
4931
Rich Lane7dcdf022013-12-11 14:45:27 -08004932oxm.subtypes[2147490564] = tcp_src_masked
4933
Harshmeet Singh301f7172014-12-08 13:07:29 -08004934class tunnel_ipv4_dst(oxm):
4935 type_len = 81924
4936
4937 def __init__(self, value=None):
4938 if value != None:
4939 self.value = value
4940 else:
4941 self.value = 0
4942 return
4943
4944 def pack(self):
4945 packed = []
4946 packed.append(struct.pack("!L", self.type_len))
4947 packed.append(struct.pack("!L", self.value))
4948 return ''.join(packed)
4949
4950 @staticmethod
4951 def unpack(reader):
4952 obj = tunnel_ipv4_dst()
4953 _type_len = reader.read("!L")[0]
4954 assert(_type_len == 81924)
4955 obj.value = reader.read("!L")[0]
4956 return obj
4957
4958 def __eq__(self, other):
4959 if type(self) != type(other): return False
4960 if self.value != other.value: return False
4961 return True
4962
4963 def pretty_print(self, q):
4964 q.text("tunnel_ipv4_dst {")
4965 with q.group():
4966 with q.indent(2):
4967 q.breakable()
4968 q.text("value = ");
4969 q.text(util.pretty_ipv4(self.value))
4970 q.breakable()
4971 q.text('}')
4972
4973oxm.subtypes[81924] = tunnel_ipv4_dst
4974
4975class tunnel_ipv4_dst_masked(oxm):
4976 type_len = 82184
4977
4978 def __init__(self, value=None, value_mask=None):
4979 if value != None:
4980 self.value = value
4981 else:
4982 self.value = 0
4983 if value_mask != None:
4984 self.value_mask = value_mask
4985 else:
4986 self.value_mask = 0
4987 return
4988
4989 def pack(self):
4990 packed = []
4991 packed.append(struct.pack("!L", self.type_len))
4992 packed.append(struct.pack("!L", self.value))
4993 packed.append(struct.pack("!L", self.value_mask))
4994 return ''.join(packed)
4995
4996 @staticmethod
4997 def unpack(reader):
4998 obj = tunnel_ipv4_dst_masked()
4999 _type_len = reader.read("!L")[0]
5000 assert(_type_len == 82184)
5001 obj.value = reader.read("!L")[0]
5002 obj.value_mask = reader.read("!L")[0]
5003 return obj
5004
5005 def __eq__(self, other):
5006 if type(self) != type(other): return False
5007 if self.value != other.value: return False
5008 if self.value_mask != other.value_mask: return False
5009 return True
5010
5011 def pretty_print(self, q):
5012 q.text("tunnel_ipv4_dst_masked {")
5013 with q.group():
5014 with q.indent(2):
5015 q.breakable()
5016 q.text("value = ");
5017 q.text(util.pretty_ipv4(self.value))
5018 q.text(","); q.breakable()
5019 q.text("value_mask = ");
5020 q.text(util.pretty_ipv4(self.value_mask))
5021 q.breakable()
5022 q.text('}')
5023
5024oxm.subtypes[82184] = tunnel_ipv4_dst_masked
5025
5026class tunnel_ipv4_src(oxm):
5027 type_len = 81412
5028
5029 def __init__(self, value=None):
5030 if value != None:
5031 self.value = value
5032 else:
5033 self.value = 0
5034 return
5035
5036 def pack(self):
5037 packed = []
5038 packed.append(struct.pack("!L", self.type_len))
5039 packed.append(struct.pack("!L", self.value))
5040 return ''.join(packed)
5041
5042 @staticmethod
5043 def unpack(reader):
5044 obj = tunnel_ipv4_src()
5045 _type_len = reader.read("!L")[0]
5046 assert(_type_len == 81412)
5047 obj.value = reader.read("!L")[0]
5048 return obj
5049
5050 def __eq__(self, other):
5051 if type(self) != type(other): return False
5052 if self.value != other.value: return False
5053 return True
5054
5055 def pretty_print(self, q):
5056 q.text("tunnel_ipv4_src {")
5057 with q.group():
5058 with q.indent(2):
5059 q.breakable()
5060 q.text("value = ");
5061 q.text(util.pretty_ipv4(self.value))
5062 q.breakable()
5063 q.text('}')
5064
5065oxm.subtypes[81412] = tunnel_ipv4_src
5066
5067class tunnel_ipv4_src_masked(oxm):
5068 type_len = 81672
5069
5070 def __init__(self, value=None, value_mask=None):
5071 if value != None:
5072 self.value = value
5073 else:
5074 self.value = 0
5075 if value_mask != None:
5076 self.value_mask = value_mask
5077 else:
5078 self.value_mask = 0
5079 return
5080
5081 def pack(self):
5082 packed = []
5083 packed.append(struct.pack("!L", self.type_len))
5084 packed.append(struct.pack("!L", self.value))
5085 packed.append(struct.pack("!L", self.value_mask))
5086 return ''.join(packed)
5087
5088 @staticmethod
5089 def unpack(reader):
5090 obj = tunnel_ipv4_src_masked()
5091 _type_len = reader.read("!L")[0]
5092 assert(_type_len == 81672)
5093 obj.value = reader.read("!L")[0]
5094 obj.value_mask = reader.read("!L")[0]
5095 return obj
5096
5097 def __eq__(self, other):
5098 if type(self) != type(other): return False
5099 if self.value != other.value: return False
5100 if self.value_mask != other.value_mask: return False
5101 return True
5102
5103 def pretty_print(self, q):
5104 q.text("tunnel_ipv4_src_masked {")
5105 with q.group():
5106 with q.indent(2):
5107 q.breakable()
5108 q.text("value = ");
5109 q.text(util.pretty_ipv4(self.value))
5110 q.text(","); q.breakable()
5111 q.text("value_mask = ");
5112 q.text(util.pretty_ipv4(self.value_mask))
5113 q.breakable()
5114 q.text('}')
5115
5116oxm.subtypes[81672] = tunnel_ipv4_src_masked
5117
Rich Lane7dcdf022013-12-11 14:45:27 -08005118class udp_dst(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07005119 type_len = 2147491842
Rich Lanec2ee4b82013-04-24 17:12:38 -07005120
5121 def __init__(self, value=None):
5122 if value != None:
5123 self.value = value
5124 else:
5125 self.value = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08005126 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07005127
5128 def pack(self):
5129 packed = []
5130 packed.append(struct.pack("!L", self.type_len))
5131 packed.append(struct.pack("!H", self.value))
5132 return ''.join(packed)
5133
5134 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08005135 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07005136 obj = udp_dst()
Dan Talaycof6202252013-07-02 01:00:29 -07005137 _type_len = reader.read("!L")[0]
5138 assert(_type_len == 2147491842)
5139 obj.value = reader.read("!H")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07005140 return obj
5141
5142 def __eq__(self, other):
5143 if type(self) != type(other): return False
5144 if self.value != other.value: return False
5145 return True
5146
Rich Lanec2ee4b82013-04-24 17:12:38 -07005147 def pretty_print(self, q):
5148 q.text("udp_dst {")
5149 with q.group():
5150 with q.indent(2):
5151 q.breakable()
5152 q.text("value = ");
5153 q.text("%#x" % self.value)
5154 q.breakable()
5155 q.text('}')
5156
Rich Lane7dcdf022013-12-11 14:45:27 -08005157oxm.subtypes[2147491842] = udp_dst
5158
5159class udp_dst_masked(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07005160 type_len = 2147492100
Rich Lanec2ee4b82013-04-24 17:12:38 -07005161
5162 def __init__(self, value=None, value_mask=None):
5163 if value != None:
5164 self.value = value
5165 else:
5166 self.value = 0
5167 if value_mask != None:
5168 self.value_mask = value_mask
5169 else:
5170 self.value_mask = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08005171 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07005172
5173 def pack(self):
5174 packed = []
5175 packed.append(struct.pack("!L", self.type_len))
5176 packed.append(struct.pack("!H", self.value))
5177 packed.append(struct.pack("!H", self.value_mask))
5178 return ''.join(packed)
5179
5180 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08005181 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07005182 obj = udp_dst_masked()
Dan Talaycof6202252013-07-02 01:00:29 -07005183 _type_len = reader.read("!L")[0]
5184 assert(_type_len == 2147492100)
5185 obj.value = reader.read("!H")[0]
5186 obj.value_mask = reader.read("!H")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07005187 return obj
5188
5189 def __eq__(self, other):
5190 if type(self) != type(other): return False
5191 if self.value != other.value: return False
5192 if self.value_mask != other.value_mask: return False
5193 return True
5194
Rich Lanec2ee4b82013-04-24 17:12:38 -07005195 def pretty_print(self, q):
5196 q.text("udp_dst_masked {")
5197 with q.group():
5198 with q.indent(2):
5199 q.breakable()
5200 q.text("value = ");
5201 q.text("%#x" % self.value)
5202 q.text(","); q.breakable()
5203 q.text("value_mask = ");
5204 q.text("%#x" % self.value_mask)
5205 q.breakable()
5206 q.text('}')
5207
Rich Lane7dcdf022013-12-11 14:45:27 -08005208oxm.subtypes[2147492100] = udp_dst_masked
5209
5210class udp_src(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07005211 type_len = 2147491330
Rich Lanec2ee4b82013-04-24 17:12:38 -07005212
5213 def __init__(self, value=None):
5214 if value != None:
5215 self.value = value
5216 else:
5217 self.value = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08005218 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07005219
5220 def pack(self):
5221 packed = []
5222 packed.append(struct.pack("!L", self.type_len))
5223 packed.append(struct.pack("!H", self.value))
5224 return ''.join(packed)
5225
5226 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08005227 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07005228 obj = udp_src()
Dan Talaycof6202252013-07-02 01:00:29 -07005229 _type_len = reader.read("!L")[0]
5230 assert(_type_len == 2147491330)
5231 obj.value = reader.read("!H")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07005232 return obj
5233
5234 def __eq__(self, other):
5235 if type(self) != type(other): return False
5236 if self.value != other.value: return False
5237 return True
5238
Rich Lanec2ee4b82013-04-24 17:12:38 -07005239 def pretty_print(self, q):
5240 q.text("udp_src {")
5241 with q.group():
5242 with q.indent(2):
5243 q.breakable()
5244 q.text("value = ");
5245 q.text("%#x" % self.value)
5246 q.breakable()
5247 q.text('}')
5248
Rich Lane7dcdf022013-12-11 14:45:27 -08005249oxm.subtypes[2147491330] = udp_src
5250
5251class udp_src_masked(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07005252 type_len = 2147491588
Rich Lanec2ee4b82013-04-24 17:12:38 -07005253
5254 def __init__(self, value=None, value_mask=None):
5255 if value != None:
5256 self.value = value
5257 else:
5258 self.value = 0
5259 if value_mask != None:
5260 self.value_mask = value_mask
5261 else:
5262 self.value_mask = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08005263 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07005264
5265 def pack(self):
5266 packed = []
5267 packed.append(struct.pack("!L", self.type_len))
5268 packed.append(struct.pack("!H", self.value))
5269 packed.append(struct.pack("!H", self.value_mask))
5270 return ''.join(packed)
5271
5272 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08005273 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07005274 obj = udp_src_masked()
Dan Talaycof6202252013-07-02 01:00:29 -07005275 _type_len = reader.read("!L")[0]
5276 assert(_type_len == 2147491588)
5277 obj.value = reader.read("!H")[0]
5278 obj.value_mask = reader.read("!H")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07005279 return obj
5280
5281 def __eq__(self, other):
5282 if type(self) != type(other): return False
5283 if self.value != other.value: return False
5284 if self.value_mask != other.value_mask: return False
5285 return True
5286
Rich Lanec2ee4b82013-04-24 17:12:38 -07005287 def pretty_print(self, q):
5288 q.text("udp_src_masked {")
5289 with q.group():
5290 with q.indent(2):
5291 q.breakable()
5292 q.text("value = ");
5293 q.text("%#x" % self.value)
5294 q.text(","); q.breakable()
5295 q.text("value_mask = ");
5296 q.text("%#x" % self.value_mask)
5297 q.breakable()
5298 q.text('}')
5299
Rich Lane7dcdf022013-12-11 14:45:27 -08005300oxm.subtypes[2147491588] = udp_src_masked
5301
5302class vlan_pcp(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07005303 type_len = 2147487233
Rich Lanec2ee4b82013-04-24 17:12:38 -07005304
5305 def __init__(self, value=None):
5306 if value != None:
5307 self.value = value
5308 else:
5309 self.value = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08005310 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07005311
5312 def pack(self):
5313 packed = []
5314 packed.append(struct.pack("!L", self.type_len))
5315 packed.append(struct.pack("!B", self.value))
5316 return ''.join(packed)
5317
5318 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08005319 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07005320 obj = vlan_pcp()
Dan Talaycof6202252013-07-02 01:00:29 -07005321 _type_len = reader.read("!L")[0]
5322 assert(_type_len == 2147487233)
5323 obj.value = reader.read("!B")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07005324 return obj
5325
5326 def __eq__(self, other):
5327 if type(self) != type(other): return False
5328 if self.value != other.value: return False
5329 return True
5330
Rich Lanec2ee4b82013-04-24 17:12:38 -07005331 def pretty_print(self, q):
5332 q.text("vlan_pcp {")
5333 with q.group():
5334 with q.indent(2):
5335 q.breakable()
5336 q.text("value = ");
5337 q.text("%#x" % self.value)
5338 q.breakable()
5339 q.text('}')
5340
Rich Lane7dcdf022013-12-11 14:45:27 -08005341oxm.subtypes[2147487233] = vlan_pcp
5342
5343class vlan_pcp_masked(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07005344 type_len = 2147487490
Rich Lanec2ee4b82013-04-24 17:12:38 -07005345
5346 def __init__(self, value=None, value_mask=None):
5347 if value != None:
5348 self.value = value
5349 else:
5350 self.value = 0
5351 if value_mask != None:
5352 self.value_mask = value_mask
5353 else:
5354 self.value_mask = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08005355 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07005356
5357 def pack(self):
5358 packed = []
5359 packed.append(struct.pack("!L", self.type_len))
5360 packed.append(struct.pack("!B", self.value))
5361 packed.append(struct.pack("!B", self.value_mask))
5362 return ''.join(packed)
5363
5364 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08005365 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07005366 obj = vlan_pcp_masked()
Dan Talaycof6202252013-07-02 01:00:29 -07005367 _type_len = reader.read("!L")[0]
5368 assert(_type_len == 2147487490)
5369 obj.value = reader.read("!B")[0]
5370 obj.value_mask = reader.read("!B")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07005371 return obj
5372
5373 def __eq__(self, other):
5374 if type(self) != type(other): return False
5375 if self.value != other.value: return False
5376 if self.value_mask != other.value_mask: return False
5377 return True
5378
Rich Lanec2ee4b82013-04-24 17:12:38 -07005379 def pretty_print(self, q):
5380 q.text("vlan_pcp_masked {")
5381 with q.group():
5382 with q.indent(2):
5383 q.breakable()
5384 q.text("value = ");
5385 q.text("%#x" % self.value)
5386 q.text(","); q.breakable()
5387 q.text("value_mask = ");
5388 q.text("%#x" % self.value_mask)
5389 q.breakable()
5390 q.text('}')
5391
Rich Lane7dcdf022013-12-11 14:45:27 -08005392oxm.subtypes[2147487490] = vlan_pcp_masked
5393
5394class vlan_vid(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07005395 type_len = 2147486722
Rich Lanec2ee4b82013-04-24 17:12:38 -07005396
5397 def __init__(self, value=None):
5398 if value != None:
5399 self.value = value
5400 else:
5401 self.value = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08005402 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07005403
5404 def pack(self):
5405 packed = []
5406 packed.append(struct.pack("!L", self.type_len))
5407 packed.append(struct.pack("!H", self.value))
5408 return ''.join(packed)
5409
5410 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08005411 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07005412 obj = vlan_vid()
Dan Talaycof6202252013-07-02 01:00:29 -07005413 _type_len = reader.read("!L")[0]
5414 assert(_type_len == 2147486722)
5415 obj.value = reader.read("!H")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07005416 return obj
5417
5418 def __eq__(self, other):
5419 if type(self) != type(other): return False
5420 if self.value != other.value: return False
5421 return True
5422
Rich Lanec2ee4b82013-04-24 17:12:38 -07005423 def pretty_print(self, q):
5424 q.text("vlan_vid {")
5425 with q.group():
5426 with q.indent(2):
5427 q.breakable()
5428 q.text("value = ");
5429 q.text("%#x" % self.value)
5430 q.breakable()
5431 q.text('}')
5432
Rich Lane7dcdf022013-12-11 14:45:27 -08005433oxm.subtypes[2147486722] = vlan_vid
5434
5435class vlan_vid_masked(oxm):
Dan Talaycof6202252013-07-02 01:00:29 -07005436 type_len = 2147486980
Rich Lanec2ee4b82013-04-24 17:12:38 -07005437
5438 def __init__(self, value=None, value_mask=None):
5439 if value != None:
5440 self.value = value
5441 else:
5442 self.value = 0
5443 if value_mask != None:
5444 self.value_mask = value_mask
5445 else:
5446 self.value_mask = 0
Rich Lane7dcdf022013-12-11 14:45:27 -08005447 return
Rich Lanec2ee4b82013-04-24 17:12:38 -07005448
5449 def pack(self):
5450 packed = []
5451 packed.append(struct.pack("!L", self.type_len))
5452 packed.append(struct.pack("!H", self.value))
5453 packed.append(struct.pack("!H", self.value_mask))
5454 return ''.join(packed)
5455
5456 @staticmethod
Rich Lane7dcdf022013-12-11 14:45:27 -08005457 def unpack(reader):
Rich Lanec2ee4b82013-04-24 17:12:38 -07005458 obj = vlan_vid_masked()
Dan Talaycof6202252013-07-02 01:00:29 -07005459 _type_len = reader.read("!L")[0]
5460 assert(_type_len == 2147486980)
5461 obj.value = reader.read("!H")[0]
5462 obj.value_mask = reader.read("!H")[0]
Rich Lanec2ee4b82013-04-24 17:12:38 -07005463 return obj
5464
5465 def __eq__(self, other):
5466 if type(self) != type(other): return False
5467 if self.value != other.value: return False
5468 if self.value_mask != other.value_mask: return False
5469 return True
5470
Rich Lanec2ee4b82013-04-24 17:12:38 -07005471 def pretty_print(self, q):
5472 q.text("vlan_vid_masked {")
5473 with q.group():
5474 with q.indent(2):
5475 q.breakable()
5476 q.text("value = ");
5477 q.text("%#x" % self.value)
5478 q.text(","); q.breakable()
5479 q.text("value_mask = ");
5480 q.text("%#x" % self.value_mask)
5481 q.breakable()
5482 q.text('}')
5483
Rich Lane7dcdf022013-12-11 14:45:27 -08005484oxm.subtypes[2147486980] = vlan_vid_masked
Rich Lanec2ee4b82013-04-24 17:12:38 -07005485
Rich Lane7dcdf022013-12-11 14:45:27 -08005486