fixed byte/str issue in coreapi tlv mac addr
This commit is contained in:
parent
675dd0614d
commit
d1114bd804
2 changed files with 2 additions and 2 deletions
|
@ -326,7 +326,7 @@ class CoreTlvDataMacAddr(CoreTlvDataObj):
|
|||
:return:
|
||||
"""
|
||||
# extend to 64 bits
|
||||
return "\0\0" + obj.addr
|
||||
return b"\0\0" + obj.addr
|
||||
|
||||
@staticmethod
|
||||
def new_obj(value):
|
||||
|
|
|
@ -38,7 +38,7 @@ def pack_values(clazz, packers):
|
|||
value = transformer(value)
|
||||
|
||||
# pack and add to existing data
|
||||
logging.debug("packing: %s - %s", tlv_type, value)
|
||||
logging.debug("packing: %s - %s type(%s)", tlv_type, value, type(value))
|
||||
data += clazz.pack(tlv_type.value, value)
|
||||
|
||||
return data
|
||||
|
|
Loading…
Reference in a new issue