1 from abc import abstractmethod, ABCMeta
2 from vpp_pg_interface import is_ipv6_misc
3 from vpp_interface import VppInterface
6 class VppTunnelInterface(VppInterface):
7 """ VPP tunnel interface abstration """
8 __metaclass__ = ABCMeta
11 def __init__(self, test, parent_if):
12 super(VppTunnelInterface, self).__init__(test)
13 self.parent_if = parent_if
17 return self.parent_if.local_mac
21 return self.parent_if.remote_mac
23 def enable_capture(self):
24 return self.parent_if.enable_capture()
26 def add_stream(self, pkts):
27 return self.parent_if.add_stream(pkts)
29 def get_capture(self, expected_count=None, remark=None, timeout=1,
30 filter_out_fn=is_ipv6_misc):
31 return self.parent_if.get_capture(expected_count, remark, timeout,