summaryrefslogtreecommitdiffstats
path: root/test/vpp_interface.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/vpp_interface.py')
-rw-r--r--test/vpp_interface.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/vpp_interface.py b/test/vpp_interface.py
index 8639f8745c5..a464bf38984 100644
--- a/test/vpp_interface.py
+++ b/test/vpp_interface.py
@@ -1,3 +1,4 @@
+import binascii
import socket
from abc import abstractmethod, ABCMeta
@@ -232,7 +233,7 @@ class VppInterface(object):
if intf.sw_if_index == self.sw_if_index:
self._name = intf.interface_name.split(b'\0', 1)[0]
self._local_mac = \
- ':'.join(intf.l2_address.encode('hex')[i:i + 2]
+ ':'.join(binascii.hexlify(intf.l2_address)[i:i + 2]
for i in range(0, 12, 2))
self._dump = intf
break