lib/ofctl: Add test cases for ofctl_v1_0

TODO: Add test cases for the other messages after adding test cases
for ofproto/test_parser.

Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
IWASE Yusuke 2015-12-22 11:49:23 +09:00 committed by FUJITA Tomonori
parent 83d529a979
commit d736b830b9
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,23 @@
{
"cmd": 0,
"flow": {
"actions": [
{
"type": "OUTPUT",
"max_len": 65535,
"port": 6
}
],
"buffer_id": 65535,
"command": 0,
"cookie": 0,
"flags": 0,
"hard_timeout": 0,
"idle_timeout": 0,
"match": {
"dl_dst": "f2:0b:a4:7d:f8:ea"
},
"out_port": 65532,
"priority": 123
}
}

View File

@ -111,6 +111,13 @@ def _add_tests():
}
_test_cases = {
'of10': [
{
'method': ofctl_v1_0.mod_flow_entry,
'request': '1-2-ofp_flow_mod.packet.json',
'reply': None
},
],
'of12': [
{
'method': ofctl_v1_2.get_desc_stats,