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 """ |
Matej Klotton | c5bf07f | 2016-11-23 15:27:17 +0100 | [diff] [blame^] | 10 | r = test.vapi.create_loopback() |
Matej Klotton | 0178d52 | 2016-11-04 11:11:44 +0100 | [diff] [blame] | 11 | self._sw_if_index = r.sw_if_index |
Matej Klotton | c5bf07f | 2016-11-23 15:27:17 +0100 | [diff] [blame^] | 12 | super(VppLoInterface, self).__init__(test) |
| 13 | self._lo_index = lo_index |