summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIWAMOTO Toshihiro <iwamoto@valinux.co.jp>2015-08-11 11:32:09 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-08-11 13:17:15 +0900
commitd71d84fe0879df7208623ecdcb5e86cdb46c45f5 (patch)
tree01fabc9a1959aab0c9848f1983e7db5134bcd47f
parentea85625f63bb8e03ecdfcc03718056cdebce5d5d (diff)
test_parser: Add tests generated by packet_data_generator3
This includes tests for recently added nicira extensions. Signed-off-by: IWAMOTO Toshihiro <iwamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/tests/packet_data/of13/ovs-ofctl-of13-action_conjunction.packetbin0 -> 144 bytes
-rw-r--r--ryu/tests/packet_data/of13/ovs-ofctl-of13-action_learn.packetbin0 -> 256 bytes
-rw-r--r--ryu/tests/packet_data/of13/ovs-ofctl-of13-action_resubmit.packetbin0 -> 144 bytes
-rw-r--r--ryu/tests/packet_data/of13/ovs-ofctl-of13-match_conj.packetbin0 -> 96 bytes
-rw-r--r--ryu/tests/packet_data/of13/ovs-ofctl-of13-match_move_nx_register.packetbin0 -> 104 bytes
-rw-r--r--ryu/tests/packet_data/of13/ovs-ofctl-of13-match_pkt_mark.packetbin0 -> 96 bytes
-rw-r--r--ryu/tests/packet_data/of13/ovs-ofctl-of13-match_pkt_mark_masked.packetbin0 -> 96 bytes
-rw-r--r--ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-action_conjunction.packet.json101
-rw-r--r--ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-action_learn.packet.json191
-rw-r--r--ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-action_resubmit.packet.json100
-rw-r--r--ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-match_conj.packet.json61
-rw-r--r--ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-match_move_nx_register.packet.json61
-rw-r--r--ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-match_pkt_mark.packet.json61
-rw-r--r--ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-match_pkt_mark_masked.packet.json61
14 files changed, 636 insertions, 0 deletions
diff --git a/ryu/tests/packet_data/of13/ovs-ofctl-of13-action_conjunction.packet b/ryu/tests/packet_data/of13/ovs-ofctl-of13-action_conjunction.packet
new file mode 100644
index 00000000..40a91016
--- /dev/null
+++ b/ryu/tests/packet_data/of13/ovs-ofctl-of13-action_conjunction.packet
Binary files differ
diff --git a/ryu/tests/packet_data/of13/ovs-ofctl-of13-action_learn.packet b/ryu/tests/packet_data/of13/ovs-ofctl-of13-action_learn.packet
new file mode 100644
index 00000000..387e59ec
--- /dev/null
+++ b/ryu/tests/packet_data/of13/ovs-ofctl-of13-action_learn.packet
Binary files differ
diff --git a/ryu/tests/packet_data/of13/ovs-ofctl-of13-action_resubmit.packet b/ryu/tests/packet_data/of13/ovs-ofctl-of13-action_resubmit.packet
new file mode 100644
index 00000000..9e8560cf
--- /dev/null
+++ b/ryu/tests/packet_data/of13/ovs-ofctl-of13-action_resubmit.packet
Binary files differ
diff --git a/ryu/tests/packet_data/of13/ovs-ofctl-of13-match_conj.packet b/ryu/tests/packet_data/of13/ovs-ofctl-of13-match_conj.packet
new file mode 100644
index 00000000..74a1c0ef
--- /dev/null
+++ b/ryu/tests/packet_data/of13/ovs-ofctl-of13-match_conj.packet
Binary files differ
diff --git a/ryu/tests/packet_data/of13/ovs-ofctl-of13-match_move_nx_register.packet b/ryu/tests/packet_data/of13/ovs-ofctl-of13-match_move_nx_register.packet
new file mode 100644
index 00000000..536db74a
--- /dev/null
+++ b/ryu/tests/packet_data/of13/ovs-ofctl-of13-match_move_nx_register.packet
Binary files differ
diff --git a/ryu/tests/packet_data/of13/ovs-ofctl-of13-match_pkt_mark.packet b/ryu/tests/packet_data/of13/ovs-ofctl-of13-match_pkt_mark.packet
new file mode 100644
index 00000000..a9e4cb8c
--- /dev/null
+++ b/ryu/tests/packet_data/of13/ovs-ofctl-of13-match_pkt_mark.packet
Binary files differ
diff --git a/ryu/tests/packet_data/of13/ovs-ofctl-of13-match_pkt_mark_masked.packet b/ryu/tests/packet_data/of13/ovs-ofctl-of13-match_pkt_mark_masked.packet
new file mode 100644
index 00000000..99393128
--- /dev/null
+++ b/ryu/tests/packet_data/of13/ovs-ofctl-of13-match_pkt_mark_masked.packet
Binary files differ
diff --git a/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-action_conjunction.packet.json b/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-action_conjunction.packet.json
new file mode 100644
index 00000000..7f89c5ea
--- /dev/null
+++ b/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-action_conjunction.packet.json
@@ -0,0 +1,101 @@
+{
+ "OFPFlowMod": {
+ "buffer_id": 4294967295,
+ "command": 1,
+ "cookie": 1311768467463790320,
+ "cookie_mask": 18446744073709551615,
+ "flags": 0,
+ "hard_timeout": 0,
+ "idle_timeout": 0,
+ "instructions": [
+ {
+ "OFPInstructionActions": {
+ "actions": [
+ {
+ "NXActionConjunction": {
+ "clause": 0,
+ "experimenter": 8992,
+ "id": 11259375,
+ "len": 16,
+ "n_clauses": 2,
+ "subtype": 34,
+ "type": 65535
+ }
+ }
+ ],
+ "len": 24,
+ "type": 4
+ }
+ }
+ ],
+ "match": {
+ "OFPMatch": {
+ "length": 70,
+ "oxm_fields": [
+ {
+ "OXMTlv": {
+ "field": "in_port",
+ "mask": null,
+ "value": 43981
+ }
+ },
+ {
+ "OXMTlv": {
+ "field": "eth_dst",
+ "mask": null,
+ "value": "aa:bb:cc:99:88:77"
+ }
+ },
+ {
+ "OXMTlv": {
+ "field": "eth_type",
+ "mask": null,
+ "value": 2048
+ }
+ },
+ {
+ "OXMTlv": {
+ "field": "vlan_vid",
+ "mask": null,
+ "value": 5095
+ }
+ },
+ {
+ "OXMTlv": {
+ "field": "ipv4_dst",
+ "mask": null,
+ "value": "192.168.2.1"
+ }
+ },
+ {
+ "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
+ }
+ },
+ "out_group": 4294967295,
+ "out_port": 4294967295,
+ "priority": 32768,
+ "table_id": 2,
+ "xid": 2
+ }
+}
diff --git a/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-action_learn.packet.json b/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-action_learn.packet.json
new file mode 100644
index 00000000..aaad64d4
--- /dev/null
+++ b/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-action_learn.packet.json
@@ -0,0 +1,191 @@
+{
+ "OFPFlowMod": {
+ "buffer_id": 4294967295,
+ "command": 0,
+ "cookie": 0,
+ "cookie_mask": 0,
+ "flags": 0,
+ "hard_timeout": 0,
+ "idle_timeout": 0,
+ "instructions": [
+ {
+ "OFPInstructionActions": {
+ "actions": [
+ {
+ "OFPActionPopVlan": {
+ "len": 8,
+ "type": 18
+ }
+ },
+ {
+ "OFPActionSetField": {
+ "field": {
+ "OXMTlv": {
+ "field": "ipv4_dst",
+ "mask": null,
+ "value": "192.168.2.9"
+ }
+ }
+ }
+ },
+ {
+ "NXActionLearn": {
+ "cookie": 0,
+ "experimenter": 8992,
+ "fin_hard_timeout": 0,
+ "fin_idle_timeout": 0,
+ "flags": 0,
+ "hard_timeout": 300,
+ "idle_timeout": 0,
+ "len": 96,
+ "priority": 1,
+ "specs": [
+ {
+ "NXFlowSpecMatch": {
+ "dst": [
+ "vlan_vid",
+ 0
+ ],
+ "n_bits": 12,
+ "src": [
+ "vlan_vid",
+ 0
+ ]
+ }
+ },
+ {
+ "NXFlowSpecMatch": {
+ "dst": [
+ "eth_dst_nxm",
+ 0
+ ],
+ "n_bits": 48,
+ "src": [
+ "eth_src_nxm",
+ 0
+ ]
+ }
+ },
+ {
+ "NXFlowSpecLoad": {
+ "dst": [
+ "vlan_vid",
+ 0
+ ],
+ "n_bits": 12,
+ "src": 0
+ }
+ },
+ {
+ "NXFlowSpecLoad": {
+ "dst": [
+ "tunnel_id_nxm",
+ 0
+ ],
+ "n_bits": 64,
+ "src": [
+ "tunnel_id_nxm",
+ 0
+ ]
+ }
+ },
+ {
+ "NXFlowSpecOutput": {
+ "dst": "",
+ "n_bits": 32,
+ "src": [
+ "in_port",
+ 0
+ ]
+ }
+ }
+ ],
+ "subtype": 16,
+ "table_id": 99,
+ "type": 65535
+ }
+ }
+ ],
+ "len": 128,
+ "type": 4
+ }
+ },
+ {
+ "OFPInstructionGotoTable": {
+ "len": 8,
+ "table_id": 100,
+ "type": 1
+ }
+ }
+ ],
+ "match": {
+ "OFPMatch": {
+ "length": 70,
+ "oxm_fields": [
+ {
+ "OXMTlv": {
+ "field": "in_port",
+ "mask": null,
+ "value": 43981
+ }
+ },
+ {
+ "OXMTlv": {
+ "field": "eth_dst",
+ "mask": null,
+ "value": "aa:bb:cc:99:88:77"
+ }
+ },
+ {
+ "OXMTlv": {
+ "field": "eth_type",
+ "mask": null,
+ "value": 2048
+ }
+ },
+ {
+ "OXMTlv": {
+ "field": "vlan_vid",
+ "mask": null,
+ "value": 5095
+ }
+ },
+ {
+ "OXMTlv": {
+ "field": "ipv4_dst",
+ "mask": null,
+ "value": "192.168.2.1"
+ }
+ },
+ {
+ "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
+ }
+ },
+ "out_group": 4294967295,
+ "out_port": 4294967295,
+ "priority": 32768,
+ "table_id": 2,
+ "xid": 2
+ }
+}
diff --git a/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-action_resubmit.packet.json b/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-action_resubmit.packet.json
new file mode 100644
index 00000000..c0404958
--- /dev/null
+++ b/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-action_resubmit.packet.json
@@ -0,0 +1,100 @@
+{
+ "OFPFlowMod": {
+ "buffer_id": 4294967295,
+ "command": 0,
+ "cookie": 0,
+ "cookie_mask": 0,
+ "flags": 0,
+ "hard_timeout": 0,
+ "idle_timeout": 0,
+ "instructions": [
+ {
+ "OFPInstructionActions": {
+ "actions": [
+ {
+ "NXActionResubmitTable": {
+ "experimenter": 8992,
+ "in_port": 1234,
+ "len": 16,
+ "subtype": 14,
+ "table_id": 99,
+ "type": 65535
+ }
+ }
+ ],
+ "len": 24,
+ "type": 4
+ }
+ }
+ ],
+ "match": {
+ "OFPMatch": {
+ "length": 70,
+ "oxm_fields": [
+ {
+ "OXMTlv": {
+ "field": "in_port",
+ "mask": null,
+ "value": 43981
+ }
+ },
+ {
+ "OXMTlv": {
+ "field": "eth_dst",
+ "mask": null,
+ "value": "aa:bb:cc:99:88:77"
+ }
+ },
+ {
+ "OXMTlv": {
+ "field": "eth_type",
+ "mask": null,
+ "value": 2048
+ }
+ },
+ {
+ "OXMTlv": {
+ "field": "vlan_vid",
+ "mask": null,
+ "value": 5095
+ }
+ },
+ {
+ "OXMTlv": {
+ "field": "ipv4_dst",
+ "mask": null,
+ "value": "192.168.2.1"
+ }
+ },
+ {
+ "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
+ }
+ },
+ "out_group": 4294967295,
+ "out_port": 4294967295,
+ "priority": 32768,
+ "table_id": 3,
+ "xid": 2
+ }
+}
diff --git a/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-match_conj.packet.json b/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-match_conj.packet.json
new file mode 100644
index 00000000..2b500014
--- /dev/null
+++ b/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-match_conj.packet.json
@@ -0,0 +1,61 @@
+{
+ "OFPFlowMod": {
+ "buffer_id": 4294967295,
+ "command": 1,
+ "cookie": 1311768467463790320,
+ "cookie_mask": 18446744073709551615,
+ "flags": 0,
+ "hard_timeout": 0,
+ "idle_timeout": 0,
+ "instructions": [
+ {
+ "OFPInstructionActions": {
+ "actions": [
+ {
+ "OFPActionPopVlan": {
+ "len": 8,
+ "type": 18
+ }
+ }
+ ],
+ "len": 16,
+ "type": 4
+ }
+ },
+ {
+ "OFPInstructionGotoTable": {
+ "len": 8,
+ "table_id": 100,
+ "type": 1
+ }
+ }
+ ],
+ "match": {
+ "OFPMatch": {
+ "length": 18,
+ "oxm_fields": [
+ {
+ "OXMTlv": {
+ "field": "conj_id",
+ "mask": null,
+ "value": 11259375
+ }
+ },
+ {
+ "OXMTlv": {
+ "field": "vlan_vid",
+ "mask": null,
+ "value": 5330
+ }
+ }
+ ],
+ "type": 1
+ }
+ },
+ "out_group": 4294967295,
+ "out_port": 4294967295,
+ "priority": 32768,
+ "table_id": 3,
+ "xid": 2
+ }
+}
diff --git a/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-match_move_nx_register.packet.json b/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-match_move_nx_register.packet.json
new file mode 100644
index 00000000..5143a3d5
--- /dev/null
+++ b/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-match_move_nx_register.packet.json
@@ -0,0 +1,61 @@
+{
+ "OFPFlowMod": {
+ "buffer_id": 4294967295,
+ "command": 1,
+ "cookie": 1311768467463790320,
+ "cookie_mask": 18446744073709551615,
+ "flags": 0,
+ "hard_timeout": 0,
+ "idle_timeout": 0,
+ "instructions": [
+ {
+ "OFPInstructionActions": {
+ "actions": [
+ {
+ "NXActionRegMove": {
+ "dst_field": "reg1",
+ "dst_ofs": 0,
+ "experimenter": 8992,
+ "len": 24,
+ "n_bits": 6,
+ "src_field": "reg0",
+ "src_ofs": 10,
+ "subtype": 6,
+ "type": 65535
+ }
+ }
+ ],
+ "len": 32,
+ "type": 4
+ }
+ }
+ ],
+ "match": {
+ "OFPMatch": {
+ "length": 24,
+ "oxm_fields": [
+ {
+ "OXMTlv": {
+ "field": "reg0",
+ "mask": null,
+ "value": 4660
+ }
+ },
+ {
+ "OXMTlv": {
+ "field": "reg5",
+ "mask": 65535,
+ "value": 43981
+ }
+ }
+ ],
+ "type": 1
+ }
+ },
+ "out_group": 4294967295,
+ "out_port": 4294967295,
+ "priority": 32768,
+ "table_id": 3,
+ "xid": 2
+ }
+}
diff --git a/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-match_pkt_mark.packet.json b/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-match_pkt_mark.packet.json
new file mode 100644
index 00000000..1cba8c6f
--- /dev/null
+++ b/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-match_pkt_mark.packet.json
@@ -0,0 +1,61 @@
+{
+ "OFPFlowMod": {
+ "buffer_id": 4294967295,
+ "command": 1,
+ "cookie": 1311768467463790320,
+ "cookie_mask": 18446744073709551615,
+ "flags": 0,
+ "hard_timeout": 0,
+ "idle_timeout": 0,
+ "instructions": [
+ {
+ "OFPInstructionActions": {
+ "actions": [
+ {
+ "OFPActionPopVlan": {
+ "len": 8,
+ "type": 18
+ }
+ }
+ ],
+ "len": 16,
+ "type": 4
+ }
+ },
+ {
+ "OFPInstructionGotoTable": {
+ "len": 8,
+ "table_id": 100,
+ "type": 1
+ }
+ }
+ ],
+ "match": {
+ "OFPMatch": {
+ "length": 18,
+ "oxm_fields": [
+ {
+ "OXMTlv": {
+ "field": "vlan_vid",
+ "mask": null,
+ "value": 5330
+ }
+ },
+ {
+ "OXMTlv": {
+ "field": "pkt_mark",
+ "mask": null,
+ "value": 54321
+ }
+ }
+ ],
+ "type": 1
+ }
+ },
+ "out_group": 4294967295,
+ "out_port": 4294967295,
+ "priority": 32768,
+ "table_id": 3,
+ "xid": 2
+ }
+}
diff --git a/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-match_pkt_mark_masked.packet.json b/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-match_pkt_mark_masked.packet.json
new file mode 100644
index 00000000..89314867
--- /dev/null
+++ b/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-match_pkt_mark_masked.packet.json
@@ -0,0 +1,61 @@
+{
+ "OFPFlowMod": {
+ "buffer_id": 4294967295,
+ "command": 1,
+ "cookie": 1311768467463790320,
+ "cookie_mask": 18446744073709551615,
+ "flags": 0,
+ "hard_timeout": 0,
+ "idle_timeout": 0,
+ "instructions": [
+ {
+ "OFPInstructionActions": {
+ "actions": [
+ {
+ "OFPActionPopVlan": {
+ "len": 8,
+ "type": 18
+ }
+ }
+ ],
+ "len": 16,
+ "type": 4
+ }
+ },
+ {
+ "OFPInstructionGotoTable": {
+ "len": 8,
+ "table_id": 100,
+ "type": 1
+ }
+ }
+ ],
+ "match": {
+ "OFPMatch": {
+ "length": 22,
+ "oxm_fields": [
+ {
+ "OXMTlv": {
+ "field": "vlan_vid",
+ "mask": null,
+ "value": 5330
+ }
+ },
+ {
+ "OXMTlv": {
+ "field": "pkt_mark",
+ "mask": 65535,
+ "value": 54321
+ }
+ }
+ ],
+ "type": 1
+ }
+ },
+ "out_group": 4294967295,
+ "out_port": 4294967295,
+ "priority": 32768,
+ "table_id": 3,
+ "xid": 2
+ }
+}