blob: ed9ac725db5ffe7e01321473f01af4629b968503 [file] [log] [blame]
Matej Klotton0178d522016-11-04 11:11:44 +01001
2from vpp_interface import VppInterface
3
4
5class VppLoInterface(VppInterface):
6 """
7 VPP loopback interface
8 """
9
10 def __init__(self, test, lo_index):
11 """ Create VPP loopback interface """
12 self._lo_index = lo_index
13 self._test = test
14 r = self.test.vapi.create_loopback()
15 self._sw_if_index = r.sw_if_index
16 self.post_init_setup()