1 from vpp_object import VppObject
2 from vpp_interface import VppInterface
5 class VppBviInterface(VppInterface, VppObject):
6 """VPP bvi interface."""
8 def __init__(self, test):
9 """Create VPP BVI interface"""
10 super(VppBviInterface, self).__init__(test)
13 def add_vpp_config(self):
14 r = self.test.vapi.bvi_create(user_instance=0xFFFFFFFF, mac="00:00:00:00:00:00")
15 self.set_sw_if_index(r.sw_if_index)
17 def remove_vpp_config(self):
18 self.test.vapi.bvi_delete(sw_if_index=self.sw_if_index)
21 return "bvi-%d" % self._sw_if_index