diff options
author | Yusuke Iwase <iwase.yusuke0@gmail.com> | 2015-08-19 10:27:01 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-08-20 18:22:12 +0900 |
commit | 3af4f650f806161c42753bc21a2ace4d6768968c (patch) | |
tree | 82bbbac5ecefeecb6ed55b00d74d9a8a133b3280 | |
parent | 3be0ac4b35636690eb19f5d555707f195f636786 (diff) |
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 <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-packet_out.packet | bin | 0 -> 52 bytes | |||
-rw-r--r-- | ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-packet_out.packet.json | 32 |
2 files changed, 32 insertions, 0 deletions
diff --git a/ryu/tests/packet_data/of15/libofproto-OFP15-packet_out.packet b/ryu/tests/packet_data/of15/libofproto-OFP15-packet_out.packet Binary files differnew file mode 100644 index 00000000..b3569026 --- /dev/null +++ b/ryu/tests/packet_data/of15/libofproto-OFP15-packet_out.packet 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 + } + } + } +} |