blob: 19ee1523d553d4d419b931b8421ff198ae7b60cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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
|