diff options
author | Pavel Kotucek <pavel.kotucek@pantheon.tech> | 2018-11-21 13:20:41 +0100 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-11-23 13:35:22 +0000 |
commit | 7303ee837962a9bbfba2c092625d7285bf9f5c98 (patch) | |
tree | d1c287dd2ae864144d8bbd4bb5c7550dadadd4eb /test/test_l2_fib.py | |
parent | 3b4c64e13386e7419f109cd02af4f67e2d6bf55e (diff) |
VPP-1476: L2fib failures in master
Overlaping range of BDs.
Change-Id: I96d2caf98b94206cd6b145961819720727f13c61
Signed-off-by: Pavel Kotucek <pavel.kotucek@pantheon.tech>
Diffstat (limited to 'test/test_l2_fib.py')
-rw-r--r-- | test/test_l2_fib.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/test/test_l2_fib.py b/test/test_l2_fib.py index abab0f1088b..436aa10c3ec 100644 --- a/test/test_l2_fib.py +++ b/test/test_l2_fib.py @@ -81,7 +81,8 @@ class TestL2fib(VppTestCase): @classmethod def bd_ifs(cls, bd_id): - return range((bd_id - 1) * cls.n_ifs_per_bd, bd_id * cls.n_ifs_per_bd) + return range((bd_id - 1) * cls.n_ifs_per_bd, + bd_id * cls.n_ifs_per_bd - 1) @classmethod def setUpClass(cls): @@ -98,7 +99,7 @@ class TestL2fib(VppTestCase): n_brs = cls.n_brs = range(1, 3) cls.n_ifs_per_bd = 4 n_ifs = range(cls.n_ifs_per_bd * len(cls.n_brs)) - # Create 4 pg interfaces + # Create pg interfaces cls.create_pg_interfaces(n_ifs) cls.flows = dict() @@ -390,8 +391,8 @@ class TestL2fib(VppTestCase): self.config_l2_fib_entries(bd_id, hosts) self.run_verify_test(bd_id, hosts, hosts) - def test_l2_fib_delete12(self): - """ L2 FIB - program 100 + delete 12 MACs + def test_l2_fib_program100_delete12(self): + """ L2 FIB - program 100, delete 12 MACs """ bd_id = 1 hosts = self.create_hosts(100, subnet=17) @@ -402,8 +403,8 @@ class TestL2fib(VppTestCase): self.run_verify_test(bd_id, hosts, hosts) self.run_verify_negat_test(bd_id, hosts, del_hosts) - def test_l2_fib_add100_add100(self): - """ L2 FIB - program 100 + 100 MACs + def test_l2_fib_program100_add100(self): + """ L2 FIB - program 100, add 100 MACs """ bd_id = 1 hosts = self.create_hosts(100, subnet=17) @@ -413,7 +414,7 @@ class TestL2fib(VppTestCase): self.run_verify_test(bd_id, hosts, hosts2) def test_l2_fib_program10_learn10(self): - """ L2 FIB - Program 10 MACs, learn 10 + """ L2 FIB - program 10 MACs, learn 10 """ hosts = self.create_hosts(20, subnet=35) lhosts = self.split_hosts(hosts, 10) |