blob: 19ee1523d553d4d419b931b8421ff198ae7b60cd [file] [log] [blame]
Matej Klotton0178d522016-11-04 11:11:44 +01001
2from vpp_interface import VppInterface
3
4
5class VppLoInterface(VppInterface):
Matej Klotton86d87c42016-11-11 11:38:55 +01006 """VPP loopback interface."""
Matej Klotton0178d522016-11-04 11:11:44 +01007
8 def __init__(self, test, lo_index):
9 """ Create VPP loopback interface """
Matej Klottonc5bf07f2016-11-23 15:27:17 +010010 r = test.vapi.create_loopback()
Matej Klotton0178d522016-11-04 11:11:44 +010011 self._sw_if_index = r.sw_if_index
Matej Klottonc5bf07f2016-11-23 15:27:17 +010012 super(VppLoInterface, self).__init__(test)
13 self._lo_index = lo_index