
Change-Id: I1eb0f735c5d025e6096d5760eb01419a1c58530a Signed-off-by: Matej Klotton <mklotton@cisco.com>
14 lines
366 B
Python
14 lines
366 B
Python
|
|
from vpp_interface import VppInterface
|
|
|
|
|
|
class VppLoInterface(VppInterface):
|
|
"""VPP loopback interface."""
|
|
|
|
def __init__(self, test, lo_index):
|
|
""" Create VPP loopback interface """
|
|
r = test.vapi.create_loopback()
|
|
self._sw_if_index = r.sw_if_index
|
|
super(VppLoInterface, self).__init__(test)
|
|
self._lo_index = lo_index
|