backing up
[vsorcdistro/.git] / ryu / build / lib.linux-armv7l-2.7 / ryu / tests / switch / of10 / match / 02_DL_DST.json
1 [
2     "match: 02_DL_DST",
3     {
4         "description": "ethernet(dst='22:22:22:22:22:22')/ipv4/tcp-->'dl_dst=22:22:22:22:22:22,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_dst": "22:22:22:22:22:22"
20                         }
21                     }
22                 }
23             }
24         ],
25         "tests": [
26             {
27                 "ingress": [
28                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=2048)",
29                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
30                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
31                     "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'"
32                 ],
33                 "egress": [
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             }
40         ]
41     },
42     {
43         "description": "ethernet(dst='22:22:22:22:22:22')/ipv4/tcp-->'dl_dst=22:22:22:22:22:22,actions=output:CONTROLLER'",
44         "prerequisite": [
45             {
46                 "OFPFlowMod": {
47                     "actions": [
48                         {
49                             "OFPActionOutput": {
50                                 "port": 65533
51                             }
52                         }
53                     ],
54                     "command": 0,
55                     "cookie": 0,
56                     "match": {
57                         "OFPMatch": {
58                             "dl_dst": "22:22:22:22:22:22"
59                         }
60                     }
61                 }
62             }
63         ],
64         "tests": [
65             {
66                 "ingress": [
67                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=2048)",
68                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
69                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
70                     "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'"
71                 ],
72                 "PACKET_IN": [
73                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=2048)",
74                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
75                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
76                     "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'"
77                 ]
78             }
79         ]
80     },
81     {
82         "description": "ethernet(dst='ba:bb:bb:bb:bb:bb')/ipv4/tcp-->'dl_dst=22:22:22:22:22:22,actions=output:2'",
83         "prerequisite": [
84             {
85                 "OFPFlowMod": {
86                     "actions": [
87                         {
88                             "OFPActionOutput": {
89                                 "port": 2
90                             }
91                         }
92                     ],
93                     "command": 0,
94                     "cookie": 0,
95                     "match": {
96                         "OFPMatch": {
97                             "dl_dst": "22:22:22:22:22:22"
98                         }
99                     }
100                 }
101             }
102         ],
103         "tests": [
104             {
105                 "ingress": [
106                     "ethernet(dst='ba:bb:bb:bb:bb:bb', src='aa:aa:aa:aa:aa:aa', ethertype=2048)",
107                     "ipv4(tos=65, proto=6, src='10.10.10.10', dst='10.10.20.20', ttl=127)",
108                     "tcp(dst_port=6789, option=bytes(b'\\x01' * 4), src_port=12345)",
109                     "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'"
110                 ],
111                 "table-miss": [
112                     0
113                 ]
114             }
115         ]
116     },
117     {
118         "description": "ethernet(dst='22:22:22:22:22:22')/ipv6/tcp-->'dl_dst=22:22:22:22:22:22,actions=output:2'",
119         "prerequisite": [
120             {
121                 "OFPFlowMod": {
122                     "actions": [
123                         {
124                             "OFPActionOutput": {
125                                 "port": 2
126                             }
127                         }
128                     ],
129                     "command": 0,
130                     "cookie": 0,
131                     "match": {
132                         "OFPMatch": {
133                             "dl_dst": "22:22:22:22:22:22"
134                         }
135                     }
136                 }
137             }
138         ],
139         "tests": [
140             {
141                 "ingress": [
142                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34525)",
143                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
144                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
145                     "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'"
146                 ],
147                 "egress": [
148                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34525)",
149                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
150                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
151                     "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'"
152                 ]
153             }
154         ]
155     },
156     {
157         "description": "ethernet(dst='22:22:22:22:22:22')/ipv6/tcp-->'dl_dst=22:22:22:22:22:22,actions=output:CONTROLLER'",
158         "prerequisite": [
159             {
160                 "OFPFlowMod": {
161                     "actions": [
162                         {
163                             "OFPActionOutput": {
164                                 "port": 65533
165                             }
166                         }
167                     ],
168                     "command": 0,
169                     "cookie": 0,
170                     "match": {
171                         "OFPMatch": {
172                             "dl_dst": "22:22:22:22:22:22"
173                         }
174                     }
175                 }
176             }
177         ],
178         "tests": [
179             {
180                 "ingress": [
181                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34525)",
182                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
183                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
184                     "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'"
185                 ],
186                 "PACKET_IN": [
187                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34525)",
188                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
189                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
190                     "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'"
191                 ]
192             }
193         ]
194     },
195     {
196         "description": "ethernet(dst='ba:bb:bb:bb:bb:bb')/ipv6/tcp-->'dl_dst=22:22:22:22:22:22,actions=output:2'",
197         "prerequisite": [
198             {
199                 "OFPFlowMod": {
200                     "actions": [
201                         {
202                             "OFPActionOutput": {
203                                 "port": 2
204                             }
205                         }
206                     ],
207                     "command": 0,
208                     "cookie": 0,
209                     "match": {
210                         "OFPMatch": {
211                             "dl_dst": "22:22:22:22:22:22"
212                         }
213                     }
214                 }
215             }
216         ],
217         "tests": [
218             {
219                 "ingress": [
220                     "ethernet(dst='ba:bb:bb:bb:bb:bb', src='aa:aa:aa:aa:aa:aa', ethertype=34525)",
221                     "ipv6(dst='b0::b0', flow_label=203, src='a0::a0', nxt=6, hop_limit=127, traffic_class=65)",
222                     "tcp(dst_port=6789, option=bytes(b'\\x01' * 4), src_port=12345)",
223                     "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'"
224                 ],
225                 "table-miss": [
226                     0
227                 ]
228             }
229         ]
230     },
231     {
232         "description": "ethernet(dst='22:22:22:22:22:22')/arp-->'dl_dst=22:22:22:22:22:22,actions=output:2'",
233         "prerequisite": [
234             {
235                 "OFPFlowMod": {
236                     "actions": [
237                         {
238                             "OFPActionOutput": {
239                                 "port": 2
240                             }
241                         }
242                     ],
243                     "command": 0,
244                     "cookie": 0,
245                     "match": {
246                         "OFPMatch": {
247                             "dl_dst": "22:22:22:22:22:22"
248                         }
249                     }
250                 }
251             }
252         ],
253         "tests": [
254             {
255                 "ingress": [
256                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=2054)",
257                     "arp(dst_ip='192.168.20.20',dst_mac='22:22:22:22:22:22', opcode=1, src_ip='192.168.10.10',src_mac='12:11:11:11:11:11')",
258                     "bytes(b'\\x00' * (60 - 42))"
259                 ],
260                 "egress": [
261                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=2054)",
262                     "arp(dst_ip='192.168.20.20',dst_mac='22:22:22:22:22:22', opcode=1, src_ip='192.168.10.10',src_mac='12:11:11:11:11:11')",
263                     "bytes(b'\\x00' * (60 - 42))"
264                 ]
265             }
266         ]
267     },
268     {
269         "description": "ethernet(dst='22:22:22:22:22:22')/arp-->'dl_dst=22:22:22:22:22:22,actions=output:CONTROLLER'",
270         "prerequisite": [
271             {
272                 "OFPFlowMod": {
273                     "actions": [
274                         {
275                             "OFPActionOutput": {
276                                 "port": 65533
277                             }
278                         }
279                     ],
280                     "command": 0,
281                     "cookie": 0,
282                     "match": {
283                         "OFPMatch": {
284                             "dl_dst": "22:22:22:22:22:22"
285                         }
286                     }
287                 }
288             }
289         ],
290         "tests": [
291             {
292                 "ingress": [
293                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=2054)",
294                     "arp(dst_ip='192.168.20.20',dst_mac='22:22:22:22:22:22', opcode=1, src_ip='192.168.10.10',src_mac='12:11:11:11:11:11')",
295                     "bytes(b'\\x00' * (60 - 42))"
296                 ],
297                 "PACKET_IN": [
298                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=2054)",
299                     "arp(dst_ip='192.168.20.20',dst_mac='22:22:22:22:22:22', opcode=1, src_ip='192.168.10.10',src_mac='12:11:11:11:11:11')",
300                     "bytes(b'\\x00' * (60 - 42))"
301                 ]
302             }
303         ]
304     },
305     {
306         "description": "ethernet(dst='ba:bb:bb:bb:bb:bb')/arp-->'dl_dst=22:22:22:22:22:22,actions=output:2'",
307         "prerequisite": [
308             {
309                 "OFPFlowMod": {
310                     "actions": [
311                         {
312                             "OFPActionOutput": {
313                                 "port": 2
314                             }
315                         }
316                     ],
317                     "command": 0,
318                     "cookie": 0,
319                     "match": {
320                         "OFPMatch": {
321                             "dl_dst": "22:22:22:22:22:22"
322                         }
323                     }
324                 }
325             }
326         ],
327         "tests": [
328             {
329                 "ingress": [
330                     "ethernet(dst='ba:bb:bb:bb:bb:bb', src='aa:aa:aa:aa:aa:aa', ethertype=2054)",
331                     "arp(dst_ip='10.10.20.20',dst_mac='ba:bb:bb:bb:bb:bb', opcode=2, src_ip='10.10.10.10',src_mac='aa:aa:aa:aa:aa:aa')",
332                     "bytes(b'\\x00' * (60 - 42))"
333                 ],
334                 "table-miss": [
335                     0
336                 ]
337             }
338         ]
339     }
340 ]