summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorShinpei Muraoka <shinpei.muraoka@gmail.com>2016-08-22 10:02:30 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-08-25 13:30:57 +0900
commitd4b8bd609fda6ceb45d4dc9b9e0f48f3b1118ed2 (patch)
tree577db73d29cdad88acad8151d2ecd69129fed60b
parent7735137e9daa5d862c3a71590ae9b35188441521 (diff)
tests: Add tests for specifying Packet library for OFPPacketOut.data
Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/tests/packet_data/of10/libofproto-OFP10-ofp_packet_out_packet_library.packetbin0 -> 122 bytes
-rw-r--r--ryu/tests/packet_data/of12/libofproto-OFP12-ofp_packet_out_packet_library.packetbin0 -> 138 bytes
-rw-r--r--ryu/tests/packet_data/of13/libofproto-OFP13-ofp_packet_out_packet_library.packetbin0 -> 138 bytes
-rw-r--r--ryu/tests/packet_data/of14/libofproto-OFP14-ofp_packet_out_packet_library.packetbin0 -> 138 bytes
-rw-r--r--ryu/tests/unit/ofproto/json/of10/libofproto-OFP10-ofp_packet_out_packet_library.packet.json58
-rw-r--r--ryu/tests/unit/ofproto/json/of12/libofproto-OFP12-ofp_packet_out_packet_library.packet.json61
-rw-r--r--ryu/tests/unit/ofproto/json/of13/libofproto-OFP13-ofp_packet_out_packet_library.packet.json61
-rw-r--r--ryu/tests/unit/ofproto/json/of14/libofproto-OFP14-ofp_packet_out_packet_library.packet.json61
8 files changed, 241 insertions, 0 deletions
diff --git a/ryu/tests/packet_data/of10/libofproto-OFP10-ofp_packet_out_packet_library.packet b/ryu/tests/packet_data/of10/libofproto-OFP10-ofp_packet_out_packet_library.packet
new file mode 100644
index 00000000..8093e84c
--- /dev/null
+++ b/ryu/tests/packet_data/of10/libofproto-OFP10-ofp_packet_out_packet_library.packet
Binary files differ
diff --git a/ryu/tests/packet_data/of12/libofproto-OFP12-ofp_packet_out_packet_library.packet b/ryu/tests/packet_data/of12/libofproto-OFP12-ofp_packet_out_packet_library.packet
new file mode 100644
index 00000000..a9ebe1ef
--- /dev/null
+++ b/ryu/tests/packet_data/of12/libofproto-OFP12-ofp_packet_out_packet_library.packet
Binary files differ
diff --git a/ryu/tests/packet_data/of13/libofproto-OFP13-ofp_packet_out_packet_library.packet b/ryu/tests/packet_data/of13/libofproto-OFP13-ofp_packet_out_packet_library.packet
new file mode 100644
index 00000000..cf6689f8
--- /dev/null
+++ b/ryu/tests/packet_data/of13/libofproto-OFP13-ofp_packet_out_packet_library.packet
Binary files differ
diff --git a/ryu/tests/packet_data/of14/libofproto-OFP14-ofp_packet_out_packet_library.packet b/ryu/tests/packet_data/of14/libofproto-OFP14-ofp_packet_out_packet_library.packet
new file mode 100644
index 00000000..207712f1
--- /dev/null
+++ b/ryu/tests/packet_data/of14/libofproto-OFP14-ofp_packet_out_packet_library.packet
Binary files differ
diff --git a/ryu/tests/unit/ofproto/json/of10/libofproto-OFP10-ofp_packet_out_packet_library.packet.json b/ryu/tests/unit/ofproto/json/of10/libofproto-OFP10-ofp_packet_out_packet_library.packet.json
new file mode 100644
index 00000000..f8e38d71
--- /dev/null
+++ b/ryu/tests/unit/ofproto/json/of10/libofproto-OFP10-ofp_packet_out_packet_library.packet.json
@@ -0,0 +1,58 @@
+{
+ "OFPPacketOut": {
+ "actions": [
+ {
+ "OFPActionOutput": {
+ "max_len": 65535,
+ "port": 65532
+ }
+ }
+ ],
+ "buffer_id": 4294967295,
+ "data": {
+ "Packet": {
+ "protocols": [
+ {
+ "ethernet": {
+ "dst": "f2:0b:a4:d0:3f:70",
+ "ethertype": 2048,
+ "src": "f2:0b:a4:7d:f8:ea"
+ }
+ },
+ {
+ "ipv4": {
+ "csum": 44939,
+ "dst": "10.0.0.2",
+ "flags": 0,
+ "header_length": 5,
+ "identification": 63514,
+ "offset": 0,
+ "option": null,
+ "proto": 1,
+ "src": "10.0.0.1",
+ "tos": 0,
+ "total_length": 84,
+ "ttl": 255,
+ "version": 4
+ }
+ },
+ {
+ "icmp": {
+ "code": 0,
+ "csum": 520,
+ "data": {
+ "echo": {
+ "data": "MdYCAAAAAACrjS0xAAAAABAREhMUFRYXGBkaGxwdHh8gISIjJCUmJygpKissLS4vAAAAAAAAAAA=",
+ "id": 63328,
+ "seq": 0
+ }
+ },
+ "type": 8
+ }
+ }
+ ]
+ }
+ },
+ "in_port": 65533
+ }
+}
diff --git a/ryu/tests/unit/ofproto/json/of12/libofproto-OFP12-ofp_packet_out_packet_library.packet.json b/ryu/tests/unit/ofproto/json/of12/libofproto-OFP12-ofp_packet_out_packet_library.packet.json
new file mode 100644
index 00000000..b859650d
--- /dev/null
+++ b/ryu/tests/unit/ofproto/json/of12/libofproto-OFP12-ofp_packet_out_packet_library.packet.json
@@ -0,0 +1,61 @@
+{
+ "OFPPacketOut": {
+ "actions": [
+ {
+ "OFPActionOutput": {
+ "len": 16,
+ "max_len": 65535,
+ "port": 4294967292,
+ "type": 0
+ }
+ }
+ ],
+ "actions_len": 16,
+ "buffer_id": 4294967295,
+ "data": {
+ "Packet": {
+ "protocols": [
+ {
+ "ethernet": {
+ "dst": "f2:0b:a4:d0:3f:70",
+ "ethertype": 2048,
+ "src": "f2:0b:a4:7d:f8:ea"
+ }
+ },
+ {
+ "ipv4": {
+ "csum": 44939,
+ "dst": "10.0.0.2",
+ "flags": 0,
+ "header_length": 5,
+ "identification": 63514,
+ "offset": 0,
+ "option": null,
+ "proto": 1,
+ "src": "10.0.0.1",
+ "tos": 0,
+ "total_length": 84,
+ "ttl": 255,
+ "version": 4
+ }
+ },
+ {
+ "icmp": {
+ "code": 0,
+ "csum": 520,
+ "data": {
+ "echo": {
+ "data": "MdYCAAAAAACrjS0xAAAAABAREhMUFRYXGBkaGxwdHh8gISIjJCUmJygpKissLS4vAAAAAAAAAAA=",
+ "id": 63328,
+ "seq": 0
+ }
+ },
+ "type": 8
+ }
+ }
+ ]
+ }
+ },
+ "in_port": 4294967293
+ }
+}
diff --git a/ryu/tests/unit/ofproto/json/of13/libofproto-OFP13-ofp_packet_out_packet_library.packet.json b/ryu/tests/unit/ofproto/json/of13/libofproto-OFP13-ofp_packet_out_packet_library.packet.json
new file mode 100644
index 00000000..4e8ad336
--- /dev/null
+++ b/ryu/tests/unit/ofproto/json/of13/libofproto-OFP13-ofp_packet_out_packet_library.packet.json
@@ -0,0 +1,61 @@
+{
+ "OFPPacketOut": {
+ "actions": [
+ {
+ "OFPActionOutput": {
+ "len": 16,
+ "max_len": 65535,
+ "port": 4294967292,
+ "type": 0
+ }
+ }
+ ],
+ "actions_len": 16,
+ "buffer_id": 4294967295,
+ "data": {
+ "Packet": {
+ "protocols": [
+ {
+ "ethernet": {
+ "dst": "f2:0b:a4:d0:3f:70",
+ "ethertype": 2048,
+ "src": "f2:0b:a4:7d:f8:ea"
+ }
+ },
+ {
+ "ipv4": {
+ "csum": 44939,
+ "dst": "10.0.0.2",
+ "flags": 0,
+ "header_length": 5,
+ "identification": 63514,
+ "offset": 0,
+ "option": null,
+ "proto": 1,
+ "src": "10.0.0.1",
+ "tos": 0,
+ "total_length": 84,
+ "ttl": 255,
+ "version": 4
+ }
+ },
+ {
+ "icmp": {
+ "code": 0,
+ "csum": 520,
+ "data": {
+ "echo": {
+ "data": "MdYCAAAAAACrjS0xAAAAABAREhMUFRYXGBkaGxwdHh8gISIjJCUmJygpKissLS4vAAAAAAAAAAA=",
+ "id": 63328,
+ "seq": 0
+ }
+ },
+ "type": 8
+ }
+ }
+ ]
+ }
+ },
+ "in_port": 4294967293
+ }
+}
diff --git a/ryu/tests/unit/ofproto/json/of14/libofproto-OFP14-ofp_packet_out_packet_library.packet.json b/ryu/tests/unit/ofproto/json/of14/libofproto-OFP14-ofp_packet_out_packet_library.packet.json
new file mode 100644
index 00000000..b859650d
--- /dev/null
+++ b/ryu/tests/unit/ofproto/json/of14/libofproto-OFP14-ofp_packet_out_packet_library.packet.json
@@ -0,0 +1,61 @@
+{
+ "OFPPacketOut": {
+ "actions": [
+ {
+ "OFPActionOutput": {
+ "len": 16,
+ "max_len": 65535,
+ "port": 4294967292,
+ "type": 0
+ }
+ }
+ ],
+ "actions_len": 16,
+ "buffer_id": 4294967295,
+ "data": {
+ "Packet": {
+ "protocols": [
+ {
+ "ethernet": {
+ "dst": "f2:0b:a4:d0:3f:70",
+ "ethertype": 2048,
+ "src": "f2:0b:a4:7d:f8:ea"
+ }
+ },
+ {
+ "ipv4": {
+ "csum": 44939,
+ "dst": "10.0.0.2",
+ "flags": 0,
+ "header_length": 5,
+ "identification": 63514,
+ "offset": 0,
+ "option": null,
+ "proto": 1,
+ "src": "10.0.0.1",
+ "tos": 0,
+ "total_length": 84,
+ "ttl": 255,
+ "version": 4
+ }
+ },
+ {
+ "icmp": {
+ "code": 0,
+ "csum": 520,
+ "data": {
+ "echo": {
+ "data": "MdYCAAAAAACrjS0xAAAAABAREhMUFRYXGBkaGxwdHh8gISIjJCUmJygpKissLS4vAAAAAAAAAAA=",
+ "id": 63328,
+ "seq": 0
+ }
+ },
+ "type": 8
+ }
+ }
+ ]
+ }
+ },
+ "in_port": 4294967293
+ }
+}