From 3af4f650f806161c42753bc21a2ace4d6768968c Mon Sep 17 00:00:00 2001 From: Yusuke Iwase Date: Wed, 19 Aug 2015 10:27:01 +0900 Subject: test_parser: Add test case for OFP15 packet_out TODO: Because Open vSwitch (lib/ofp-util) does not support OF1.5 packet_out structure [EXT-427] 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 --- .../of15/libofproto-OFP15-packet_out.packet | Bin 0 -> 52 bytes .../of15/libofproto-OFP15-packet_out.packet.json | 32 +++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 ryu/tests/packet_data/of15/libofproto-OFP15-packet_out.packet create mode 100644 ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-packet_out.packet.json diff --git a/ryu/tests/packet_data/of15/libofproto-OFP15-packet_out.packet b/ryu/tests/packet_data/of15/libofproto-OFP15-packet_out.packet new file mode 100644 index 00000000..b3569026 Binary files /dev/null and b/ryu/tests/packet_data/of15/libofproto-OFP15-packet_out.packet differ diff --git a/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-packet_out.packet.json b/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-packet_out.packet.json new file mode 100644 index 00000000..d8287cce --- /dev/null +++ b/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-packet_out.packet.json @@ -0,0 +1,32 @@ +{ + "OFPPacketOut": { + "actions": [ + { + "OFPActionOutput": { + "len": 16, + "max_len": 65535, + "port": 4294967291, + "type": 0 + } + } + ], + "actions_len": 16, + "buffer_id": 4294967295, + "data": "dGVzdA==", + "match": { + "OFPMatch": { + "length": 12, + "oxm_fields": [ + { + "OXMTlv": { + "field": "in_port", + "mask": null, + "value": 4294967040 + } + } + ], + "type": 1 + } + } + } +} -- cgit v1.2.3