X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Fvpp_tunnel_interface.py;h=d70328eb239dc11f6dbf710fd238df586d03bcd2;hb=06bbab0c45c805544c981b8765ea3d85760d66a8;hp=c74f58532f2326053362e8ac7bc93c8b8a48e761;hpb=31da2e30317bc1fcb4586e1dc0d560600d9b29d3;p=vpp.git diff --git a/test/vpp_tunnel_interface.py b/test/vpp_tunnel_interface.py index c74f58532f2..d70328eb239 100644 --- a/test/vpp_tunnel_interface.py +++ b/test/vpp_tunnel_interface.py @@ -1,13 +1,11 @@ -from abc import abstractmethod, ABCMeta +import abc from vpp_pg_interface import is_ipv6_misc from vpp_interface import VppInterface -class VppTunnelInterface(VppInterface): - """ VPP tunnel interface abstration """ - __metaclass__ = ABCMeta +class VppTunnelInterface(VppInterface, metaclass=abc.ABCMeta): + """VPP tunnel interface abstraction""" - @abstractmethod def __init__(self, test, parent_if): super(VppTunnelInterface, self).__init__(test) self.parent_if = parent_if @@ -26,7 +24,9 @@ class VppTunnelInterface(VppInterface): def add_stream(self, pkts): return self.parent_if.add_stream(pkts) - def get_capture(self, expected_count=None, remark=None, timeout=1, - filter_out_fn=is_ipv6_misc): - return self.parent_if.get_capture(expected_count, remark, timeout, - filter_out_fn) + def get_capture( + self, expected_count=None, remark=None, timeout=1, filter_out_fn=is_ipv6_misc + ): + return self.parent_if.get_capture( + expected_count, remark, timeout, filter_out_fn + )