Signed-off-by: IWAMOTO Toshihiro <[email protected]>
---
.../of13/ovs-ofctl-of13-action_ct_nat.packet | Bin 0 -> 128 bytes
.../of13/ovs-ofctl-of13-action_ct_nat_v6.packet | Bin 0 -> 144 bytes
.../of13/ovs-ofctl-of13-action_ct_nat.packet.json | 71 +++++++++++++++++++++
.../ovs-ofctl-of13-action_ct_nat_v6.packet.json | 71 +++++++++++++++++++++
4 files changed, 142 insertions(+)
create mode 100644
ryu/tests/packet_data/of13/ovs-ofctl-of13-action_ct_nat.packet
create mode 100644
ryu/tests/packet_data/of13/ovs-ofctl-of13-action_ct_nat_v6.packet
create mode 100644
ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-action_ct_nat.packet.json
create mode 100644
ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-action_ct_nat_v6.packet.json
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
0000000000000000000000000000000000000000..2d5ec7a89cff2a473032faeadc249fcf18023d94
GIT binary patch
literal 128
zcmY+4K?;B{3<M`_4-(Wj6zUJWc=T!cd5jT37s6&|x2+gZ;(n@`4F4#RpoW&|T{q7A
ab?1Q58OT$4TJWBHizw_WGb)QCH3t_6HWqaN
literal 0
HcmV?d00001
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
0000000000000000000000000000000000000000..a3b941137e83091791704645b7175af9f1535d0b
GIT binary patch
literal 144
zcmZSKW0=6ez`z8=D1aHvYhd_~1i(U!3|tKiTug0up~_hp0zj<){~0_O7?c$llo=Qy
dGXKF8P}~44t^(vTG4Lob!sNlyjHvwo{{hR(7yJMK
literal 0
HcmV?d00001
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 0000000..6052ec1
--- /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 0000000..c5e3d50
--- /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
+ }
+}
--
2.1.4
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel