X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Ftest_map.py;h=9ac3948abf40c2f86a629759f97412a187f96854;hb=227038a444b98f922b4a4f44b85ae60f9ee86e1c;hp=bc6cd818c28417b38e3dba1e6c91f6cdaa62f563;hpb=8082380922c65702251d5242058f7b5f35011574;p=vpp.git diff --git a/test/test_map.py b/test/test_map.py index bc6cd818c28..9ac3948abf4 100644 --- a/test/test_map.py +++ b/test/test_map.py @@ -154,18 +154,21 @@ class TestMAP(VppTestCase): # # change the route to the pre-solved next-hop # - pre_res_route1 = VppIpRoute(self, - "4001::1", - 128, - [VppRoutePath(self.pg1.remote_hosts[3].ip6, - self.pg1.sw_if_index, - is_ip6=1)], - is_ip6=1) - pre_res_route1.add_vpp_config() + pre_res_route.modify([VppRoutePath(self.pg1.remote_hosts[3].ip6, + self.pg1.sw_if_index, + is_ip6=1)]) + pre_res_route.add_vpp_config() self.send_and_assert_encapped(v4, map_src, "2001::c0a8:0:0", dmac=self.pg1.remote_hosts[3].mac) + # + # cleanup. The test infra's object registry will ensure + # the route is really gone and thus that the unresolve worked. + # + pre_res_route.remove_vpp_config() + self.vapi.ppcli("map params pre-resolve del ip6-nh 4001::1") + if __name__ == '__main__': unittest.main(testRunner=VppTestRunner)