summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ryu/tests/packet_data/of13/ovs-ofctl-of13-action_controller.packetbin0 -> 80 bytes
-rw-r--r--ryu/tests/packet_data/of13/ovs-ofctl-of13-action_fintimeout.packetbin0 -> 88 bytes
-rw-r--r--ryu/tests/packet_data/of13/ovs-ofctl-of13-action_note.packetbin0 -> 80 bytes
-rw-r--r--ryu/tests/packet_data_generator3/gen.py15
-rw-r--r--ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-action_controller.packet.json43
-rw-r--r--ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-action_fintimeout.packet.json57
-rw-r--r--ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-action_note.packet.json48
7 files changed, 163 insertions, 0 deletions
diff --git a/ryu/tests/packet_data/of13/ovs-ofctl-of13-action_controller.packet b/ryu/tests/packet_data/of13/ovs-ofctl-of13-action_controller.packet
new file mode 100644
index 00000000..8fba9040
--- /dev/null
+++ b/ryu/tests/packet_data/of13/ovs-ofctl-of13-action_controller.packet
Binary files differ
diff --git a/ryu/tests/packet_data/of13/ovs-ofctl-of13-action_fintimeout.packet b/ryu/tests/packet_data/of13/ovs-ofctl-of13-action_fintimeout.packet
new file mode 100644
index 00000000..78c3eab4
--- /dev/null
+++ b/ryu/tests/packet_data/of13/ovs-ofctl-of13-action_fintimeout.packet
Binary files differ
diff --git a/ryu/tests/packet_data/of13/ovs-ofctl-of13-action_note.packet b/ryu/tests/packet_data/of13/ovs-ofctl-of13-action_note.packet
new file mode 100644
index 00000000..9a1491c9
--- /dev/null
+++ b/ryu/tests/packet_data/of13/ovs-ofctl-of13-action_note.packet
Binary files differ
diff --git a/ryu/tests/packet_data_generator3/gen.py b/ryu/tests/packet_data_generator3/gen.py
index ddf772c0..cb1dedf0 100644
--- a/ryu/tests/packet_data_generator3/gen.py
+++ b/ryu/tests/packet_data_generator3/gen.py
@@ -130,6 +130,21 @@ MESSAGES = [
'importance=39032'] +
['dl_type=0x86dd'] +
['actions=ct(commit,nat(dst=2001:1::1-2001:1::ffff)'])},
+ {'name': 'action_note',
+ 'versions': [4],
+ 'cmd': 'add-flow',
+ 'args': (['priority=100'] +
+ ['actions=note:04.05.06.07.00.00'])},
+ {'name': 'action_controller',
+ 'versions': [4],
+ 'cmd': 'add-flow',
+ 'args': (['priority=100'] +
+ ['actions=controller(reason=packet_out,max_len=1024,id=1)'])},
+ {'name': 'action_fintimeout',
+ 'versions': [4],
+ 'cmd': 'add-flow',
+ 'args': (['priority=100,tcp'] +
+ ['actions=fin_timeout(idle_timeout=30,hard_timeout=60)'])},
]
buf = []
diff --git a/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-action_controller.packet.json b/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-action_controller.packet.json
new file mode 100644
index 00000000..95bc3f51
--- /dev/null
+++ b/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-action_controller.packet.json
@@ -0,0 +1,43 @@
+{
+ "OFPFlowMod": {
+ "buffer_id": 4294967295,
+ "command": 0,
+ "cookie": 0,
+ "cookie_mask": 0,
+ "flags": 0,
+ "hard_timeout": 0,
+ "idle_timeout": 0,
+ "instructions": [
+ {
+ "OFPInstructionActions": {
+ "actions": [
+ {
+ "NXActionController": {
+ "controller_id": 1,
+ "experimenter": 8992,
+ "len": 16,
+ "max_len": 1024,
+ "reason": 5,
+ "subtype": 20,
+ "type": 65535
+ }
+ }
+ ],
+ "len": 24,
+ "type": 4
+ }
+ }
+ ],
+ "match": {
+ "OFPMatch": {
+ "length": 4,
+ "oxm_fields": [],
+ "type": 1
+ }
+ },
+ "out_group": 4294967295,
+ "out_port": 4294967295,
+ "priority": 100,
+ "table_id": 0
+ }
+}
diff --git a/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-action_fintimeout.packet.json b/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-action_fintimeout.packet.json
new file mode 100644
index 00000000..c0e02de9
--- /dev/null
+++ b/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-action_fintimeout.packet.json
@@ -0,0 +1,57 @@
+{
+ "OFPFlowMod": {
+ "buffer_id": 4294967295,
+ "command": 0,
+ "cookie": 0,
+ "cookie_mask": 0,
+ "flags": 0,
+ "hard_timeout": 0,
+ "idle_timeout": 0,
+ "instructions": [
+ {
+ "OFPInstructionActions": {
+ "actions": [
+ {
+ "NXActionFinTimeout": {
+ "experimenter": 8992,
+ "fin_hard_timeout": 60,
+ "fin_idle_timeout": 30,
+ "len": 16,
+ "subtype": 19,
+ "type": 65535
+ }
+ }
+ ],
+ "len": 24,
+ "type": 4
+ }
+ }
+ ],
+ "match": {
+ "OFPMatch": {
+ "length": 15,
+ "oxm_fields": [
+ {
+ "OXMTlv": {
+ "field": "eth_type",
+ "mask": null,
+ "value": 2048
+ }
+ },
+ {
+ "OXMTlv": {
+ "field": "ip_proto",
+ "mask": null,
+ "value": 6
+ }
+ }
+ ],
+ "type": 1
+ }
+ },
+ "out_group": 4294967295,
+ "out_port": 4294967295,
+ "priority": 100,
+ "table_id": 0
+ }
+}
diff --git a/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-action_note.packet.json b/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-action_note.packet.json
new file mode 100644
index 00000000..330000da
--- /dev/null
+++ b/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-action_note.packet.json
@@ -0,0 +1,48 @@
+{
+ "OFPFlowMod": {
+ "buffer_id": 4294967295,
+ "command": 0,
+ "cookie": 0,
+ "cookie_mask": 0,
+ "flags": 0,
+ "hard_timeout": 0,
+ "idle_timeout": 0,
+ "instructions": [
+ {
+ "OFPInstructionActions": {
+ "actions": [
+ {
+ "NXActionNote": {
+ "experimenter": 8992,
+ "len": 16,
+ "note": [
+ 4,
+ 5,
+ 6,
+ 7,
+ 0,
+ 0
+ ],
+ "subtype": 8,
+ "type": 65535
+ }
+ }
+ ],
+ "len": 24,
+ "type": 4
+ }
+ }
+ ],
+ "match": {
+ "OFPMatch": {
+ "length": 4,
+ "oxm_fields": [],
+ "type": 1
+ }
+ },
+ "out_group": 4294967295,
+ "out_port": 4294967295,
+ "priority": 100,
+ "table_id": 0
+ }
+}