aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_ip4.py
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2020-11-25 09:14:22 +0000
committerBeno�t Ganne <bganne@cisco.com>2020-11-26 10:16:58 +0000
commit87866037c44be7dd7467981757d3206835901996 (patch)
tree0bf439e7459b7d6c1808395ecf73f344e8ec5541 /test/test_ip4.py
parentcfe949dbf001d8fa18301ecc11c644f8cb39c5d7 (diff)
fib: Only track cover if activated
Type: fix also cleanup any tracking at delete Signed-off-by: Neale Ranns <nranns@cisco.com> Change-Id: Id1037920c88c63e2029384af931064c00ed497aa
Diffstat (limited to 'test/test_ip4.py')
-rw-r--r--test/test_ip4.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/test/test_ip4.py b/test/test_ip4.py
index 2592f584656..35be24ca34d 100644
--- a/test/test_ip4.py
+++ b/test/test_ip4.py
@@ -2243,15 +2243,19 @@ class TestIPCover(VppTestCase):
register=False).add_vpp_config()
# add/remove/add a longer mask cover
- r = VppIpRoute(self, "127.0.0.0", 8,
- [VppRoutePath("127.0.0.1",
- lo.sw_if_index)]).add_vpp_config()
- r.remove_vpp_config()
- r.add_vpp_config()
+ r8 = VppIpRoute(self, "127.0.0.0", 8,
+ [VppRoutePath("127.0.0.1",
+ lo.sw_if_index)]).add_vpp_config()
+ r8.remove_vpp_config()
+ r8.add_vpp_config()
+ r8.remove_vpp_config()
# remove the default route
r.remove_vpp_config()
+ # remove the interface prefix
+ a.remove_vpp_config()
+
class TestIP4Replace(VppTestCase):
""" IPv4 Interface Address Replace """