blob: ef8152513acbe05d7d7f690e508c221bb6fd306b [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 """
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()