summaryrefslogtreecommitdiffstats
path: root/test/vpp_lo_interface.py
blob: ef8152513acbe05d7d7f690e508c221bb6fd306b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from vpp_interface import VppInterface


class VppLoInterface(VppInterface):
    """VPP loopback interface."""

    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()