macauley_cheng | 420ddce | 2015-10-26 13:42:23 +0800 | [diff] [blame] | 1 | import logging
|
| 2 | import oftest.base_tests as base_tests
|
| 3 | from oftest import config
|
| 4 | from oftest.testutils import *
|
| 5 | from util import *
|
| 6 |
|
| 7 |
|
| 8 | class features(base_tests.SimpleDataPlane):
|
| 9 | def runTest(self):
|
| 10 | delete_all_flows(self.controller)
|
| 11 | delete_all_groups(self.controller)
|
| 12 |
|
| 13 | test_ports = sorted(config["port_map"].keys())
|
| 14 |
|
macauley_cheng | dc5eb58 | 2015-10-26 14:29:17 +0800 | [diff] [blame^] | 15 | json_result = apply_dpctl_get_cmd(self, config, "features")
|
macauley_cheng | 420ddce | 2015-10-26 13:42:23 +0800 | [diff] [blame] | 16 | #pprint(json_result)
|
| 17 | result=json_result["RECEIVED"][1]
|
| 18 | self.assertTrue(result["tabs"]==64, "Table size is not correct")
|
| 19 |
|
| 20 | class get_config(base_tests.SimpleDataPlane):
|
| 21 | def runTest(self):
|
| 22 | delete_all_flows(self.controller)
|
| 23 | delete_all_groups(self.controller)
|
| 24 |
|
| 25 | test_ports = sorted(config["port_map"].keys())
|
| 26 |
|
macauley_cheng | dc5eb58 | 2015-10-26 14:29:17 +0800 | [diff] [blame^] | 27 | json_result = apply_dpctl_get_cmd(self, config, "get-config")
|
macauley_cheng | 420ddce | 2015-10-26 13:42:23 +0800 | [diff] [blame] | 28 | #pprint(json_result)
|
| 29 | result=json_result["RECEIVED"][1]
|
| 30 | self.assertNotEqual(result["conf"], {}, "Config reply nothing")
|
| 31 |
|
| 32 | |