backing up
[vsorcdistro/.git] / ryu / build / lib.linux-armv7l-2.7 / ryu / tests / switch / of10 / action / 07_SET_NW_DST.json
diff --git a/ryu/build/lib.linux-armv7l-2.7/ryu/tests/switch/of10/action/07_SET_NW_DST.json b/ryu/build/lib.linux-armv7l-2.7/ryu/tests/switch/of10/action/07_SET_NW_DST.json
new file mode 100644 (file)
index 0000000..029b502
--- /dev/null
@@ -0,0 +1,95 @@
+[
+    "action: 07_SET_NW_DST",
+    {
+        "description": "ethernet/ipv4(dst='192.168.20.20')/tcp-->'nw_dst=192.168.20.20,actions=mod_nw_dst:10.10.20.20,output:2'",
+        "prerequisite": [
+            {
+                "OFPFlowMod": {
+                    "actions": [
+                        {
+                            "OFPActionSetNwDst": {
+                                "nw_addr": "10.10.20.20"
+                            }
+                        },
+                        {
+                            "OFPActionOutput": {
+                                "port": 2
+                            }
+                        }
+                    ],
+                    "command": 0,
+                    "cookie": 0,
+                    "match": {
+                        "OFPMatch": {
+                            "dl_type": 2048,
+                            "nw_dst": "192.168.20.20"
+                        }
+                    }
+                }
+            }
+        ],
+        "tests": [
+            {
+                "ingress": [
+                    "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=2048)",
+                    "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
+                    "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
+                    "b'\\x01\\x02\\x03\\x04\\x05\\x06\\x07\\x08\\t\\n\\x0b\\x0c\\r\\x0e\\x0f\\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17\\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f'"
+                ],
+                "egress": [
+                    "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=2048)",
+                    "ipv4(tos=32, proto=6, src='192.168.10.10', dst='10.10.20.20', ttl=64)",
+                    "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
+                    "b'\\x01\\x02\\x03\\x04\\x05\\x06\\x07\\x08\\t\\n\\x0b\\x0c\\r\\x0e\\x0f\\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17\\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f'"
+                ]
+            }
+        ]
+    },
+    {
+        "description": "ethernet/vlan/ipv4(dst='192.168.20.20')/tcp-->'nw_dst=192.168.20.20,actions=mod_nw_dst:10.10.20.20,output:2'",
+        "prerequisite": [
+            {
+                "OFPFlowMod": {
+                    "actions": [
+                        {
+                            "OFPActionSetNwDst": {
+                                "nw_addr": "10.10.20.20"
+                            }
+                        },
+                        {
+                            "OFPActionOutput": {
+                                "port": 2
+                            }
+                        }
+                    ],
+                    "command": 0,
+                    "cookie": 0,
+                    "match": {
+                        "OFPMatch": {
+                            "dl_type": 2048,
+                            "nw_dst": "192.168.20.20"
+                        }
+                    }
+                }
+            }
+        ],
+        "tests": [
+            {
+                "ingress": [
+                    "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
+                    "vlan(pcp=3, cfi=0, vid=100, ethertype=2048)",
+                    "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
+                    "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
+                    "b'\\x01\\x02\\x03\\x04\\x05\\x06\\x07\\x08\\t\\n\\x0b\\x0c\\r\\x0e\\x0f\\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17\\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f'"
+                ],
+                "egress": [
+                    "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
+                    "vlan(pcp=3, cfi=0, vid=100, ethertype=2048)",
+                    "ipv4(tos=32, proto=6, src='192.168.10.10', dst='10.10.20.20', ttl=64)",
+                    "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
+                    "b'\\x01\\x02\\x03\\x04\\x05\\x06\\x07\\x08\\t\\n\\x0b\\x0c\\r\\x0e\\x0f\\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17\\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f'"
+                ]
+            }
+        ]
+    }
+]