backing up
[vsorcdistro/.git] / ryu / build / lib.linux-armv7l-2.7 / ryu / tests / switch / of14 / match / 41_PBB_UCA.json
1 [
2     "match: 41_PBB_UCA",
3     {
4         "description":"ethernet/svlan/itag(uca=1)/ethernet/svlan/vlan/ipv4/tcp-->'pbb_uca=1,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_type",
15                                         "value":35047
16                                     }
17                                 },
18                                 {
19                                     "OXMTlv":{
20                                         "field":"pbb_uca",
21                                         "value":1
22                                     }
23                                 }
24                             ]
25                         }
26                     },
27                     "instructions":[
28                         {
29                             "OFPInstructionActions":{
30                                 "actions":[
31                                     {
32                                         "OFPActionOutput":{
33                                             "port":2
34                                         }
35                                     }
36                                 ],
37                                 "type":4
38                             }
39                         }
40                     ]
41                 }
42             }
43         ],
44         "tests":[
45             {
46                 "ingress":[
47                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34984)",
48                     "svlan(ethertype=35047, vid=10)",
49                     "itag(uca=1, sid=100)",
50                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34984)",
51                     "svlan(ethertype=33024, vid=10)",
52                     "vlan(pcp=3, cfi=0, vid=100, ethertype=2048)",
53                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
54                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
55                     "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'"
56                 ],
57                 "egress":[
58                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34984)",
59                     "svlan(ethertype=35047, vid=10)",
60                     "itag(uca=1, sid=100)",
61                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34984)",
62                     "svlan(ethertype=33024, vid=10)",
63                     "vlan(pcp=3, cfi=0, vid=100, ethertype=2048)",
64                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
65                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
66                     "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'"
67                 ]
68             }
69         ]
70     },
71     {
72         "description":"ethernet/svlan/itag(uca=1)/ethernet/svlan/vlan/ipv4/tcp-->'pbb_uca=1,actions=output:CONTROLLER'",
73         "prerequisite":[
74             {
75                 "OFPFlowMod":{
76                     "table_id":0,
77                     "match":{
78                         "OFPMatch":{
79                             "oxm_fields":[
80                                 {
81                                     "OXMTlv":{
82                                         "field":"eth_type",
83                                         "value":35047
84                                     }
85                                 },
86                                 {
87                                     "OXMTlv":{
88                                         "field":"pbb_uca",
89                                         "value":1
90                                     }
91                                 }
92                             ]
93                         }
94                     },
95                     "instructions":[
96                         {
97                             "OFPInstructionActions":{
98                                 "actions":[
99                                     {
100                                         "OFPActionOutput":{
101                                             "max_len":65535,
102                                             "port":4294967293
103                                         }
104                                     }
105                                 ],
106                                 "type":4
107                             }
108                         }
109                     ]
110                 }
111             }
112         ],
113         "tests":[
114             {
115                 "ingress":[
116                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34984)",
117                     "svlan(ethertype=35047, vid=10)",
118                     "itag(uca=1, sid=100)",
119                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34984)",
120                     "svlan(ethertype=33024, vid=10)",
121                     "vlan(pcp=3, cfi=0, vid=100, ethertype=2048)",
122                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
123                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
124                     "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'"
125                 ],
126                 "PACKET_IN":[
127                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34984)",
128                     "svlan(ethertype=35047, vid=10)",
129                     "itag(uca=1, sid=100)",
130                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34984)",
131                     "svlan(ethertype=33024, vid=10)",
132                     "vlan(pcp=3, cfi=0, vid=100, ethertype=2048)",
133                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
134                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
135                     "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'"
136                 ]
137             }
138         ]
139     },
140     {
141         "description":"ethernet/svlan/itag(uca=0)/ethernet/svlan/vlan/ipv4/tcp-->'pbb_uca=1,actions=output:2'",
142         "prerequisite":[
143             {
144                 "OFPFlowMod":{
145                     "table_id":0,
146                     "match":{
147                         "OFPMatch":{
148                             "oxm_fields":[
149                                 {
150                                     "OXMTlv":{
151                                         "field":"eth_type",
152                                         "value":35047
153                                     }
154                                 },
155                                 {
156                                     "OXMTlv":{
157                                         "field":"pbb_uca",
158                                         "value":1
159                                     }
160                                 }
161                             ]
162                         }
163                     },
164                     "instructions":[
165                         {
166                             "OFPInstructionActions":{
167                                 "actions":[
168                                     {
169                                         "OFPActionOutput":{
170                                             "port":2
171                                         }
172                                     }
173                                 ],
174                                 "type":4
175                             }
176                         }
177                     ]
178                 }
179             }
180         ],
181         "tests":[
182             {
183                 "ingress":[
184                     "ethernet(dst='ba:bb:bb:bb:bb:bb', src='aa:aa:aa:aa:aa:aa', ethertype=34984)",
185                     "svlan(ethertype=35047, vid=10)",
186                     "itag(uca=0, sid=100)",
187                     "ethernet(dst='ba:bb:bb:bb:bb:bb', src='aa:aa:aa:aa:aa:aa', ethertype=34984)",
188                     "svlan(ethertype=33024, vid=10)",
189                     "vlan(pcp=5, cfi=0, vid=203, ethertype=2048)",
190                     "ipv4(tos=65, proto=6, src='10.10.10.10', dst='10.10.20.20', ttl=127)",
191                     "tcp(dst_port=6789, option=bytes(b'\\x01' * 4), src_port=12345)",
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                 "table-miss":[
195                     0
196                 ]
197             }
198         ]
199     },
200     {
201         "description":"ethernet/svlan/itag(uca=1)/ethernet/svlan/vlan/ipv6/tcp-->'pbb_uca=1,actions=output:2'",
202         "prerequisite":[
203             {
204                 "OFPFlowMod":{
205                     "table_id":0,
206                     "match":{
207                         "OFPMatch":{
208                             "oxm_fields":[
209                                 {
210                                     "OXMTlv":{
211                                         "field":"eth_type",
212                                         "value":35047
213                                     }
214                                 },
215                                 {
216                                     "OXMTlv":{
217                                         "field":"pbb_uca",
218                                         "value":1
219                                     }
220                                 }
221                             ]
222                         }
223                     },
224                     "instructions":[
225                         {
226                             "OFPInstructionActions":{
227                                 "actions":[
228                                     {
229                                         "OFPActionOutput":{
230                                             "port":2
231                                         }
232                                     }
233                                 ],
234                                 "type":4
235                             }
236                         }
237                     ]
238                 }
239             }
240         ],
241         "tests":[
242             {
243                 "ingress":[
244                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34984)",
245                     "svlan(ethertype=35047, vid=10)",
246                     "itag(uca=1, sid=100)",
247                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34984)",
248                     "svlan(ethertype=33024, vid=10)",
249                     "vlan(pcp=3, cfi=0, vid=100, ethertype=34525)",
250                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
251                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
252                     "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'"
253                 ],
254                 "egress":[
255                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34984)",
256                     "svlan(ethertype=35047, vid=10)",
257                     "itag(uca=1, sid=100)",
258                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34984)",
259                     "svlan(ethertype=33024, vid=10)",
260                     "vlan(pcp=3, cfi=0, vid=100, ethertype=34525)",
261                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
262                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
263                     "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'"
264                 ]
265             }
266         ]
267     },
268     {
269         "description":"ethernet/svlan/itag(uca=1)/ethernet/svlan/vlan/ipv6/tcp-->'pbb_uca=1,actions=output:CONTROLLER'",
270         "prerequisite":[
271             {
272                 "OFPFlowMod":{
273                     "table_id":0,
274                     "match":{
275                         "OFPMatch":{
276                             "oxm_fields":[
277                                 {
278                                     "OXMTlv":{
279                                         "field":"eth_type",
280                                         "value":35047
281                                     }
282                                 },
283                                 {
284                                     "OXMTlv":{
285                                         "field":"pbb_uca",
286                                         "value":1
287                                     }
288                                 }
289                             ]
290                         }
291                     },
292                     "instructions":[
293                         {
294                             "OFPInstructionActions":{
295                                 "actions":[
296                                     {
297                                         "OFPActionOutput":{
298                                             "max_len":65535,
299                                             "port":4294967293
300                                         }
301                                     }
302                                 ],
303                                 "type":4
304                             }
305                         }
306                     ]
307                 }
308             }
309         ],
310         "tests":[
311             {
312                 "ingress":[
313                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34984)",
314                     "svlan(ethertype=35047, vid=10)",
315                     "itag(uca=1, sid=100)",
316                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34984)",
317                     "svlan(ethertype=33024, vid=10)",
318                     "vlan(pcp=3, cfi=0, vid=100, ethertype=34525)",
319                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
320                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
321                     "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'"
322                 ],
323                 "PACKET_IN":[
324                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34984)",
325                     "svlan(ethertype=35047, vid=10)",
326                     "itag(uca=1, sid=100)",
327                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34984)",
328                     "svlan(ethertype=33024, vid=10)",
329                     "vlan(pcp=3, cfi=0, vid=100, ethertype=34525)",
330                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
331                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
332                     "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'"
333                 ]
334             }
335         ]
336     },
337     {
338         "description":"ethernet/svlan/itag(uca=0)/ethernet/svlan/vlan/ipv6/tcp-->'pbb_uca=1,actions=output:2'",
339         "prerequisite":[
340             {
341                 "OFPFlowMod":{
342                     "table_id":0,
343                     "match":{
344                         "OFPMatch":{
345                             "oxm_fields":[
346                                 {
347                                     "OXMTlv":{
348                                         "field":"eth_type",
349                                         "value":35047
350                                     }
351                                 },
352                                 {
353                                     "OXMTlv":{
354                                         "field":"pbb_uca",
355                                         "value":1
356                                     }
357                                 }
358                             ]
359                         }
360                     },
361                     "instructions":[
362                         {
363                             "OFPInstructionActions":{
364                                 "actions":[
365                                     {
366                                         "OFPActionOutput":{
367                                             "port":2
368                                         }
369                                     }
370                                 ],
371                                 "type":4
372                             }
373                         }
374                     ]
375                 }
376             }
377         ],
378         "tests":[
379             {
380                 "ingress":[
381                     "ethernet(dst='ba:bb:bb:bb:bb:bb', src='aa:aa:aa:aa:aa:aa', ethertype=34984)",
382                     "svlan(ethertype=35047, vid=10)",
383                     "itag(uca=0, sid=100)",
384                     "ethernet(dst='ba:bb:bb:bb:bb:bb', src='aa:aa:aa:aa:aa:aa', ethertype=34984)",
385                     "svlan(ethertype=33024, vid=10)",
386                     "vlan(pcp=5, cfi=0, vid=203, ethertype=34525)",
387                     "ipv6(dst='b0::b0', flow_label=203, src='a0::a0', nxt=6, hop_limit=127, traffic_class=65)",
388                     "tcp(dst_port=6789, option=bytes(b'\\x01' * 4), src_port=12345)",
389                     "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'"
390                 ],
391                 "table-miss":[
392                     0
393                 ]
394             }
395         ]
396     },
397     {
398         "description":"ethernet/svlan/itag(uca=1)/ethernet/svlan/vlan/arp-->'pbb_uca=1,actions=output:2'",
399         "prerequisite":[
400             {
401                 "OFPFlowMod":{
402                     "table_id":0,
403                     "match":{
404                         "OFPMatch":{
405                             "oxm_fields":[
406                                 {
407                                     "OXMTlv":{
408                                         "field":"eth_type",
409                                         "value":35047
410                                     }
411                                 },
412                                 {
413                                     "OXMTlv":{
414                                         "field":"pbb_uca",
415                                         "value":1
416                                     }
417                                 }
418                             ]
419                         }
420                     },
421                     "instructions":[
422                         {
423                             "OFPInstructionActions":{
424                                 "actions":[
425                                     {
426                                         "OFPActionOutput":{
427                                             "port":2
428                                         }
429                                     }
430                                 ],
431                                 "type":4
432                             }
433                         }
434                     ]
435                 }
436             }
437         ],
438         "tests":[
439             {
440                 "ingress":[
441                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34984)",
442                     "svlan(ethertype=35047, vid=10)",
443                     "itag(uca=1, sid=100)",
444                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34984)",
445                     "svlan(ethertype=33024, vid=10)",
446                     "vlan(pcp=3, cfi=0, vid=100, ethertype=2054)",
447                     "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')",
448                     "bytes(b'\\x00' * 30)"
449                 ],
450                 "egress":[
451                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34984)",
452                     "svlan(ethertype=35047, vid=10)",
453                     "itag(uca=1, sid=100)",
454                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34984)",
455                     "svlan(ethertype=33024, vid=10)",
456                     "vlan(pcp=3, cfi=0, vid=100, ethertype=2054)",
457                     "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')",
458                     "bytes(b'\\x00' * 30)"
459                 ]
460             }
461         ]
462     },
463     {
464         "description":"ethernet/svlan/itag(uca=1)/ethernet/svlan/vlan/arp-->'pbb_uca=1,actions=output:CONTROLLER'",
465         "prerequisite":[
466             {
467                 "OFPFlowMod":{
468                     "table_id":0,
469                     "match":{
470                         "OFPMatch":{
471                             "oxm_fields":[
472                                 {
473                                     "OXMTlv":{
474                                         "field":"eth_type",
475                                         "value":35047
476                                     }
477                                 },
478                                 {
479                                     "OXMTlv":{
480                                         "field":"pbb_uca",
481                                         "value":1
482                                     }
483                                 }
484                             ]
485                         }
486                     },
487                     "instructions":[
488                         {
489                             "OFPInstructionActions":{
490                                 "actions":[
491                                     {
492                                         "OFPActionOutput":{
493                                             "max_len":65535,
494                                             "port":4294967293
495                                         }
496                                     }
497                                 ],
498                                 "type":4
499                             }
500                         }
501                     ]
502                 }
503             }
504         ],
505         "tests":[
506             {
507                 "ingress":[
508                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34984)",
509                     "svlan(ethertype=35047, vid=10)",
510                     "itag(uca=1, sid=100)",
511                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34984)",
512                     "svlan(ethertype=33024, vid=10)",
513                     "vlan(pcp=3, cfi=0, vid=100, ethertype=2054)",
514                     "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')",
515                     "bytes(b'\\x00' * 30)"
516                 ],
517                 "PACKET_IN":[
518                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34984)",
519                     "svlan(ethertype=35047, vid=10)",
520                     "itag(uca=1, sid=100)",
521                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34984)",
522                     "svlan(ethertype=33024, vid=10)",
523                     "vlan(pcp=3, cfi=0, vid=100, ethertype=2054)",
524                     "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')",
525                     "bytes(b'\\x00' * 30)"
526                 ]
527             }
528         ]
529     },
530     {
531         "description":"ethernet/svlan/itag(uca=0)/ethernet/svlan/vlan/arp-->'pbb_uca=1,actions=output:2'",
532         "prerequisite":[
533             {
534                 "OFPFlowMod":{
535                     "table_id":0,
536                     "match":{
537                         "OFPMatch":{
538                             "oxm_fields":[
539                                 {
540                                     "OXMTlv":{
541                                         "field":"eth_type",
542                                         "value":35047
543                                     }
544                                 },
545                                 {
546                                     "OXMTlv":{
547                                         "field":"pbb_uca",
548                                         "value":1
549                                     }
550                                 }
551                             ]
552                         }
553                     },
554                     "instructions":[
555                         {
556                             "OFPInstructionActions":{
557                                 "actions":[
558                                     {
559                                         "OFPActionOutput":{
560                                             "port":2
561                                         }
562                                     }
563                                 ],
564                                 "type":4
565                             }
566                         }
567                     ]
568                 }
569             }
570         ],
571         "tests":[
572             {
573                 "ingress":[
574                     "ethernet(dst='ba:bb:bb:bb:bb:bb', src='aa:aa:aa:aa:aa:aa', ethertype=34984)",
575                     "svlan(ethertype=35047, vid=10)",
576                     "itag(uca=0, sid=100)",
577                     "ethernet(dst='ba:bb:bb:bb:bb:bb', src='aa:aa:aa:aa:aa:aa', ethertype=34984)",
578                     "svlan(ethertype=33024, vid=10)",
579                     "vlan(pcp=5, cfi=0, vid=203, ethertype=2054)",
580                     "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')",
581                     "bytes(b'\\x00' * 30)"
582                 ],
583                 "table-miss":[
584                     0
585                 ]
586             }
587         ]
588     }
589 ]