backing up
[vsorcdistro/.git] / ryu / build / lib.linux-armv7l-2.7 / ryu / tests / switch / of13 / match / 03_ETH_DST_Mask.json
1 [
2     "match: 03_ETH_DST (Mask)",
3     {
4         "description":"ethernet(dst='22:22:22:22:22:22')/ipv4/tcp-->'eth_dst=22:22:22:22:22:00(mask=ff:ff:ff:ff:ff:00),actions=output:2'",
5         "prerequisite":[
6             {
7                 "OFPFlowMod":{
8                     "table_id":0,
9                     "match":{
10                         "OFPMatch":{
11                             "oxm_fields":[
12                                 {
13                                     "OXMTlv":{
14                                         "field":"eth_dst",
15                                         "mask":"ff:ff:ff:ff:ff:00",
16                                         "value":"22:22:22:22:22:00"
17                                     }
18                                 }
19                             ]
20                         }
21                     },
22                     "instructions":[
23                         {
24                             "OFPInstructionActions":{
25                                 "actions":[
26                                     {
27                                         "OFPActionOutput":{
28                                             "port":2
29                                         }
30                                     }
31                                 ],
32                                 "type":4
33                             }
34                         }
35                     ]
36                 }
37             }
38         ],
39         "tests":[
40             {
41                 "ingress":[
42                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=2048)",
43                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
44                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
45                     "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'"
46                 ],
47                 "egress":[
48                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=2048)",
49                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
50                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
51                     "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'"
52                 ]
53             }
54         ]
55     },
56     {
57         "description":"ethernet(dst='22:22:22:22:22:22')/ipv4/tcp-->'eth_dst=22:22:22:22:22:00(mask=ff:ff:ff:ff:ff:00),actions=output:CONTROLLER'",
58         "prerequisite":[
59             {
60                 "OFPFlowMod":{
61                     "table_id":0,
62                     "match":{
63                         "OFPMatch":{
64                             "oxm_fields":[
65                                 {
66                                     "OXMTlv":{
67                                         "field":"eth_dst",
68                                         "mask":"ff:ff:ff:ff:ff:00",
69                                         "value":"22:22:22:22:22:00"
70                                     }
71                                 }
72                             ]
73                         }
74                     },
75                     "instructions":[
76                         {
77                             "OFPInstructionActions":{
78                                 "actions":[
79                                     {
80                                         "OFPActionOutput":{
81                                             "max_len":65535,
82                                             "port":4294967293
83                                         }
84                                     }
85                                 ],
86                                 "type":4
87                             }
88                         }
89                     ]
90                 }
91             }
92         ],
93         "tests":[
94             {
95                 "ingress":[
96                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=2048)",
97                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
98                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
99                     "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'"
100                 ],
101                 "PACKET_IN":[
102                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=2048)",
103                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
104                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
105                     "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'"
106                 ]
107             }
108         ]
109     },
110     {
111         "description":"ethernet(dst='ba:bb:bb:bb:bb:bb')/ipv4/tcp-->'eth_dst=22:22:22:22:22:00(mask=ff:ff:ff:ff:ff:00),actions=output:2'",
112         "prerequisite":[
113             {
114                 "OFPFlowMod":{
115                     "table_id":0,
116                     "match":{
117                         "OFPMatch":{
118                             "oxm_fields":[
119                                 {
120                                     "OXMTlv":{
121                                         "field":"eth_dst",
122                                         "mask":"ff:ff:ff:ff:ff:00",
123                                         "value":"22:22:22:22:22:00"
124                                     }
125                                 }
126                             ]
127                         }
128                     },
129                     "instructions":[
130                         {
131                             "OFPInstructionActions":{
132                                 "actions":[
133                                     {
134                                         "OFPActionOutput":{
135                                             "port":2
136                                         }
137                                     }
138                                 ],
139                                 "type":4
140                             }
141                         }
142                     ]
143                 }
144             }
145         ],
146         "tests":[
147             {
148                 "ingress":[
149                     "ethernet(dst='ba:bb:bb:bb:bb:bb', src='aa:aa:aa:aa:aa:aa', ethertype=2048)",
150                     "ipv4(tos=65, proto=6, src='10.10.10.10', dst='10.10.20.20', ttl=127)",
151                     "tcp(dst_port=6789, option=bytes(b'\\x01' * 4), src_port=12345)",
152                     "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'"
153                 ],
154                 "table-miss":[
155                     0
156                 ]
157             }
158         ]
159     },
160     {
161         "description":"ethernet(dst='22:22:22:22:22:22')/ipv6/tcp-->'eth_dst=22:22:22:22:22:00(mask=ff:ff:ff:ff:ff:00),actions=output:2'",
162         "prerequisite":[
163             {
164                 "OFPFlowMod":{
165                     "table_id":0,
166                     "match":{
167                         "OFPMatch":{
168                             "oxm_fields":[
169                                 {
170                                     "OXMTlv":{
171                                         "field":"eth_dst",
172                                         "mask":"ff:ff:ff:ff:ff:00",
173                                         "value":"22:22:22:22:22:00"
174                                     }
175                                 }
176                             ]
177                         }
178                     },
179                     "instructions":[
180                         {
181                             "OFPInstructionActions":{
182                                 "actions":[
183                                     {
184                                         "OFPActionOutput":{
185                                             "port":2
186                                         }
187                                     }
188                                 ],
189                                 "type":4
190                             }
191                         }
192                     ]
193                 }
194             }
195         ],
196         "tests":[
197             {
198                 "ingress":[
199                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34525)",
200                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
201                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
202                     "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'"
203                 ],
204                 "egress":[
205                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34525)",
206                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
207                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
208                     "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'"
209                 ]
210             }
211         ]
212     },
213     {
214         "description":"ethernet(dst='22:22:22:22:22:22')/ipv6/tcp-->'eth_dst=22:22:22:22:22:00(mask=ff:ff:ff:ff:ff:00),actions=output:CONTROLLER'",
215         "prerequisite":[
216             {
217                 "OFPFlowMod":{
218                     "table_id":0,
219                     "match":{
220                         "OFPMatch":{
221                             "oxm_fields":[
222                                 {
223                                     "OXMTlv":{
224                                         "field":"eth_dst",
225                                         "mask":"ff:ff:ff:ff:ff:00",
226                                         "value":"22:22:22:22:22:00"
227                                     }
228                                 }
229                             ]
230                         }
231                     },
232                     "instructions":[
233                         {
234                             "OFPInstructionActions":{
235                                 "actions":[
236                                     {
237                                         "OFPActionOutput":{
238                                             "max_len":65535,
239                                             "port":4294967293
240                                         }
241                                     }
242                                 ],
243                                 "type":4
244                             }
245                         }
246                     ]
247                 }
248             }
249         ],
250         "tests":[
251             {
252                 "ingress":[
253                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34525)",
254                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
255                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
256                     "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'"
257                 ],
258                 "PACKET_IN":[
259                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34525)",
260                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
261                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
262                     "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'"
263                 ]
264             }
265         ]
266     },
267     {
268         "description":"ethernet(dst='ba:bb:bb:bb:bb:bb')/ipv6/tcp-->'eth_dst=22:22:22:22:22:00(mask=ff:ff:ff:ff:ff:00),actions=output:2'",
269         "prerequisite":[
270             {
271                 "OFPFlowMod":{
272                     "table_id":0,
273                     "match":{
274                         "OFPMatch":{
275                             "oxm_fields":[
276                                 {
277                                     "OXMTlv":{
278                                         "field":"eth_dst",
279                                         "mask":"ff:ff:ff:ff:ff:00",
280                                         "value":"22:22:22:22:22:00"
281                                     }
282                                 }
283                             ]
284                         }
285                     },
286                     "instructions":[
287                         {
288                             "OFPInstructionActions":{
289                                 "actions":[
290                                     {
291                                         "OFPActionOutput":{
292                                             "port":2
293                                         }
294                                     }
295                                 ],
296                                 "type":4
297                             }
298                         }
299                     ]
300                 }
301             }
302         ],
303         "tests":[
304             {
305                 "ingress":[
306                     "ethernet(dst='ba:bb:bb:bb:bb:bb', src='aa:aa:aa:aa:aa:aa', ethertype=34525)",
307                     "ipv6(dst='b0::b0', flow_label=203, src='a0::a0', nxt=6, hop_limit=127, traffic_class=65)",
308                     "tcp(dst_port=6789, option=bytes(b'\\x01' * 4), src_port=12345)",
309                     "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'"
310                 ],
311                 "table-miss":[
312                     0
313                 ]
314             }
315         ]
316     },
317     {
318         "description":"ethernet(dst='22:22:22:22:22:22')/arp-->'eth_dst=22:22:22:22:22:00(mask=ff:ff:ff:ff:ff:00),actions=output:2'",
319         "prerequisite":[
320             {
321                 "OFPFlowMod":{
322                     "table_id":0,
323                     "match":{
324                         "OFPMatch":{
325                             "oxm_fields":[
326                                 {
327                                     "OXMTlv":{
328                                         "field":"eth_dst",
329                                         "mask":"ff:ff:ff:ff:ff:00",
330                                         "value":"22:22:22:22:22:00"
331                                     }
332                                 }
333                             ]
334                         }
335                     },
336                     "instructions":[
337                         {
338                             "OFPInstructionActions":{
339                                 "actions":[
340                                     {
341                                         "OFPActionOutput":{
342                                             "port":2
343                                         }
344                                     }
345                                 ],
346                                 "type":4
347                             }
348                         }
349                     ]
350                 }
351             }
352         ],
353         "tests":[
354             {
355                 "ingress":[
356                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=2054)",
357                     "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')",
358                     "bytes(b'\\x00' * (60 - 42))"
359                 ],
360                 "egress":[
361                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=2054)",
362                     "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')",
363                     "bytes(b'\\x00' * (60 - 42))"
364                 ]
365             }
366         ]
367     },
368     {
369         "description":"ethernet(dst='22:22:22:22:22:22')/arp-->'eth_dst=22:22:22:22:22:00(mask=ff:ff:ff:ff:ff:00),actions=output:CONTROLLER'",
370         "prerequisite":[
371             {
372                 "OFPFlowMod":{
373                     "table_id":0,
374                     "match":{
375                         "OFPMatch":{
376                             "oxm_fields":[
377                                 {
378                                     "OXMTlv":{
379                                         "field":"eth_dst",
380                                         "mask":"ff:ff:ff:ff:ff:00",
381                                         "value":"22:22:22:22:22:00"
382                                     }
383                                 }
384                             ]
385                         }
386                     },
387                     "instructions":[
388                         {
389                             "OFPInstructionActions":{
390                                 "actions":[
391                                     {
392                                         "OFPActionOutput":{
393                                             "max_len":65535,
394                                             "port":4294967293
395                                         }
396                                     }
397                                 ],
398                                 "type":4
399                             }
400                         }
401                     ]
402                 }
403             }
404         ],
405         "tests":[
406             {
407                 "ingress":[
408                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=2054)",
409                     "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')",
410                     "bytes(b'\\x00' * (60 - 42))"
411                 ],
412                 "PACKET_IN":[
413                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=2054)",
414                     "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')",
415                     "bytes(b'\\x00' * (60 - 42))"
416                 ]
417             }
418         ]
419     },
420     {
421         "description":"ethernet(dst='ba:bb:bb:bb:bb:bb')/arp-->'eth_dst=22:22:22:22:22:00(mask=ff:ff:ff:ff:ff:00),actions=output:2'",
422         "prerequisite":[
423             {
424                 "OFPFlowMod":{
425                     "table_id":0,
426                     "match":{
427                         "OFPMatch":{
428                             "oxm_fields":[
429                                 {
430                                     "OXMTlv":{
431                                         "field":"eth_dst",
432                                         "mask":"ff:ff:ff:ff:ff:00",
433                                         "value":"22:22:22:22:22:00"
434                                     }
435                                 }
436                             ]
437                         }
438                     },
439                     "instructions":[
440                         {
441                             "OFPInstructionActions":{
442                                 "actions":[
443                                     {
444                                         "OFPActionOutput":{
445                                             "port":2
446                                         }
447                                     }
448                                 ],
449                                 "type":4
450                             }
451                         }
452                     ]
453                 }
454             }
455         ],
456         "tests":[
457             {
458                 "ingress":[
459                     "ethernet(dst='ba:bb:bb:bb:bb:bb', src='aa:aa:aa:aa:aa:aa', ethertype=2054)",
460                     "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')",
461                     "bytes(b'\\x00' * (60 - 42))"
462                 ],
463                 "table-miss":[
464                     0
465                 ]
466             }
467         ]
468     }
469 ]