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): |
Matej Klotton | 86d87c4 | 2016-11-11 11:38:55 +0100 | [diff] [blame] | 6 | """VPP loopback interface.""" |
Matej Klotton | 0178d52 | 2016-11-04 11:11:44 +0100 | [diff] [blame] | 7 | |
| 8 | def __init__(self, test, lo_index): |
| 9 | """ Create VPP loopback interface """ |
| 10 | self._lo_index = lo_index |
| 11 | self._test = test |
| 12 | r = self.test.vapi.create_loopback() |
| 13 | self._sw_if_index = r.sw_if_index |
| 14 | self.post_init_setup() |