From 48ce2b5cc8a79758e5678718c6d2376ef368b119 Mon Sep 17 00:00:00 2001 From: Yusuke Iwase Date: Fri, 7 Aug 2015 10:26:01 +0900 Subject: [PATCH] test_parser: Add test case for OFP15 table_features_request 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: FUJITA Tomonori --- ...fproto-OFP15-table_features_request.packet | Bin 0 -> 96 bytes ...o-OFP15-table_features_request.packet.json | 38 ++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 ryu/tests/packet_data/of15/libofproto-OFP15-table_features_request.packet create mode 100644 ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-table_features_request.packet.json diff --git a/ryu/tests/packet_data/of15/libofproto-OFP15-table_features_request.packet b/ryu/tests/packet_data/of15/libofproto-OFP15-table_features_request.packet new file mode 100644 index 0000000000000000000000000000000000000000..706d875630f377b2660e312a1e09b6150c6c7ae3 GIT binary patch literal 96 zcmZP*Vn|>B0Uj{Pz!1R52xKvqBqrsg8bZaeQ2)^YPzehV|7Q?m;A>#uU|Y5O%-whY G85jT`6&bMr literal 0 HcmV?d00001 diff --git a/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-table_features_request.packet.json b/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-table_features_request.packet.json new file mode 100644 index 00000000..986e1439 --- /dev/null +++ b/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-table_features_request.packet.json @@ -0,0 +1,38 @@ +{ + "OFPTableFeaturesStatsRequest": { + "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 + } +}