update pyloxi to 026ff024585f1588a7f11fa4c1a9a48d44dc098d
diff --git a/src/python/loxi/of13/util.py b/src/python/loxi/of13/util.py
index b908451..5958398 100644
--- a/src/python/loxi/of13/util.py
+++ b/src/python/loxi/of13/util.py
@@ -5,9 +5,16 @@
# Automatically generated by LOXI from template util.py
# Do not modify
+import struct
import loxi
import const
-import struct
+import common
+import action
+import instruction
+import oxm
+import action_id
+import instruction_id
+import meter_band
def pretty_mac(mac):
return ':'.join(["%02x" % x for x in mac])
@@ -66,9 +73,6 @@
def unpack_match_bmap(reader):
return reader.read("!Q")[0]
-def pack_list(values):
- return "".join([x.pack() for x in values])
-
MASK64 = (1 << 64) - 1
def pack_bitmap_128(value):
@@ -88,3 +92,13 @@
i += 1
x >>= 1
return value
+
+def unpack_list_hello_elem(reader):
+ def deserializer(reader):
+ typ, length, = reader.peek('!HH')
+ reader = reader.slice(length)
+ try:
+ return common.hello_elem.unpack(reader)
+ except loxi.ProtocolError:
+ return None
+ return [x for x in loxi.generic_util.unpack_list(reader, deserializer) if x != None]