backing up
[vsorcdistro/.git] / ryu / build / lib.linux-armv7l-2.7 / ryu / tests / switch / of10 / action / 07_SET_NW_DST.json
1 [
2     "action: 07_SET_NW_DST",
3     {
4         "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'",
5         "prerequisite": [
6             {
7                 "OFPFlowMod": {
8                     "actions": [
9                         {
10                             "OFPActionSetNwDst": {
11                                 "nw_addr": "10.10.20.20"
12                             }
13                         },
14                         {
15                             "OFPActionOutput": {
16                                 "port": 2
17                             }
18                         }
19                     ],
20                     "command": 0,
21                     "cookie": 0,
22                     "match": {
23                         "OFPMatch": {
24                             "dl_type": 2048,
25                             "nw_dst": "192.168.20.20"
26                         }
27                     }
28                 }
29             }
30         ],
31         "tests": [
32             {
33                 "ingress": [
34                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=2048)",
35                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
36                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
37                     "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'"
38                 ],
39                 "egress": [
40                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=2048)",
41                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='10.10.20.20', ttl=64)",
42                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
43                     "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'"
44                 ]
45             }
46         ]
47     },
48     {
49         "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'",
50         "prerequisite": [
51             {
52                 "OFPFlowMod": {
53                     "actions": [
54                         {
55                             "OFPActionSetNwDst": {
56                                 "nw_addr": "10.10.20.20"
57                             }
58                         },
59                         {
60                             "OFPActionOutput": {
61                                 "port": 2
62                             }
63                         }
64                     ],
65                     "command": 0,
66                     "cookie": 0,
67                     "match": {
68                         "OFPMatch": {
69                             "dl_type": 2048,
70                             "nw_dst": "192.168.20.20"
71                         }
72                     }
73                 }
74             }
75         ],
76         "tests": [
77             {
78                 "ingress": [
79                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
80                     "vlan(pcp=3, cfi=0, vid=100, ethertype=2048)",
81                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
82                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
83                     "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'"
84                 ],
85                 "egress": [
86                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
87                     "vlan(pcp=3, cfi=0, vid=100, ethertype=2048)",
88                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='10.10.20.20', ttl=64)",
89                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
90                     "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'"
91                 ]
92             }
93         ]
94     }
95 ]