X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Ftest_ip4_vrf_multi_instance.py;h=b73ac9483c321b5264e506ec3d6e36877115ab36;hb=0f26c5a0138ac86d7ebd197c31a09d8d624c35fe;hp=b427919415b2ca465b5439ba5464384e75579b96;hpb=da505f608e0919c45089dc80f9e3e16330a6551a;p=vpp.git diff --git a/test/test_ip4_vrf_multi_instance.py b/test/test_ip4_vrf_multi_instance.py index b427919415b..b73ac9483c3 100644 --- a/test/test_ip4_vrf_multi_instance.py +++ b/test/test_ip4_vrf_multi_instance.py @@ -142,7 +142,7 @@ class TestIp4VrfMultiInst(VppTestCase): raise def setUp(self): - """ip_add_del_route + """ Clear trace and packet infos before running each test. """ super(TestIp4VrfMultiInst, self).setUp() @@ -158,7 +158,7 @@ class TestIp4VrfMultiInst(VppTestCase): self.logger.info(self.vapi.ppcli("show ip arp")) def create_vrf_and_assign_interfaces(self, count, start=1): - """" + """ Create required number of FIB tables / VRFs, put 3 l2-pg interfaces to every FIB table / VRF. @@ -190,12 +190,12 @@ class TestIp4VrfMultiInst(VppTestCase): if pg_if in self.pg_not_in_vrf: self.pg_not_in_vrf.remove(pg_if) pg_if.config_ip4() - pg_if.configure_ipv4_neighbors(vrf_id) + pg_if.configure_ipv4_neighbors() self.logger.debug(self.vapi.ppcli("show ip fib")) self.logger.debug(self.vapi.ppcli("show ip arp")) def delete_vrf(self, vrf_id): - """" + """ Delete required FIB table / VRF. :param int vrf_id: The FIB table / VRF ID to be deleted. @@ -208,6 +208,7 @@ class TestIp4VrfMultiInst(VppTestCase): self.vrf_deleted_list.append(vrf_id) for j in range(self.pg_ifs_per_vrf): pg_if = self.pg_if_by_vrf_id[vrf_id][j] + pg_if.unconfig_ip4() if pg_if in self.pg_in_vrf: self.pg_in_vrf.remove(pg_if) if pg_if not in self.pg_not_in_vrf: @@ -307,12 +308,12 @@ class TestIp4VrfMultiInst(VppTestCase): def run_verify_test(self): """ - Create packet streams for all configured l2-pg interfaces, send all + Create packet streams for all configured l2-pg interfaces, send all \ prepared packet streams and verify that: - all packets received correctly on all pg-l2 interfaces assigned - to bridge domains + to bridge domains - no packet received on all pg-l2 interfaces not assigned to bridge - domains + domains :raise RuntimeError: If no packet captured on l2-pg interface assigned to the bridge domain or if any packet is captured on l2-pg