update pyloxi to floodlight/loxigen-artifacts @ cb7d6d4063ed4d311d105e20f0844a54c4bd9916
diff --git a/src/python/loxi/of14/message.py b/src/python/loxi/of14/message.py
index 6afb072..e1962ee 100644
--- a/src/python/loxi/of14/message.py
+++ b/src/python/loxi/of14/message.py
@@ -8,28 +8,12 @@
import struct
import loxi
-import const
-import port_desc_prop
-import bsn_tlv
-import meter_band
-import table_mod_prop
-import instruction
-import queue_desc_prop
-import oxm
-import bundle_prop
-import common
-import instruction_id
-import action
-import role_prop
-import message
-import queue_stats_prop
-import port_stats_prop
-import port_mod_prop
-import async_config_prop
-import action_id
import util
import loxi.generic_util
+import sys
+ofp = sys.modules['loxi.of14']
+
class message(loxi.OFObject):
subtypes = {}
@@ -392,7 +376,7 @@
if match != None:
self.match = match
else:
- self.match = common.match()
+ self.match = ofp.match()
return
def pack(self):
@@ -438,7 +422,7 @@
reader.skip(4)
obj.cookie = reader.read("!Q")[0]
obj.cookie_mask = reader.read("!Q")[0]
- obj.match = common.match.unpack(reader)
+ obj.match = ofp.match.unpack(reader)
return obj
def __eq__(self, other):
@@ -672,7 +656,7 @@
orig_reader = reader
reader = orig_reader.slice(_length, 4)
obj.xid = reader.read("!L")[0]
- obj.properties = loxi.generic_util.unpack_list(reader, async_config_prop.async_config_prop.unpack)
+ obj.properties = loxi.generic_util.unpack_list(reader, ofp.async_config_prop.async_config_prop.unpack)
return obj
def __eq__(self, other):
@@ -736,7 +720,7 @@
orig_reader = reader
reader = orig_reader.slice(_length, 4)
obj.xid = reader.read("!L")[0]
- obj.properties = loxi.generic_util.unpack_list(reader, async_config_prop.async_config_prop.unpack)
+ obj.properties = loxi.generic_util.unpack_list(reader, ofp.async_config_prop.async_config_prop.unpack)
return obj
def __eq__(self, other):
@@ -800,7 +784,7 @@
orig_reader = reader
reader = orig_reader.slice(_length, 4)
obj.xid = reader.read("!L")[0]
- obj.properties = loxi.generic_util.unpack_list(reader, async_config_prop.async_config_prop.unpack)
+ obj.properties = loxi.generic_util.unpack_list(reader, ofp.async_config_prop.async_config_prop.unpack)
return obj
def __eq__(self, other):
@@ -2036,7 +2020,7 @@
assert(_experimenter == 6035143)
_subtype = reader.read("!L")[0]
assert(_subtype == 57)
- obj.connections = loxi.generic_util.unpack_list(reader, common.bsn_controller_connection.unpack)
+ obj.connections = loxi.generic_util.unpack_list(reader, ofp.common.bsn_controller_connection.unpack)
return obj
def __eq__(self, other):
@@ -2364,7 +2348,7 @@
assert(_experimenter == 6035143)
_subtype = reader.read("!L")[0]
assert(_subtype == 13)
- obj.entries = loxi.generic_util.unpack_list(reader, common.bsn_debug_counter_desc_stats_entry.unpack)
+ obj.entries = loxi.generic_util.unpack_list(reader, ofp.common.bsn_debug_counter_desc_stats_entry.unpack)
return obj
def __eq__(self, other):
@@ -2712,7 +2696,7 @@
assert(_experimenter == 6035143)
_subtype = reader.read("!L")[0]
assert(_subtype == 12)
- obj.entries = loxi.generic_util.unpack_list(reader, common.bsn_debug_counter_stats_entry.unpack)
+ obj.entries = loxi.generic_util.unpack_list(reader, ofp.common.bsn_debug_counter_stats_entry.unpack)
return obj
def __eq__(self, other):
@@ -2878,7 +2862,7 @@
assert(_experimenter == 6035143)
_subtype = reader.read("!L")[0]
assert(_subtype == 10)
- obj.entries = loxi.generic_util.unpack_list(reader, common.bsn_flow_checksum_bucket_stats_entry.unpack)
+ obj.entries = loxi.generic_util.unpack_list(reader, ofp.common.bsn_flow_checksum_bucket_stats_entry.unpack)
return obj
def __eq__(self, other):
@@ -3023,7 +3007,7 @@
if match != None:
self.match = match
else:
- self.match = common.match()
+ self.match = ofp.match()
return
def pack(self):
@@ -3062,7 +3046,7 @@
obj.priority = reader.read("!H")[0]
obj.table_id = reader.read("!B")[0]
reader.skip(5)
- obj.match = common.match.unpack(reader)
+ obj.match = ofp.match.unpack(reader)
return obj
def __eq__(self, other):
@@ -3446,7 +3430,7 @@
assert(_experimenter == 6035143)
_subtype = reader.read("!L")[0]
assert(_subtype == 16)
- obj.entries = loxi.generic_util.unpack_list(reader, common.bsn_generic_stats_entry.unpack)
+ obj.entries = loxi.generic_util.unpack_list(reader, ofp.common.bsn_generic_stats_entry.unpack)
return obj
def __eq__(self, other):
@@ -3540,7 +3524,7 @@
_subtype = reader.read("!L")[0]
assert(_subtype == 16)
obj.name = reader.read("!64s")[0].rstrip("\x00")
- obj.tlvs = loxi.generic_util.unpack_list(reader, bsn_tlv.bsn_tlv.unpack)
+ obj.tlvs = loxi.generic_util.unpack_list(reader, ofp.bsn_tlv.bsn_tlv.unpack)
return obj
def __eq__(self, other):
@@ -3632,7 +3616,7 @@
assert(_experimenter == 6035143)
_subtype = reader.read("!L")[0]
assert(_subtype == 5)
- obj.entries = loxi.generic_util.unpack_list(reader, common.bsn_gentable_bucket_stats_entry.unpack)
+ obj.entries = loxi.generic_util.unpack_list(reader, ofp.common.bsn_gentable_bucket_stats_entry.unpack)
return obj
def __eq__(self, other):
@@ -3996,7 +3980,7 @@
assert(_experimenter == 6035143)
_subtype = reader.read("!L")[0]
assert(_subtype == 4)
- obj.entries = loxi.generic_util.unpack_list(reader, common.bsn_gentable_desc_stats_entry.unpack)
+ obj.entries = loxi.generic_util.unpack_list(reader, ofp.common.bsn_gentable_desc_stats_entry.unpack)
return obj
def __eq__(self, other):
@@ -4170,8 +4154,8 @@
obj.table_id = reader.read("!H")[0]
_key_length = reader.read("!H")[0]
obj.checksum = util.unpack_checksum_128(reader)
- obj.key = loxi.generic_util.unpack_list(reader.slice(_key_length), bsn_tlv.bsn_tlv.unpack)
- obj.value = loxi.generic_util.unpack_list(reader, bsn_tlv.bsn_tlv.unpack)
+ obj.key = loxi.generic_util.unpack_list(reader.slice(_key_length), ofp.bsn_tlv.bsn_tlv.unpack)
+ obj.value = loxi.generic_util.unpack_list(reader, ofp.bsn_tlv.bsn_tlv.unpack)
return obj
def __eq__(self, other):
@@ -4261,7 +4245,7 @@
_subtype = reader.read("!L")[0]
assert(_subtype == 47)
obj.table_id = reader.read("!H")[0]
- obj.key = loxi.generic_util.unpack_list(reader, bsn_tlv.bsn_tlv.unpack)
+ obj.key = loxi.generic_util.unpack_list(reader, ofp.bsn_tlv.bsn_tlv.unpack)
return obj
def __eq__(self, other):
@@ -4349,7 +4333,7 @@
assert(_experimenter == 6035143)
_subtype = reader.read("!L")[0]
assert(_subtype == 2)
- obj.entries = loxi.generic_util.unpack_list(reader, common.bsn_gentable_entry_desc_stats_entry.unpack)
+ obj.entries = loxi.generic_util.unpack_list(reader, ofp.common.bsn_gentable_entry_desc_stats_entry.unpack)
return obj
def __eq__(self, other):
@@ -4547,7 +4531,7 @@
assert(_experimenter == 6035143)
_subtype = reader.read("!L")[0]
assert(_subtype == 3)
- obj.entries = loxi.generic_util.unpack_list(reader, common.bsn_gentable_entry_stats_entry.unpack)
+ obj.entries = loxi.generic_util.unpack_list(reader, ofp.common.bsn_gentable_entry_stats_entry.unpack)
return obj
def __eq__(self, other):
@@ -4829,7 +4813,7 @@
assert(_experimenter == 6035143)
_subtype = reader.read("!L")[0]
assert(_subtype == 7)
- obj.entries = loxi.generic_util.unpack_list(reader, common.bsn_gentable_stats_entry.unpack)
+ obj.entries = loxi.generic_util.unpack_list(reader, ofp.common.bsn_gentable_stats_entry.unpack)
return obj
def __eq__(self, other):
@@ -4983,7 +4967,7 @@
assert(_experimenter == 6035143)
_subtype = reader.read("!L")[0]
assert(_subtype == 10)
- obj.interfaces = loxi.generic_util.unpack_list(reader, common.bsn_interface.unpack)
+ obj.interfaces = loxi.generic_util.unpack_list(reader, ofp.common.bsn_interface.unpack)
return obj
def __eq__(self, other):
@@ -5771,7 +5755,7 @@
assert(_experimenter == 6035143)
_subtype = reader.read("!L")[0]
assert(_subtype == 1)
- obj.entries = loxi.generic_util.unpack_list(reader, common.bsn_lacp_stats_entry.unpack)
+ obj.entries = loxi.generic_util.unpack_list(reader, ofp.common.bsn_lacp_stats_entry.unpack)
return obj
def __eq__(self, other):
@@ -6801,7 +6785,7 @@
assert(_experimenter == 6035143)
_subtype = reader.read("!L")[0]
assert(_subtype == 8)
- obj.entries = loxi.generic_util.unpack_list(reader, common.bsn_port_counter_stats_entry.unpack)
+ obj.entries = loxi.generic_util.unpack_list(reader, ofp.common.bsn_port_counter_stats_entry.unpack)
return obj
def __eq__(self, other):
@@ -7751,7 +7735,7 @@
assert(_experimenter == 6035143)
_subtype = reader.read("!L")[0]
assert(_subtype == 6)
- obj.entries = loxi.generic_util.unpack_list(reader, common.bsn_switch_pipeline_stats_entry.unpack)
+ obj.entries = loxi.generic_util.unpack_list(reader, ofp.common.bsn_switch_pipeline_stats_entry.unpack)
return obj
def __eq__(self, other):
@@ -7917,7 +7901,7 @@
assert(_experimenter == 6035143)
_subtype = reader.read("!L")[0]
assert(_subtype == 11)
- obj.entries = loxi.generic_util.unpack_list(reader, common.bsn_table_checksum_stats_entry.unpack)
+ obj.entries = loxi.generic_util.unpack_list(reader, ofp.common.bsn_table_checksum_stats_entry.unpack)
return obj
def __eq__(self, other):
@@ -8342,7 +8326,7 @@
if vport != None:
self.vport = vport
else:
- self.vport = common.bsn_vport()
+ self.vport = ofp.bsn_vport()
return
def pack(self):
@@ -8373,7 +8357,7 @@
assert(_experimenter == 6035143)
_subtype = reader.read("!L")[0]
assert(_subtype == 15)
- obj.vport = common.bsn_vport.unpack(reader)
+ obj.vport = ofp.bsn_vport.unpack(reader)
return obj
def __eq__(self, other):
@@ -8601,7 +8585,7 @@
assert(_experimenter == 6035143)
_subtype = reader.read("!L")[0]
assert(_subtype == 9)
- obj.entries = loxi.generic_util.unpack_list(reader, common.bsn_vlan_counter_stats_entry.unpack)
+ obj.entries = loxi.generic_util.unpack_list(reader, ofp.common.bsn_vlan_counter_stats_entry.unpack)
return obj
def __eq__(self, other):
@@ -8777,7 +8761,7 @@
assert(_experimenter == 6035143)
_subtype = reader.read("!L")[0]
assert(_subtype == 15)
- obj.entries = loxi.generic_util.unpack_list(reader, common.bsn_vrf_counter_stats_entry.unpack)
+ obj.entries = loxi.generic_util.unpack_list(reader, ofp.common.bsn_vrf_counter_stats_entry.unpack)
return obj
def __eq__(self, other):
@@ -9037,7 +9021,7 @@
obj.bundle_id = reader.read("!L")[0]
obj.bundle_ctrl_type = reader.read("!H")[0]
obj.flags = reader.read("!H")[0]
- obj.properties = loxi.generic_util.unpack_list(reader, bundle_prop.bundle_prop.unpack)
+ obj.properties = loxi.generic_util.unpack_list(reader, ofp.bundle_prop.bundle_prop.unpack)
return obj
def __eq__(self, other):
@@ -9788,7 +9772,7 @@
if match != None:
self.match = match
else:
- self.match = common.match()
+ self.match = ofp.match()
if instructions != None:
self.instructions = instructions
else:
@@ -9847,8 +9831,8 @@
obj.out_group = reader.read("!L")[0]
obj.flags = reader.read("!H")[0]
reader.skip(2)
- obj.match = common.match.unpack(reader)
- obj.instructions = loxi.generic_util.unpack_list(reader, instruction.instruction.unpack)
+ obj.match = ofp.match.unpack(reader)
+ obj.instructions = loxi.generic_util.unpack_list(reader, ofp.instruction.instruction.unpack)
return obj
def __eq__(self, other):
@@ -9977,7 +9961,7 @@
if match != None:
self.match = match
else:
- self.match = common.match()
+ self.match = ofp.match()
if instructions != None:
self.instructions = instructions
else:
@@ -10032,8 +10016,8 @@
obj.out_group = reader.read("!L")[0]
obj.flags = reader.read("!H")[0]
obj.importance = reader.read("!H")[0]
- obj.match = common.match.unpack(reader)
- obj.instructions = loxi.generic_util.unpack_list(reader, instruction.instruction.unpack)
+ obj.match = ofp.match.unpack(reader)
+ obj.instructions = loxi.generic_util.unpack_list(reader, ofp.instruction.instruction.unpack)
return obj
def __eq__(self, other):
@@ -10165,7 +10149,7 @@
if match != None:
self.match = match
else:
- self.match = common.match()
+ self.match = ofp.match()
if instructions != None:
self.instructions = instructions
else:
@@ -10220,8 +10204,8 @@
obj.out_group = reader.read("!L")[0]
obj.flags = reader.read("!H")[0]
obj.importance = reader.read("!H")[0]
- obj.match = common.match.unpack(reader)
- obj.instructions = loxi.generic_util.unpack_list(reader, instruction.instruction.unpack)
+ obj.match = ofp.match.unpack(reader)
+ obj.instructions = loxi.generic_util.unpack_list(reader, ofp.instruction.instruction.unpack)
return obj
def __eq__(self, other):
@@ -10353,7 +10337,7 @@
if match != None:
self.match = match
else:
- self.match = common.match()
+ self.match = ofp.match()
if instructions != None:
self.instructions = instructions
else:
@@ -10408,8 +10392,8 @@
obj.out_group = reader.read("!L")[0]
obj.flags = reader.read("!H")[0]
obj.importance = reader.read("!H")[0]
- obj.match = common.match.unpack(reader)
- obj.instructions = loxi.generic_util.unpack_list(reader, instruction.instruction.unpack)
+ obj.match = ofp.match.unpack(reader)
+ obj.instructions = loxi.generic_util.unpack_list(reader, ofp.instruction.instruction.unpack)
return obj
def __eq__(self, other):
@@ -10619,7 +10603,7 @@
if match != None:
self.match = match
else:
- self.match = common.match()
+ self.match = ofp.match()
if instructions != None:
self.instructions = instructions
else:
@@ -10674,8 +10658,8 @@
obj.out_group = reader.read("!L")[0]
obj.flags = reader.read("!H")[0]
obj.importance = reader.read("!H")[0]
- obj.match = common.match.unpack(reader)
- obj.instructions = loxi.generic_util.unpack_list(reader, instruction.instruction.unpack)
+ obj.match = ofp.match.unpack(reader)
+ obj.instructions = loxi.generic_util.unpack_list(reader, ofp.instruction.instruction.unpack)
return obj
def __eq__(self, other):
@@ -10807,7 +10791,7 @@
if match != None:
self.match = match
else:
- self.match = common.match()
+ self.match = ofp.match()
if instructions != None:
self.instructions = instructions
else:
@@ -10862,8 +10846,8 @@
obj.out_group = reader.read("!L")[0]
obj.flags = reader.read("!H")[0]
obj.importance = reader.read("!H")[0]
- obj.match = common.match.unpack(reader)
- obj.instructions = loxi.generic_util.unpack_list(reader, instruction.instruction.unpack)
+ obj.match = ofp.match.unpack(reader)
+ obj.instructions = loxi.generic_util.unpack_list(reader, ofp.instruction.instruction.unpack)
return obj
def __eq__(self, other):
@@ -11068,7 +11052,7 @@
if match != None:
self.match = match
else:
- self.match = common.match()
+ self.match = ofp.match()
return
def pack(self):
@@ -11113,7 +11097,7 @@
obj.hard_timeout = reader.read("!H")[0]
obj.packet_count = reader.read("!Q")[0]
obj.byte_count = reader.read("!Q")[0]
- obj.match = common.match.unpack(reader)
+ obj.match = ofp.match.unpack(reader)
return obj
def __eq__(self, other):
@@ -11229,7 +11213,7 @@
assert(_stats_type == 1)
obj.flags = reader.read("!H")[0]
reader.skip(4)
- obj.entries = loxi.generic_util.unpack_list(reader, common.flow_stats_entry.unpack)
+ obj.entries = loxi.generic_util.unpack_list(reader, ofp.common.flow_stats_entry.unpack)
return obj
def __eq__(self, other):
@@ -11297,7 +11281,7 @@
if match != None:
self.match = match
else:
- self.match = common.match()
+ self.match = ofp.match()
return
def pack(self):
@@ -11343,7 +11327,7 @@
reader.skip(4)
obj.cookie = reader.read("!Q")[0]
obj.cookie_mask = reader.read("!Q")[0]
- obj.match = common.match.unpack(reader)
+ obj.match = ofp.match.unpack(reader)
return obj
def __eq__(self, other):
@@ -11586,7 +11570,7 @@
obj.group_type = reader.read("!B")[0]
reader.skip(1)
obj.group_id = reader.read("!L")[0]
- obj.buckets = loxi.generic_util.unpack_list(reader, common.bucket.unpack)
+ obj.buckets = loxi.generic_util.unpack_list(reader, ofp.common.bucket.unpack)
return obj
def __eq__(self, other):
@@ -11677,7 +11661,7 @@
obj.group_type = reader.read("!B")[0]
reader.skip(1)
obj.group_id = reader.read("!L")[0]
- obj.buckets = loxi.generic_util.unpack_list(reader, common.bucket.unpack)
+ obj.buckets = loxi.generic_util.unpack_list(reader, ofp.common.bucket.unpack)
return obj
def __eq__(self, other):
@@ -11767,7 +11751,7 @@
obj.group_type = reader.read("!B")[0]
reader.skip(1)
obj.group_id = reader.read("!L")[0]
- obj.buckets = loxi.generic_util.unpack_list(reader, common.bucket.unpack)
+ obj.buckets = loxi.generic_util.unpack_list(reader, ofp.common.bucket.unpack)
return obj
def __eq__(self, other):
@@ -11851,7 +11835,7 @@
assert(_stats_type == 7)
obj.flags = reader.read("!H")[0]
reader.skip(4)
- obj.entries = loxi.generic_util.unpack_list(reader, common.group_desc_stats_entry.unpack)
+ obj.entries = loxi.generic_util.unpack_list(reader, ofp.common.group_desc_stats_entry.unpack)
return obj
def __eq__(self, other):
@@ -12325,7 +12309,7 @@
obj.group_type = reader.read("!B")[0]
reader.skip(1)
obj.group_id = reader.read("!L")[0]
- obj.buckets = loxi.generic_util.unpack_list(reader, common.bucket.unpack)
+ obj.buckets = loxi.generic_util.unpack_list(reader, ofp.common.bucket.unpack)
return obj
def __eq__(self, other):
@@ -12409,7 +12393,7 @@
assert(_stats_type == 6)
obj.flags = reader.read("!H")[0]
reader.skip(4)
- obj.entries = loxi.generic_util.unpack_list(reader, common.group_stats_entry.unpack)
+ obj.entries = loxi.generic_util.unpack_list(reader, ofp.common.group_stats_entry.unpack)
return obj
def __eq__(self, other):
@@ -12559,7 +12543,7 @@
orig_reader = reader
reader = orig_reader.slice(_length, 4)
obj.xid = reader.read("!L")[0]
- obj.elements = loxi.generic_util.unpack_list(reader, common.hello_elem.unpack)
+ obj.elements = loxi.generic_util.unpack_list(reader, ofp.common.hello_elem.unpack)
return obj
def __eq__(self, other):
@@ -12713,7 +12697,7 @@
assert(_stats_type == 10)
obj.flags = reader.read("!H")[0]
reader.skip(4)
- obj.entries = loxi.generic_util.unpack_list(reader, meter_band.meter_band.unpack)
+ obj.entries = loxi.generic_util.unpack_list(reader, ofp.meter_band.meter_band.unpack)
return obj
def __eq__(self, other):
@@ -12843,7 +12827,7 @@
if features != None:
self.features = features
else:
- self.features = common.meter_features()
+ self.features = ofp.meter_features()
return
def pack(self):
@@ -12875,7 +12859,7 @@
assert(_stats_type == 11)
obj.flags = reader.read("!H")[0]
reader.skip(4)
- obj.features = common.meter_features.unpack(reader)
+ obj.features = ofp.meter_features.unpack(reader)
return obj
def __eq__(self, other):
@@ -13031,7 +13015,7 @@
obj.command = reader.read("!H")[0]
obj.flags = reader.read("!H")[0]
obj.meter_id = reader.read("!L")[0]
- obj.bands = loxi.generic_util.unpack_list(reader, meter_band.meter_band.unpack)
+ obj.bands = loxi.generic_util.unpack_list(reader, ofp.meter_band.meter_band.unpack)
return obj
def __eq__(self, other):
@@ -13197,7 +13181,7 @@
assert(_stats_type == 9)
obj.flags = reader.read("!H")[0]
reader.skip(4)
- obj.entries = loxi.generic_util.unpack_list(reader, common.meter_stats.unpack)
+ obj.entries = loxi.generic_util.unpack_list(reader, ofp.common.meter_stats.unpack)
return obj
def __eq__(self, other):
@@ -13414,7 +13398,7 @@
if match != None:
self.match = match
else:
- self.match = common.match()
+ self.match = ofp.match()
if data != None:
self.data = data
else:
@@ -13455,7 +13439,7 @@
obj.reason = reader.read("!B")[0]
obj.table_id = reader.read("!B")[0]
obj.cookie = reader.read("!Q")[0]
- obj.match = common.match.unpack(reader)
+ obj.match = ofp.match.unpack(reader)
reader.skip(2)
obj.data = str(reader.read_all())
return obj
@@ -13567,7 +13551,7 @@
obj.in_port = util.unpack_port_no(reader)
_actions_len = reader.read("!H")[0]
reader.skip(6)
- obj.actions = loxi.generic_util.unpack_list(reader.slice(_actions_len), action.action.unpack)
+ obj.actions = loxi.generic_util.unpack_list(reader.slice(_actions_len), ofp.action.action.unpack)
obj.data = str(reader.read_all())
return obj
@@ -13656,7 +13640,7 @@
assert(_stats_type == 13)
obj.flags = reader.read("!H")[0]
reader.skip(4)
- obj.entries = loxi.generic_util.unpack_list(reader, common.port_desc.unpack)
+ obj.entries = loxi.generic_util.unpack_list(reader, ofp.common.port_desc.unpack)
return obj
def __eq__(self, other):
@@ -13822,7 +13806,7 @@
reader.skip(2)
obj.config = reader.read("!L")[0]
obj.mask = reader.read("!L")[0]
- obj.properties = loxi.generic_util.unpack_list(reader, port_mod_prop.port_mod_prop.unpack)
+ obj.properties = loxi.generic_util.unpack_list(reader, ofp.port_mod_prop.port_mod_prop.unpack)
return obj
def __eq__(self, other):
@@ -13992,7 +13976,7 @@
assert(_stats_type == 4)
obj.flags = reader.read("!H")[0]
reader.skip(4)
- obj.entries = loxi.generic_util.unpack_list(reader, common.port_stats_entry.unpack)
+ obj.entries = loxi.generic_util.unpack_list(reader, ofp.common.port_stats_entry.unpack)
return obj
def __eq__(self, other):
@@ -14121,7 +14105,7 @@
if desc != None:
self.desc = desc
else:
- self.desc = common.port_desc()
+ self.desc = ofp.port_desc()
return
def pack(self):
@@ -14150,7 +14134,7 @@
obj.xid = reader.read("!L")[0]
obj.reason = reader.read("!B")[0]
reader.skip(7)
- obj.desc = common.port_desc.unpack(reader)
+ obj.desc = ofp.port_desc.unpack(reader)
return obj
def __eq__(self, other):
@@ -14230,7 +14214,7 @@
assert(_stats_type == 15)
obj.flags = reader.read("!H")[0]
reader.skip(4)
- obj.entries = loxi.generic_util.unpack_list(reader, common.queue_desc.unpack)
+ obj.entries = loxi.generic_util.unpack_list(reader, ofp.common.queue_desc.unpack)
return obj
def __eq__(self, other):
@@ -14458,7 +14442,7 @@
assert(_stats_type == 5)
obj.flags = reader.read("!H")[0]
reader.skip(4)
- obj.entries = loxi.generic_util.unpack_list(reader, common.queue_stats_entry.unpack)
+ obj.entries = loxi.generic_util.unpack_list(reader, ofp.common.queue_stats_entry.unpack)
return obj
def __eq__(self, other):
@@ -14940,7 +14924,7 @@
obj.reason = reader.read("!B")[0]
reader.skip(3)
obj.generation_id = reader.read("!Q")[0]
- obj.properties = loxi.generic_util.unpack_list(reader, role_prop.role_prop.unpack)
+ obj.properties = loxi.generic_util.unpack_list(reader, ofp.role_prop.role_prop.unpack)
return obj
def __eq__(self, other):
@@ -15180,7 +15164,7 @@
assert(_stats_type == 14)
obj.flags = reader.read("!H")[0]
reader.skip(4)
- obj.entries = loxi.generic_util.unpack_list(reader, common.table_desc.unpack)
+ obj.entries = loxi.generic_util.unpack_list(reader, ofp.common.table_desc.unpack)
return obj
def __eq__(self, other):
@@ -15408,7 +15392,7 @@
assert(_stats_type == 12)
obj.flags = reader.read("!H")[0]
reader.skip(4)
- obj.entries = loxi.generic_util.unpack_list(reader, common.table_features.unpack)
+ obj.entries = loxi.generic_util.unpack_list(reader, ofp.common.table_features.unpack)
return obj
def __eq__(self, other):
@@ -15488,7 +15472,7 @@
assert(_stats_type == 12)
obj.flags = reader.read("!H")[0]
reader.skip(4)
- obj.entries = loxi.generic_util.unpack_list(reader, common.table_features.unpack)
+ obj.entries = loxi.generic_util.unpack_list(reader, ofp.common.table_features.unpack)
return obj
def __eq__(self, other):
@@ -15570,7 +15554,7 @@
obj.table_id = reader.read("!B")[0]
reader.skip(3)
obj.config = reader.read("!L")[0]
- obj.properties = loxi.generic_util.unpack_list(reader, table_mod_prop.table_mod_prop.unpack)
+ obj.properties = loxi.generic_util.unpack_list(reader, ofp.table_mod_prop.table_mod_prop.unpack)
return obj
def __eq__(self, other):
@@ -15732,7 +15716,7 @@
assert(_stats_type == 3)
obj.flags = reader.read("!H")[0]
reader.skip(4)
- obj.entries = loxi.generic_util.unpack_list(reader, common.table_stats_entry.unpack)
+ obj.entries = loxi.generic_util.unpack_list(reader, ofp.common.table_stats_entry.unpack)
return obj
def __eq__(self, other):
@@ -15853,7 +15837,7 @@
if table != None:
self.table = table
else:
- self.table = common.table_desc()
+ self.table = ofp.table_desc()
return
def pack(self):
@@ -15884,7 +15868,7 @@
obj.role = reader.read("!L")[0]
obj.reason = reader.read("!B")[0]
reader.skip(7)
- obj.table = common.table_desc.unpack(reader)
+ obj.table = ofp.table_desc.unpack(reader)
return obj
def __eq__(self, other):
@@ -15927,8 +15911,8 @@
def parse_message(buf):
msg_ver, msg_type, msg_len, msg_xid = parse_header(buf)
- if msg_ver != const.OFP_VERSION and msg_type != const.OFPT_HELLO:
- raise loxi.ProtocolError("wrong OpenFlow version (expected %d, got %d)" % (const.OFP_VERSION, msg_ver))
+ if msg_ver != ofp.OFP_VERSION and msg_type != ofp.OFPT_HELLO:
+ raise loxi.ProtocolError("wrong OpenFlow version (expected %d, got %d)" % (ofp.OFP_VERSION, msg_ver))
if len(buf) != msg_len:
raise loxi.ProtocolError("incorrect message size")
return message.unpack(loxi.generic_util.OFReader(buf))