- def test_l2_fib_06(self):
- """ L2 FIB test 6 - flush first interface
- """
- self.create_hosts(20, subnet=36)
-
- self.learn_hosts(bd_id=1, n_hosts_per_if=10)
- self.learn_hosts(bd_id=2, n_hosts_per_if=10)
- self.config_l2_fib_entries(bd_id=1, n_hosts_per_if=10)
- self.config_l2_fib_entries(bd_id=2, n_hosts_per_if=10)
- flushed = self.flush_int(self.pg_interfaces[0].sw_if_index)
- self.run_verify_test(bd_id=1, dst_hosts=self.learned_hosts)
- self.run_verify_negat_test(bd_id=1, dst_hosts=flushed)
-
- def test_l2_fib_07(self):
- """ L2 FIB test 7 - flush bd_id
- """
- self.create_hosts(20, subnet=37)
-
- self.learn_hosts(bd_id=1, n_hosts_per_if=10)
- self.learn_hosts(bd_id=2, n_hosts_per_if=10)
- self.config_l2_fib_entries(bd_id=1, n_hosts_per_if=10)
- self.config_l2_fib_entries(bd_id=2, n_hosts_per_if=10)
- flushed = self.flush_bd(bd_id=1)
- self.run_verify_negat_test(bd_id=1, dst_hosts=flushed)
- self.run_verify_test(bd_id=2, dst_hosts=self.learned_hosts)
-
- def test_l2_fib_08(self):
- """ L2 FIB test 8 - flush all
- """
- self.create_hosts(20, subnet=38)
-
- self.learn_hosts(bd_id=1, n_hosts_per_if=10)
- self.learn_hosts(bd_id=2, n_hosts_per_if=10)
- self.config_l2_fib_entries(bd_id=1, n_hosts_per_if=10)
- self.config_l2_fib_entries(bd_id=2, n_hosts_per_if=10)
- flushed = self.flush_all()
- self.run_verify_negat_test(bd_id=1, dst_hosts=flushed)
- self.run_verify_negat_test(bd_id=2, dst_hosts=flushed)
-
- def test_l2_fib_09(self):
- """ L2 FIB test 9 - mac learning events