summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMinoru TAKAHASHI <takahashi.minoru7@gmail.com>2015-09-10 10:59:14 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-09-10 11:06:42 +0900
commit182e2e7067b5be925f8f9236008fdeeda705acaa (patch)
treef3a569fb9d264196a29b61ed8836cbd752905cf4
parent8726f8b0bfff4de1eb2de362d9cb3000d0c37a58 (diff)
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 <iwase.yusuke0@gmail.com> Signed-off-by: Minoru TAKAHASHI <takahashi.minoru7@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_reply.packetbin0 -> 96 bytes
-rw-r--r--ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-table_features_reply.packet.json38
2 files changed, 38 insertions, 0 deletions
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 00000000..ce826483
--- /dev/null
+++ b/ryu/tests/packet_data/of15/libofproto-OFP15-table_features_reply.packet
Binary files differ
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
+ }
+}