From c43c6e49e58f9c3765c3986c78b348e85e6ae6e4 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Wed, 1 Apr 2015 13:37:59 +0900 Subject: [PATCH] test_parser: Add a expected result For OpenFlow 1.5. Signed-off-by: YAMAMOTO Takashi Signed-off-by: FUJITA Tomonori --- .../libofproto-OFP15-packet_in.packet.json | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-packet_in.packet.json diff --git a/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-packet_in.packet.json b/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-packet_in.packet.json new file mode 100644 index 00000000..e5fd0bd9 --- /dev/null +++ b/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-packet_in.packet.json @@ -0,0 +1,46 @@ +{ + "OFPPacketIn": { + "buffer_id": 200, + "cookie": 0, + "data": "aG9nZQ==", + "match": { + "OFPMatch": { + "length": 40, + "oxm_fields": [ + { + "OXMTlv": { + "field": "in_port", + "mask": null, + "value": 43981 + } + }, + { + "OXMTlv": { + "field": "tunnel_id", + "mask": null, + "value": 50000 + } + }, + { + "OXMTlv": { + "field": "tun_ipv4_src", + "mask": null, + "value": "192.168.2.3" + } + }, + { + "OXMTlv": { + "field": "tun_ipv4_dst", + "mask": null, + "value": "192.168.2.4" + } + } + ], + "type": 1 + } + }, + "reason": 0, + "table_id": 100, + "total_len": 1000 + } +}