aboutsummaryrefslogtreecommitdiffstats
path: root/test/vpp_interface.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/vpp_interface.py')
-rw-r--r--test/vpp_interface.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/vpp_interface.py b/test/vpp_interface.py
index 1e047f5f700..431a03a6858 100644
--- a/test/vpp_interface.py
+++ b/test/vpp_interface.py
@@ -33,7 +33,7 @@ class VppInterface(object):
@property
def local_mac(self):
"""MAC-address of the VPP interface."""
- return self._local_mac
+ return str(self._local_mac)
@property
def local_addr(self):
@@ -260,9 +260,8 @@ class VppInterface(object):
r = self.test.vapi.sw_interface_dump(sw_if_index=self.sw_if_index)
for intf in r:
if intf.sw_if_index == self.sw_if_index:
- self._name = intf.interface_name.split(b'\0',
- 1)[0].decode('utf8')
- self._local_mac = bytes(intf.l2_address)
+ self._name = intf.interface_name
+ self._local_mac = intf.l2_address
self._dump = intf
break
else: