From 00c3f457d22b556a0e7a5e495072de7ec511cc2f Mon Sep 17 00:00:00 2001 From: Jerome Tollet Date: Fri, 8 Jan 2021 17:07:38 +0100 Subject: l2: fix l2 bd_learnlimit Type: fix Signed-off-by: Jerome Tollet Change-Id: I86bc9a461660f3f71e06f88ab65004ec3d763b88 --- test/test_l2bd_learnlimit.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'test') diff --git a/test/test_l2bd_learnlimit.py b/test/test_l2bd_learnlimit.py index e59496eebf0..30224c5bd60 100644 --- a/test/test_l2bd_learnlimit.py +++ b/test/test_l2bd_learnlimit.py @@ -97,6 +97,7 @@ class TestL2LearnLimit(VppTestCase): def test_l2bd_learnlimit03(self): """ L2BD test with bridge domain limit """ + self.vapi.want_l2_macs_events(enable_disable=1, learn_limit=1000) self.vapi.bridge_domain_set_default_learn_limit(4) self.vapi.bridge_domain_add_del(bd_id=3) self.vapi.sw_interface_set_l2_bridge( @@ -148,12 +149,6 @@ class TestL2LearnLimit(VppTestCase): bd_id=2, enable=0) self.vapi.bridge_domain_add_del(bd_id=1, is_add=0) self.vapi.bridge_domain_add_del(bd_id=2, is_add=0) - i = 0 - while (len(self.vapi.l2_fib_table_dump(bd_id=0xffffffff)) != 0): - time.sleep(1) - i = i + 1 - if i == 30: - self.assertTrue(False) if __name__ == '__main__': -- cgit 1.2.3-korg