backing up
[vsorcdistro/.git] / ryu / build / lib.linux-armv7l-2.7 / ryu / tests / switch / of10 / match / 09_NW_DST.json
1 [
2     "match: 09_NW_DST",
3     {
4         "description": "ethernet/ipv4(dst='192.168.20.20')/tcp-->'nw_dst=192.168.20.20,actions=output:2'",
5         "prerequisite": [
6             {
7                 "OFPFlowMod": {
8                     "actions": [
9                         {
10                             "OFPActionOutput": {
11                                 "port": 2
12                             }
13                         }
14                     ],
15                     "command": 0,
16                     "cookie": 0,
17                     "match": {
18                         "OFPMatch": {
19                             "dl_type": 2048,
20                             "nw_dst": "192.168.20.20"
21                         }
22                     }
23                 }
24             }
25         ],
26         "tests": [
27             {
28                 "ingress": [
29                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=2048)",
30                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
31                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
32                     "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'"
33                 ],
34                 "egress": [
35                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=2048)",
36                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
37                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
38                     "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'"
39                 ]
40             }
41         ]
42     },
43     {
44         "description": "ethernet/ipv4(dst='192.168.20.20')/tcp-->'nw_dst=192.168.20.20,actions=output:CONTROLLER'",
45         "prerequisite": [
46             {
47                 "OFPFlowMod": {
48                     "actions": [
49                         {
50                             "OFPActionOutput": {
51                                 "port": 65533
52                             }
53                         }
54                     ],
55                     "command": 0,
56                     "cookie": 0,
57                     "match": {
58                         "OFPMatch": {
59                             "dl_type": 2048,
60                             "nw_dst": "192.168.20.20"
61                         }
62                     }
63                 }
64             }
65         ],
66         "tests": [
67             {
68                 "ingress": [
69                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=2048)",
70                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
71                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
72                     "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'"
73                 ],
74                 "PACKET_IN": [
75                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=2048)",
76                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
77                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
78                     "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'"
79                 ]
80             }
81         ]
82     },
83     {
84         "description": "ethernet/ipv4(dst='10.10.20.20')/tcp-->'nw_dst=192.168.20.20,actions=output:2'",
85         "prerequisite": [
86             {
87                 "OFPFlowMod": {
88                     "actions": [
89                         {
90                             "OFPActionOutput": {
91                                 "port": 2
92                             }
93                         }
94                     ],
95                     "command": 0,
96                     "cookie": 0,
97                     "match": {
98                         "OFPMatch": {
99                             "dl_type": 2048,
100                             "nw_dst": "192.168.20.20"
101                         }
102                     }
103                 }
104             }
105         ],
106         "tests": [
107             {
108                 "ingress": [
109                     "ethernet(dst='ba:bb:bb:bb:bb:bb', src='aa:aa:aa:aa:aa:aa', ethertype=2048)",
110                     "ipv4(tos=65, proto=6, src='10.10.10.10', dst='10.10.20.20', ttl=127)",
111                     "tcp(dst_port=6789, option=bytes(b'\\x01' * 4), src_port=12345)",
112                     "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'"
113                 ],
114                 "table-miss": [
115                     0
116                 ]
117             }
118         ]
119     },
120     {
121         "description": "ethernet/vlan/ipv4(dst='192.168.20.20')/tcp-->'nw_dst=192.168.20.20,actions=output:2'",
122         "prerequisite": [
123             {
124                 "OFPFlowMod": {
125                     "actions": [
126                         {
127                             "OFPActionOutput": {
128                                 "port": 2
129                             }
130                         }
131                     ],
132                     "command": 0,
133                     "cookie": 0,
134                     "match": {
135                         "OFPMatch": {
136                             "dl_type": 2048,
137                             "nw_dst": "192.168.20.20"
138                         }
139                     }
140                 }
141             }
142         ],
143         "tests": [
144             {
145                 "ingress": [
146                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
147                     "vlan(pcp=3, cfi=0, vid=100, ethertype=2048)",
148                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
149                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
150                     "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'"
151                 ],
152                 "egress": [
153                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
154                     "vlan(pcp=3, cfi=0, vid=100, ethertype=2048)",
155                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
156                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
157                     "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'"
158                 ]
159             }
160         ]
161     },
162     {
163         "description": "ethernet/vlan/ipv4(dst='192.168.20.20')/tcp-->'nw_dst=192.168.20.20,actions=output:CONTROLLER'",
164         "prerequisite": [
165             {
166                 "OFPFlowMod": {
167                     "actions": [
168                         {
169                             "OFPActionOutput": {
170                                 "port": 65533
171                             }
172                         }
173                     ],
174                     "command": 0,
175                     "cookie": 0,
176                     "match": {
177                         "OFPMatch": {
178                             "dl_type": 2048,
179                             "nw_dst": "192.168.20.20"
180                         }
181                     }
182                 }
183             }
184         ],
185         "tests": [
186             {
187                 "ingress": [
188                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
189                     "vlan(pcp=3, cfi=0, vid=100, ethertype=2048)",
190                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
191                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
192                     "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'"
193                 ],
194                 "PACKET_IN": [
195                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
196                     "vlan(pcp=3, cfi=0, vid=100, ethertype=2048)",
197                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
198                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
199                     "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'"
200                 ]
201             }
202         ]
203     },
204     {
205         "description": "ethernet/vlan/ipv4(dst='10.10.20.20')/tcp-->'nw_dst=192.168.20.20,actions=output:2'",
206         "prerequisite": [
207             {
208                 "OFPFlowMod": {
209                     "actions": [
210                         {
211                             "OFPActionOutput": {
212                                 "port": 2
213                             }
214                         }
215                     ],
216                     "command": 0,
217                     "cookie": 0,
218                     "match": {
219                         "OFPMatch": {
220                             "dl_type": 2048,
221                             "nw_dst": "192.168.20.20"
222                         }
223                     }
224                 }
225             }
226         ],
227         "tests": [
228             {
229                 "ingress": [
230                     "ethernet(dst='ba:bb:bb:bb:bb:bb', src='aa:aa:aa:aa:aa:aa', ethertype=33024)",
231                     "vlan(pcp=5, cfi=0, vid=203, ethertype=2048)",
232                     "ipv4(tos=65, proto=6, src='10.10.10.10', dst='10.10.20.20', ttl=127)",
233                     "tcp(dst_port=6789, option=bytes(b'\\x01' * 4), src_port=12345)",
234                     "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'"
235                 ],
236                 "table-miss": [
237                     0
238                 ]
239             }
240         ]
241     }
242 ]