From b3d1b203579226ca5136b9d6a2744577d07cfcc6 Mon Sep 17 00:00:00 2001 From: Gabriel Ganne Date: Mon, 30 Oct 2017 15:44:31 +0100 Subject: lb plugin tests - wipe flowtable after each unit test Add new cli api: "test lb flowtable flush" which flushes everything. Call this new cli function after the end of each lb unit test. Change-Id: I71d04a7bfba398f7d4dd9cc3ed24bba786943663 Signed-off-by: Gabriel Ganne --- test/test_lb.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/test_lb.py b/test/test_lb.py index db4d46b2ded..ab9a209638a 100644 --- a/test/test_lb.py +++ b/test/test_lb.py @@ -162,6 +162,7 @@ class TestLB(VppTestCase): for asid in self.ass: self.vapi.cli("lb as 90.0.0.0/8 10.0.0.%u del" % (asid)) self.vapi.cli("lb vip 90.0.0.0/8 encap gre4 del") + self.vapi.cli("test lb flowtable flush") def test_lb_ip6_gre4(self): """ Load Balancer IP6 GRE4 """ @@ -180,6 +181,7 @@ class TestLB(VppTestCase): for asid in self.ass: self.vapi.cli("lb as 2001::/16 10.0.0.%u del" % (asid)) self.vapi.cli("lb vip 2001::/16 encap gre4 del") + self.vapi.cli("test lb flowtable flush") def test_lb_ip4_gre6(self): """ Load Balancer IP4 GRE6 """ @@ -197,6 +199,7 @@ class TestLB(VppTestCase): for asid in self.ass: self.vapi.cli("lb as 90.0.0.0/8 2002::%u del" % (asid)) self.vapi.cli("lb vip 90.0.0.0/8 encap gre6 del") + self.vapi.cli("test lb flowtable flush") def test_lb_ip6_gre6(self): """ Load Balancer IP6 GRE6 """ @@ -214,3 +217,4 @@ class TestLB(VppTestCase): for asid in self.ass: self.vapi.cli("lb as 2001::/16 2002::%u del" % (asid)) self.vapi.cli("lb vip 2001::/16 encap gre6 del") + self.vapi.cli("test lb flowtable flush") -- cgit 1.2.3-korg