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.yusu...@gmail.com> --- .../of15/libofproto-OFP15-group_desc_reply.packet | Bin 0 -> 64 bytes .../libofproto-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 0000000..03c136d --- /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 + } +} -- 1.9.1 ------------------------------------------------------------------------------ _______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel