Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
tests: cli wrapper should return string
[vpp.git]
/
test
/
vpp_interface.py
diff --git
a/test/vpp_interface.py
b/test/vpp_interface.py
index
1e047f5
..
431a03a
100644
(file)
--- 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."""
@property
def local_mac(self):
"""MAC-address of the VPP interface."""
- return s
elf._local_mac
+ return s
tr(self._local_mac)
@property
def local_addr(self):
@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:
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:
self._dump = intf
break
else: