summaryrefslogtreecommitdiffstats
path: root/test/vpp_interface.py
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2018-11-25 12:47:04 -0800
committerPaul Vinciguerra <pvinci@vinciconsulting.com>2018-11-25 12:47:04 -0800
commit00671cf9cfbcd9ed25d79712bf01d29cb8787bf2 (patch)
treed303607afac92b861515679af205725a31321cb1 /test/vpp_interface.py
parent61e63bf4e14eddebdd99814cf2633c2e638cd21c (diff)
VPP-1508 python3 tests: python3 repr.
Use six.reprlib. Uses repr for python 2 and reprlib for python 3. Change-Id: Ia343a492d533bd511ed57166381e10a37e452d36 Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'test/vpp_interface.py')
-rw-r--r--test/vpp_interface.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/vpp_interface.py b/test/vpp_interface.py
index 1fe6652cfc7..0f798cb63e6 100644
--- a/test/vpp_interface.py
+++ b/test/vpp_interface.py
@@ -1,5 +1,7 @@
-from abc import abstractmethod, ABCMeta
import socket
+from abc import abstractmethod, ABCMeta
+
+import six
from util import Host, mk_ll_addr, mactobinary
@@ -238,7 +240,7 @@ class VppInterface(object):
raise Exception(
"Could not find interface with sw_if_index %d "
"in interface dump %s" %
- (self.sw_if_index, repr(r)))
+ (self.sw_if_index, six.reprlib(r)))
self._local_ip6_ll = mk_ll_addr(self.local_mac)
self._local_ip6n_ll = socket.inet_pton(socket.AF_INET6,
self.local_ip6_ll)