update pyloxi to 6bf5db6105b7e83bad4d87791bf4ab07295dab11
diff --git a/src/python/loxi/of12/common.py b/src/python/loxi/of12/common.py
index dee40f1..ef59c20 100644
--- a/src/python/loxi/of12/common.py
+++ b/src/python/loxi/of12/common.py
@@ -535,11 +535,11 @@
class group_desc_stats_entry(object):
- def __init__(self, type=None, group_id=None, buckets=None):
- if type != None:
- self.type = type
+ def __init__(self, group_type=None, group_id=None, buckets=None):
+ if group_type != None:
+ self.group_type = group_type
else:
- self.type = 0
+ self.group_type = 0
if group_id != None:
self.group_id = group_id
else:
@@ -553,7 +553,7 @@
def pack(self):
packed = []
packed.append(struct.pack("!H", 0)) # placeholder for length at index 0
- packed.append(struct.pack("!B", self.type))
+ packed.append(struct.pack("!B", self.group_type))
packed.append('\x00' * 1)
packed.append(struct.pack("!L", self.group_id))
packed.append(util.pack_list(self.buckets))
@@ -569,7 +569,7 @@
else:
reader = loxi.generic_util.OFReader(buf)
_length = reader.read("!H")[0]
- obj.type = reader.read("!B")[0]
+ obj.group_type = reader.read("!B")[0]
reader.skip(1)
obj.group_id = reader.read("!L")[0]
obj.buckets = common.unpack_list_bucket(reader)
@@ -577,7 +577,7 @@
def __eq__(self, other):
if type(self) != type(other): return False
- if self.type != other.type: return False
+ if self.group_type != other.group_type: return False
if self.group_id != other.group_id: return False
if self.buckets != other.buckets: return False
return True
@@ -594,8 +594,8 @@
with q.group():
with q.indent(2):
q.breakable()
- q.text("type = ");
- q.text("%#x" % self.type)
+ q.text("group_type = ");
+ q.text("%#x" % self.group_type)
q.text(","); q.breakable()
q.text("group_id = ");
q.text("%#x" % self.group_id)