macauley | e7df640 | 2015-07-16 17:38:20 +0800 | [diff] [blame] | 1 | """
|
| 2 | Group table test
|
| 3 | Verify each group table can created correctly
|
| 4 | """
|
| 5 | from oftest import config
|
| 6 | import oftest.base_tests as base_tests
|
| 7 | import ofp
|
| 8 | from oftest.testutils import *
|
| 9 | from accton_util import *
|
| 10 |
|
| 11 | class L2InterfaceGroup(base_tests.SimpleDataPlane):
|
| 12 | def runTest(self):
|
| 13 | delete_all_flows(self.controller)
|
| 14 | delete_all_groups(self.controller)
|
| 15 |
|
| 16 | add_l2_interface_grouop(self.controller, config["port_map"].keys(), 1, False, False)
|
| 17 | add_l2_interface_grouop(self.controller, config["port_map"].keys(), 2, False, False)
|
| 18 |
|
| 19 | class L2McastGroup(base_tests.SimpleDataPlane):
|
| 20 | def runTest(self):
|
| 21 | delete_all_flows(self.controller)
|
| 22 | delete_all_groups(self.controller)
|
| 23 |
|
| 24 | group_list=add_l2_interface_grouop(self.controller, config["port_map"].keys(), 1, False, False)
|
| 25 | add_l2_mcast_group(self.controller, config["port_map"].keys(), 1, 1)
|
| 26 |
|
| 27 | add_l2_interface_grouop(self.controller, config["port_map"].keys(), 2, False, False)
|
| 28 | add_l2_mcast_group(self.controller, config["port_map"].keys(), 2, 2)
|
| 29 |
|
| 30 |
|