summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYusuke Iwase <iwase.yusuke0@gmail.com>2015-08-07 10:26:01 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-08-08 13:24:20 +0900
commit48ce2b5cc8a79758e5678718c6d2376ef368b119 (patch)
treef398e8637e3fbdf24bb7a46cd48c8fbf4460f885
parent605165ce9209341a66b22172ffd24a770a3d7106 (diff)
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 <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-table_features_request.packetbin0 -> 96 bytes
-rw-r--r--ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-table_features_request.packet.json38
2 files changed, 38 insertions, 0 deletions
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 00000000..706d8756
--- /dev/null
+++ b/ryu/tests/packet_data/of15/libofproto-OFP15-table_features_request.packet
Binary files differ
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
+ }
+}