summaryrefslogtreecommitdiffstats
path: root/test/vpp_tunnel_interface.py
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2018-11-24 21:46:05 -0800
committerDamjan Marion <dmarion@me.com>2019-02-26 11:31:42 +0000
commit3bce8ebfdfaf2a4b576012beb3516d1f4030c20c (patch)
treead221819ad353c04e70a021978e50522a4b66998 /test/vpp_tunnel_interface.py
parentdd3737284d5021e2e3bd0413b61aab14797e365c (diff)
VPP-1508 Python3 abstract classes
Update the syntax to support abstract classes in python 2 and python 3. Depends on: new style classes -- https://gerrit.fd.io/r/16166 Change-Id: Iad2c1240149f38b3faca1b37ab95d3d210e1daee Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'test/vpp_tunnel_interface.py')
-rw-r--r--test/vpp_tunnel_interface.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/vpp_tunnel_interface.py b/test/vpp_tunnel_interface.py
index c74f58532f2..e55486e1675 100644
--- a/test/vpp_tunnel_interface.py
+++ b/test/vpp_tunnel_interface.py
@@ -1,13 +1,13 @@
-from abc import abstractmethod, ABCMeta
+import abc
+import six
from vpp_pg_interface import is_ipv6_misc
from vpp_interface import VppInterface
+@six.add_metaclass(abc.ABCMeta)
class VppTunnelInterface(VppInterface):
- """ VPP tunnel interface abstration """
- __metaclass__ = ABCMeta
+ """ VPP tunnel interface abstraction """
- @abstractmethod
def __init__(self, test, parent_if):
super(VppTunnelInterface, self).__init__(test)
self.parent_if = parent_if