From 5e6877b10a455e1b5e230edf131b11466cfd7fdc Mon Sep 17 00:00:00 2001 From: Yusuke Iwase Date: Mon, 3 Aug 2015 14:28:14 +0900 Subject: [PATCH] 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 Signed-off-by: FUJITA Tomonori --- .../libofproto-OFP15-group_desc_reply.packet | Bin 0 -> 64 bytes ...ofproto-OFP15-group_desc_reply.packet.json | 45 ++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 ryu/tests/packet_data/of15/libofproto-OFP15-group_desc_reply.packet create mode 100644 ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-group_desc_reply.packet.json 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 new file mode 100644 index 0000000000000000000000000000000000000000..6420c149b28e386bf03ee3046a4e2710481ed841 GIT binary patch literal 64 wcmZP*W^iBt0d_FSz+k`#VlXl&K=}#`0t^iQ{{wkInt}2EQ>Zut0|!VH0E3SP+yDRo literal 0 HcmV?d00001 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 + } +}