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>
This commit is contained in:
Matej Klotton
2016-11-04 11:11:44 +01:00
committed by Damjan Marion
parent 9db551cf50
commit 0178d52384
10 changed files with 483 additions and 119 deletions

View File

@ -9,7 +9,7 @@ from scapy.layers.inet import IP, UDP
from logging import *
from framework import VppTestCase, VppTestRunner
from util import TestHost
from util import Host
class TestL2xc(VppTestCase):
@ -85,7 +85,7 @@ class TestL2xc(VppTestCase):
self.hosts_by_pg_idx[pg_if.sw_if_index] = []
hosts = self.hosts_by_pg_idx[pg_if.sw_if_index]
for j in range(0, count):
host = TestHost(
host = Host(
"00:00:00:ff:%02x:%02x" % (pg_if.sw_if_index, j),
"172.17.1%02x.%u" % (pg_if.sw_if_index, j))
hosts.append(host)