fixed byte/str issue in coreapi tlv mac addr

This commit is contained in:
bharnden 2019-06-04 10:55:08 -07:00
parent 675dd0614d
commit d1114bd804
2 changed files with 2 additions and 2 deletions

View file

@ -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):

View file

@ -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