summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ryu/tests/packet_data/of13/ovs-ofctl-of13-action_ct_nat.packetbin0 -> 128 bytes
-rw-r--r--ryu/tests/packet_data/of13/ovs-ofctl-of13-action_ct_nat_v6.packetbin0 -> 144 bytes
-rw-r--r--ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-action_ct_nat.packet.json71
-rw-r--r--ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-action_ct_nat_v6.packet.json71
4 files changed, 142 insertions, 0 deletions
diff --git a/ryu/tests/packet_data/of13/ovs-ofctl-of13-action_ct_nat.packet b/ryu/tests/packet_data/of13/ovs-ofctl-of13-action_ct_nat.packet
new file mode 100644
index 00000000..2d5ec7a8
--- /dev/null
+++ b/ryu/tests/packet_data/of13/ovs-ofctl-of13-action_ct_nat.packet
Binary files differ
diff --git a/ryu/tests/packet_data/of13/ovs-ofctl-of13-action_ct_nat_v6.packet b/ryu/tests/packet_data/of13/ovs-ofctl-of13-action_ct_nat_v6.packet
new file mode 100644
index 00000000..a3b94113
--- /dev/null
+++ b/ryu/tests/packet_data/of13/ovs-ofctl-of13-action_ct_nat_v6.packet
Binary files differ
diff --git a/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-action_ct_nat.packet.json b/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-action_ct_nat.packet.json
new file mode 100644
index 00000000..6052ec1b
--- /dev/null
+++ b/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-action_ct_nat.packet.json
@@ -0,0 +1,71 @@
+{
+ "OFPFlowMod": {
+ "buffer_id": 4294967295,
+ "command": 0,
+ "cookie": 0,
+ "cookie_mask": 0,
+ "flags": 0,
+ "hard_timeout": 0,
+ "idle_timeout": 0,
+ "instructions": [
+ {
+ "OFPInstructionActions": {
+ "actions": [
+ {
+ "NXActionCT": {
+ "actions": [
+ {
+ "NXActionNAT": {
+ "experimenter": 8992,
+ "flags": 1,
+ "len": 32,
+ "range_ipv4_max": "10.1.13.255",
+ "range_ipv4_min": "10.1.12.0",
+ "range_ipv6_max": "",
+ "range_ipv6_min": "",
+ "range_proto_max": 1023,
+ "range_proto_min": 1,
+ "subtype": 36,
+ "type": 65535
+ }
+ }
+ ],
+ "alg": 0,
+ "experimenter": 8992,
+ "flags": 1,
+ "len": 56,
+ "recirc_table": 255,
+ "subtype": 35,
+ "type": 65535,
+ "zone_ofs_nbits": 0,
+ "zone_src": 0
+ }
+ }
+ ],
+ "len": 64,
+ "type": 4
+ }
+ }
+ ],
+ "match": {
+ "OFPMatch": {
+ "length": 10,
+ "oxm_fields": [
+ {
+ "OXMTlv": {
+ "field": "eth_type",
+ "mask": null,
+ "value": 2048
+ }
+ }
+ ],
+ "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-action_ct_nat_v6.packet.json b/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-action_ct_nat_v6.packet.json
new file mode 100644
index 00000000..c5e3d50a
--- /dev/null
+++ b/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-action_ct_nat_v6.packet.json
@@ -0,0 +1,71 @@
+{
+ "OFPFlowMod": {
+ "buffer_id": 4294967295,
+ "command": 0,
+ "cookie": 0,
+ "cookie_mask": 0,
+ "flags": 0,
+ "hard_timeout": 0,
+ "idle_timeout": 0,
+ "instructions": [
+ {
+ "OFPInstructionActions": {
+ "actions": [
+ {
+ "NXActionCT": {
+ "actions": [
+ {
+ "NXActionNAT": {
+ "experimenter": 8992,
+ "flags": 2,
+ "len": 48,
+ "range_ipv4_max": "",
+ "range_ipv4_min": "",
+ "range_ipv6_max": "2001:1::ffff",
+ "range_ipv6_min": "2001:1::1",
+ "range_proto_max": null,
+ "range_proto_min": null,
+ "subtype": 36,
+ "type": 65535
+ }
+ }
+ ],
+ "alg": 0,
+ "experimenter": 8992,
+ "flags": 1,
+ "len": 72,
+ "recirc_table": 255,
+ "subtype": 35,
+ "type": 65535,
+ "zone_ofs_nbits": 0,
+ "zone_src": 0
+ }
+ }
+ ],
+ "len": 80,
+ "type": 4
+ }
+ }
+ ],
+ "match": {
+ "OFPMatch": {
+ "length": 10,
+ "oxm_fields": [
+ {
+ "OXMTlv": {
+ "field": "eth_type",
+ "mask": null,
+ "value": 34525
+ }
+ }
+ ],
+ "type": 1
+ }
+ },
+ "out_group": 4294967295,
+ "out_port": 4294967295,
+ "priority": 32768,
+ "table_id": 3,
+ "xid": 2
+ }
+}