From 182e2e7067b5be925f8f9236008fdeeda705acaa Mon Sep 17 00:00:00 2001 From: Minoru TAKAHASHI Date: Thu, 10 Sep 2015 10:59:14 +0900 Subject: [PATCH] test_parser: Add test case for OFP15 table_features_reply TODO: Because Open vSwitch (lib/ofp-util) does not support Egress Tables [EXT-306] 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: Minoru TAKAHASHI Signed-off-by: FUJITA Tomonori --- ...bofproto-OFP15-table_features_reply.packet | Bin 0 -> 96 bytes ...oto-OFP15-table_features_reply.packet.json | 38 ++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 ryu/tests/packet_data/of15/libofproto-OFP15-table_features_reply.packet create mode 100644 ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-table_features_reply.packet.json diff --git a/ryu/tests/packet_data/of15/libofproto-OFP15-table_features_reply.packet b/ryu/tests/packet_data/of15/libofproto-OFP15-table_features_reply.packet new file mode 100644 index 0000000000000000000000000000000000000000..ce8264838107eaaf11bb7450b08c00a48f000394 GIT binary patch literal 96 zcmZP*W=LQF0Uj{Pz!1R52xKvqBqrsg8bZaeQ2)^YPzehV|7Q?m;A>#uU|Y5O%-whY G85jT`bQ!V$ literal 0 HcmV?d00001 diff --git a/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-table_features_reply.packet.json b/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-table_features_reply.packet.json new file mode 100644 index 00000000..864a85fd --- /dev/null +++ b/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-table_features_reply.packet.json @@ -0,0 +1,38 @@ +{ + "OFPTableFeaturesStatsReply": { + "body": [ + { + "OFPTableFeaturesStats": { + "capabilities": 4, + "command": 1, + "features": 1, + "length": 80, + "max_entries": 255, + "metadata_match": 18446744073709551615, + "metadata_write": 18446744073709551615, + "name": "table1", + "properties": [ + { + "OFPTableFeaturePropOxmValues": { + "length": 14, + "oxm_values": [ + { + "OXMTlv": { + "field": "eth_src", + "mask": null, + "value": "aa:bb:cc:dd:ee:ff" + } + } + ], + "type": 22 + } + } + ], + "table_id": 1 + } + } + ], + "flags": 0, + "type": 12 + } +}