blob: 323e76421f445ee894a8432d2cfb4dcdd29011f8 [file] [log] [blame]
macauleye7df6402015-07-16 17:38:20 +08001"""
2Group table test
3Verify each group table can created correctly
4"""
5from oftest import config
6import oftest.base_tests as base_tests
7import ofp
8from oftest.testutils import *
9from accton_util import *
10
11class 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
19class 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