diff options
author | Jerome Tollet <jtollet@cisco.com> | 2021-01-08 17:07:38 +0100 |
---|---|---|
committer | Beno�t Ganne <bganne@cisco.com> | 2021-01-08 17:30:23 +0000 |
commit | 00c3f457d22b556a0e7a5e495072de7ec511cc2f (patch) | |
tree | fd35a6942890900bfcba3895b225dab42c2f0f89 /test/test_l2bd_learnlimit.py | |
parent | 02da92670bd80d2d3183fbb1b15b9f4e87459bd1 (diff) |
l2: fix l2 bd_learnlimit
Type: fix
Signed-off-by: Jerome Tollet <jtollet@cisco.com>
Change-Id: I86bc9a461660f3f71e06f88ab65004ec3d763b88
Diffstat (limited to 'test/test_l2bd_learnlimit.py')
-rw-r--r-- | test/test_l2bd_learnlimit.py | 7 |
1 files changed, 1 insertions, 6 deletions
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__': |