mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-08 22:06:10 +02:00
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:
parent
83d529a979
commit
d736b830b9
@ -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
|
||||
}
|
||||
}
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user