diff options
author | Jakub Grajciar <jgrajcia@cisco.com> | 2020-12-01 11:23:44 +0100 |
---|---|---|
committer | Jakub Grajciar <jgrajcia@cisco.com> | 2020-12-01 13:31:41 +0100 |
commit | 2df2f75ec52003e3b6addbde5f2e8254a9aee800 (patch) | |
tree | 00a847aee892fb449039c04dbd64569026876af0 /test/test_neighbor.py | |
parent | 153e41a331e7894dc3284bbfa41d9bd839e73a41 (diff) |
tests: remove ip_punt from vpp_papi_provider and add ip_punt object models
Type: refactor
Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
Change-Id: I1bf53c2554e6b313467f618717698ed158db9065
Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
Diffstat (limited to 'test/test_neighbor.py')
-rw-r--r-- | test/test_neighbor.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/test_neighbor.py b/test/test_neighbor.py index 2dc27a83b0a..7c13f9ffb0a 100644 --- a/test/test_neighbor.py +++ b/test/test_neighbor.py @@ -9,6 +9,7 @@ from vpp_neighbor import VppNeighbor, find_nbr from vpp_ip_route import VppIpRoute, VppRoutePath, find_route, \ VppIpTable, DpoProto, FibPathType from vpp_papi import VppEnum +from vpp_ip import VppIpPuntRedirect import scapy.compat from scapy.packet import Raw @@ -798,9 +799,9 @@ class ARPTestCase(VppTestCase): # # setup a punt redirect so packets from the uplink go to the tap # - self.vapi.ip_punt_redirect(self.pg0.sw_if_index, - self.pg2.sw_if_index, - self.pg0.local_ip4) + redirect = VppIpPuntRedirect(self, self.pg0.sw_if_index, + self.pg2.sw_if_index, self.pg0.local_ip4) + redirect.add_vpp_config() p_tcp = (Ether(src=self.pg0.remote_mac, dst=self.pg0.local_mac,) / @@ -844,6 +845,7 @@ class ARPTestCase(VppTestCase): 'low': self.pg0._local_ip4_subnet, 'hi': self.pg0._local_ip4_bcast}, is_add=0) + redirect.remove_vpp_config() def test_proxy_arp(self): """ Proxy ARP """ |