Matej Klotton | 0178d52 | 2016-11-04 11:11:44 +0100 | [diff] [blame] | 1 | |
2 | from vpp_interface import VppInterface | ||||
3 | |||||
4 | |||||
5 | class 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() |