2 from vpp_pg_interface import is_ipv6_misc
3 from vpp_interface import VppInterface
6 class VppTunnelInterface(VppInterface, metaclass=abc.ABCMeta):
7 """VPP tunnel interface abstraction"""
9 def __init__(self, test, parent_if):
10 super(VppTunnelInterface, self).__init__(test)
11 self.parent_if = parent_if
15 return self.parent_if.local_mac
19 return self.parent_if.remote_mac
21 def enable_capture(self):
22 return self.parent_if.enable_capture()
24 def add_stream(self, pkts):
25 return self.parent_if.add_stream(pkts)
28 self, expected_count=None, remark=None, timeout=1, filter_out_fn=is_ipv6_misc
30 return self.parent_if.get_capture(
31 expected_count, remark, timeout, filter_out_fn