2016-11-04 11:11:44 +01:00
|
|
|
|
|
|
|
from vpp_interface import VppInterface
|
|
|
|
|
|
|
|
|
|
|
|
class VppLoInterface(VppInterface):
|
2016-11-11 11:38:55 +01:00
|
|
|
"""VPP loopback interface."""
|
2016-11-04 11:11:44 +01:00
|
|
|
|
|
|
|
def __init__(self, test, lo_index):
|
|
|
|
""" Create VPP loopback interface """
|
|
|
|
self._lo_index = lo_index
|
|
|
|
self._test = test
|
|
|
|
r = self.test.vapi.create_loopback()
|
|
|
|
self._sw_if_index = r.sw_if_index
|
|
|
|
self.post_init_setup()
|