vpp/test/vpp_lo_interface.py
Matej Klotton 0178d52384 Add IRB test
- JIRA: CSIT-255
- create loopback interfaces
- move pg-interface specific arp and neighbor discovery from vpp_interface to vpp_pg_interface
- base configuration of IRB tests
- IP test scenario

Change-Id: I9945a188163652a4e22325877aef008c4d029557
Signed-off-by: Matej Klotton <mklotton@cisco.com>
2016-11-11 10:29:04 +00:00

17 lines
386 B
Python

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