diff options
author | Yusuke Iwase <iwase.yusuke0@gmail.com> | 2015-08-03 14:28:14 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-08-03 21:31:09 +0900 |
commit | 5e6877b10a455e1b5e230edf131b11466cfd7fdc (patch) | |
tree | a92c1bfce95509c4ce1f284d3366a2a916047300 | |
parent | 148cd09792af1daeb05dc339ee421c18e0e45261 (diff) |
test_parser: Add test case for OFP15 group_desc reply
TODO: Because Open vSwitch (lib/ofp-util) does not support OF1.5
group_desc structure [EXT-350] yet, re-generate the packet data by
using packet_data_generator2 when Open vSwitch supports it.
Reference: OpenFlow 1.1+ support status of Open vSwitch
https://github.com/openvswitch/ovs/blob/master/OPENFLOW-1.1%2B.md
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/tests/packet_data/of15/libofproto-OFP15-group_desc_reply.packet | bin | 0 -> 64 bytes | |||
-rw-r--r-- | ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-group_desc_reply.packet.json | 45 |
2 files changed, 45 insertions, 0 deletions
diff --git a/ryu/tests/packet_data/of15/libofproto-OFP15-group_desc_reply.packet b/ryu/tests/packet_data/of15/libofproto-OFP15-group_desc_reply.packet Binary files differnew file mode 100644 index 00000000..6420c149 --- /dev/null +++ b/ryu/tests/packet_data/of15/libofproto-OFP15-group_desc_reply.packet diff --git a/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-group_desc_reply.packet.json b/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-group_desc_reply.packet.json new file mode 100644 index 00000000..03c136d7 --- /dev/null +++ b/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-group_desc_reply.packet.json @@ -0,0 +1,45 @@ +{ + "OFPGroupDescStatsReply": { + "body": [ + { + "OFPGroupDescStats": { + "bucket_array_len": 32, + "buckets": [ + { + "OFPBucket": { + "action_array_len": 16, + "actions": [ + { + "OFPActionOutput": { + "len": 16, + "max_len": 65509, + "port": 1, + "type": 0 + } + } + ], + "bucket_id": 65535, + "len": 32, + "properties": [ + { + "OFPGroupBucketPropWeight": { + "length": 8, + "type": 0, + "weight": 65535 + } + } + ] + } + } + ], + "group_id": 1, + "length": 48, + "properties": [], + "type": 1 + } + } + ], + "flags": 0, + "type": 7 + } +} |