backing up
[vsorcdistro/.git] / ryu / build / lib.linux-armv7l-2.7 / ryu / tests / switch / of13 / match / 13_TCP_SRC_IPv6.json
1 [
2     "match: 13_TCP_SRC (IPv6)",
3     {
4         "description":"ethernet/ipv6/tcp(src_port=11111)-->'tcp_src=11111,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":34525
16                                     }
17                                 },
18                                 {
19                                     "OXMTlv":{
20                                         "field":"ip_proto",
21                                         "value":6
22                                     }
23                                 },
24                                 {
25                                     "OXMTlv":{
26                                         "field":"tcp_src",
27                                         "value":11111
28                                     }
29                                 }
30                             ]
31                         }
32                     },
33                     "instructions":[
34                         {
35                             "OFPInstructionActions":{
36                                 "actions":[
37                                     {
38                                         "OFPActionOutput":{
39                                             "port":2
40                                         }
41                                     }
42                                 ],
43                                 "type":4
44                             }
45                         }
46                     ]
47                 }
48             }
49         ],
50         "tests":[
51             {
52                 "ingress":[
53                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34525)",
54                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
55                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
56                     "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'"
57                 ],
58                 "egress":[
59                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34525)",
60                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
61                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
62                     "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'"
63                 ]
64             }
65         ]
66     },
67     {
68         "description":"ethernet/ipv6/tcp(src_port=11111)-->'tcp_src=11111,actions=output:CONTROLLER'",
69         "prerequisite":[
70             {
71                 "OFPFlowMod":{
72                     "table_id":0,
73                     "match":{
74                         "OFPMatch":{
75                             "oxm_fields":[
76                                 {
77                                     "OXMTlv":{
78                                         "field":"eth_type",
79                                         "value":34525
80                                     }
81                                 },
82                                 {
83                                     "OXMTlv":{
84                                         "field":"ip_proto",
85                                         "value":6
86                                     }
87                                 },
88                                 {
89                                     "OXMTlv":{
90                                         "field":"tcp_src",
91                                         "value":11111
92                                     }
93                                 }
94                             ]
95                         }
96                     },
97                     "instructions":[
98                         {
99                             "OFPInstructionActions":{
100                                 "actions":[
101                                     {
102                                         "OFPActionOutput":{
103                                             "max_len":65535,
104                                             "port":4294967293
105                                         }
106                                     }
107                                 ],
108                                 "type":4
109                             }
110                         }
111                     ]
112                 }
113             }
114         ],
115         "tests":[
116             {
117                 "ingress":[
118                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34525)",
119                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
120                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
121                     "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'"
122                 ],
123                 "PACKET_IN":[
124                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34525)",
125                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
126                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
127                     "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'"
128                 ]
129             }
130         ]
131     },
132     {
133         "description":"ethernet/ipv6/tcp(src_port=12345)-->'tcp_src=11111,actions=output:2'",
134         "prerequisite":[
135             {
136                 "OFPFlowMod":{
137                     "table_id":0,
138                     "match":{
139                         "OFPMatch":{
140                             "oxm_fields":[
141                                 {
142                                     "OXMTlv":{
143                                         "field":"eth_type",
144                                         "value":34525
145                                     }
146                                 },
147                                 {
148                                     "OXMTlv":{
149                                         "field":"ip_proto",
150                                         "value":6
151                                     }
152                                 },
153                                 {
154                                     "OXMTlv":{
155                                         "field":"tcp_src",
156                                         "value":11111
157                                     }
158                                 }
159                             ]
160                         }
161                     },
162                     "instructions":[
163                         {
164                             "OFPInstructionActions":{
165                                 "actions":[
166                                     {
167                                         "OFPActionOutput":{
168                                             "port":2
169                                         }
170                                     }
171                                 ],
172                                 "type":4
173                             }
174                         }
175                     ]
176                 }
177             }
178         ],
179         "tests":[
180             {
181                 "ingress":[
182                     "ethernet(dst='ba:bb:bb:bb:bb:bb', src='aa:aa:aa:aa:aa:aa', ethertype=34525)",
183                     "ipv6(dst='b0::b0', flow_label=203, src='a0::a0', nxt=6, hop_limit=127, traffic_class=65)",
184                     "tcp(dst_port=6789, option=bytes(b'\\x01' * 4), src_port=12345)",
185                     "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'"
186                 ],
187                 "table-miss":[
188                     0
189                 ]
190             }
191         ]
192     },
193     {
194         "description":"ethernet/vlan/ipv6/tcp(src_port=11111)-->'tcp_src=11111,actions=output:2'",
195         "prerequisite":[
196             {
197                 "OFPFlowMod":{
198                     "table_id":0,
199                     "match":{
200                         "OFPMatch":{
201                             "oxm_fields":[
202                                 {
203                                     "OXMTlv":{
204                                         "field":"eth_type",
205                                         "value":34525
206                                     }
207                                 },
208                                 {
209                                     "OXMTlv":{
210                                         "field":"ip_proto",
211                                         "value":6
212                                     }
213                                 },
214                                 {
215                                     "OXMTlv":{
216                                         "field":"tcp_src",
217                                         "value":11111
218                                     }
219                                 }
220                             ]
221                         }
222                     },
223                     "instructions":[
224                         {
225                             "OFPInstructionActions":{
226                                 "actions":[
227                                     {
228                                         "OFPActionOutput":{
229                                             "port":2
230                                         }
231                                     }
232                                 ],
233                                 "type":4
234                             }
235                         }
236                     ]
237                 }
238             }
239         ],
240         "tests":[
241             {
242                 "ingress":[
243                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
244                     "vlan(pcp=3, cfi=0, vid=100, ethertype=34525)",
245                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
246                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
247                     "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'"
248                 ],
249                 "egress":[
250                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
251                     "vlan(pcp=3, cfi=0, vid=100, ethertype=34525)",
252                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
253                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
254                     "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'"
255                 ]
256             }
257         ]
258     },
259     {
260         "description":"ethernet/vlan/ipv6/tcp(src_port=11111)-->'tcp_src=11111,actions=output:CONTROLLER'",
261         "prerequisite":[
262             {
263                 "OFPFlowMod":{
264                     "table_id":0,
265                     "match":{
266                         "OFPMatch":{
267                             "oxm_fields":[
268                                 {
269                                     "OXMTlv":{
270                                         "field":"eth_type",
271                                         "value":34525
272                                     }
273                                 },
274                                 {
275                                     "OXMTlv":{
276                                         "field":"ip_proto",
277                                         "value":6
278                                     }
279                                 },
280                                 {
281                                     "OXMTlv":{
282                                         "field":"tcp_src",
283                                         "value":11111
284                                     }
285                                 }
286                             ]
287                         }
288                     },
289                     "instructions":[
290                         {
291                             "OFPInstructionActions":{
292                                 "actions":[
293                                     {
294                                         "OFPActionOutput":{
295                                             "max_len":65535,
296                                             "port":4294967293
297                                         }
298                                     }
299                                 ],
300                                 "type":4
301                             }
302                         }
303                     ]
304                 }
305             }
306         ],
307         "tests":[
308             {
309                 "ingress":[
310                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
311                     "vlan(pcp=3, cfi=0, vid=100, ethertype=34525)",
312                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
313                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
314                     "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'"
315                 ],
316                 "PACKET_IN":[
317                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
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             }
324         ]
325     },
326     {
327         "description":"ethernet/vlan/ipv6/tcp(src_port=12345)-->'tcp_src=11111,actions=output:2'",
328         "prerequisite":[
329             {
330                 "OFPFlowMod":{
331                     "table_id":0,
332                     "match":{
333                         "OFPMatch":{
334                             "oxm_fields":[
335                                 {
336                                     "OXMTlv":{
337                                         "field":"eth_type",
338                                         "value":34525
339                                     }
340                                 },
341                                 {
342                                     "OXMTlv":{
343                                         "field":"ip_proto",
344                                         "value":6
345                                     }
346                                 },
347                                 {
348                                     "OXMTlv":{
349                                         "field":"tcp_src",
350                                         "value":11111
351                                     }
352                                 }
353                             ]
354                         }
355                     },
356                     "instructions":[
357                         {
358                             "OFPInstructionActions":{
359                                 "actions":[
360                                     {
361                                         "OFPActionOutput":{
362                                             "port":2
363                                         }
364                                     }
365                                 ],
366                                 "type":4
367                             }
368                         }
369                     ]
370                 }
371             }
372         ],
373         "tests":[
374             {
375                 "ingress":[
376                     "ethernet(dst='ba:bb:bb:bb:bb:bb', src='aa:aa:aa:aa:aa:aa', ethertype=33024)",
377                     "vlan(pcp=5, cfi=0, vid=203, ethertype=34525)",
378                     "ipv6(dst='b0::b0', flow_label=203, src='a0::a0', nxt=6, hop_limit=127, traffic_class=65)",
379                     "tcp(dst_port=6789, option=bytes(b'\\x01' * 4), src_port=12345)",
380                     "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'"
381                 ],
382                 "table-miss":[
383                     0
384                 ]
385             }
386         ]
387     },
388     {
389         "description":"ethernet/mpls/ipv6/tcp(src_port=11111)-->'actions=pop_mpls:0x86dd,goto_table:1','table_id:1,tcp_src=11111,actions=output:2'",
390         "prerequisite":[
391             {
392                 "OFPFlowMod":{
393                     "table_id":0,
394                     "match":{
395                         "OFPMatch":{
396                             "oxm_fields":[
397                                 {
398                                     "OXMTlv":{
399                                         "field":"eth_type",
400                                         "value":34887
401                                     }
402                                 }
403                             ]
404                         }
405                     },
406                     "instructions":[
407                         {
408                             "OFPInstructionActions":{
409                                 "actions":[
410                                     {
411                                         "OFPActionPopMpls":{
412                                             "ethertype":34525
413                                         }
414                                     }
415                                 ],
416                                 "type":4
417                             }
418                         },
419                         {
420                             "OFPInstructionGotoTable":{
421                                 "table_id":1
422                             }
423                         }
424                     ]
425                 }
426             },
427             {
428                 "OFPFlowMod":{
429                     "table_id":1,
430                     "match":{
431                         "OFPMatch":{
432                             "oxm_fields":[
433                                 {
434                                     "OXMTlv":{
435                                         "field":"eth_type",
436                                         "value":34525
437                                     }
438                                 },
439                                 {
440                                     "OXMTlv":{
441                                         "field":"ip_proto",
442                                         "value":6
443                                     }
444                                 },
445                                 {
446                                     "OXMTlv":{
447                                         "field":"tcp_src",
448                                         "value":11111
449                                     }
450                                 }
451                             ]
452                         }
453                     },
454                     "instructions":[
455                         {
456                             "OFPInstructionActions":{
457                                 "actions":[
458                                     {
459                                         "OFPActionOutput":{
460                                             "port":2
461                                         }
462                                     }
463                                 ],
464                                 "type":4
465                             }
466                         }
467                     ]
468                 }
469             }
470         ],
471         "tests":[
472             {
473                 "ingress":[
474                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34887)",
475                     "mpls(bsb=1, label=100, exp=3, ttl=64)",
476                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
477                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
478                     "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'"
479                 ],
480                 "egress":[
481                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34525)",
482                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
483                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
484                     "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'"
485                 ]
486             }
487         ]
488     },
489     {
490         "description":"ethernet/mpls/ipv6/tcp(src_port=11111)-->'actions=pop_mpls:0x86dd,goto_table:1','table_id:1,tcp_src=11111,actions=output:CONTROLLER'",
491         "prerequisite":[
492             {
493                 "OFPFlowMod":{
494                     "table_id":0,
495                     "match":{
496                         "OFPMatch":{
497                             "oxm_fields":[
498                                 {
499                                     "OXMTlv":{
500                                         "field":"eth_type",
501                                         "value":34887
502                                     }
503                                 }
504                             ]
505                         }
506                     },
507                     "instructions":[
508                         {
509                             "OFPInstructionActions":{
510                                 "actions":[
511                                     {
512                                         "OFPActionPopMpls":{
513                                             "ethertype":34525
514                                         }
515                                     }
516                                 ],
517                                 "type":4
518                             }
519                         },
520                         {
521                             "OFPInstructionGotoTable":{
522                                 "table_id":1
523                             }
524                         }
525                     ]
526                 }
527             },
528             {
529                 "OFPFlowMod":{
530                     "table_id":1,
531                     "match":{
532                         "OFPMatch":{
533                             "oxm_fields":[
534                                 {
535                                     "OXMTlv":{
536                                         "field":"eth_type",
537                                         "value":34525
538                                     }
539                                 },
540                                 {
541                                     "OXMTlv":{
542                                         "field":"ip_proto",
543                                         "value":6
544                                     }
545                                 },
546                                 {
547                                     "OXMTlv":{
548                                         "field":"tcp_src",
549                                         "value":11111
550                                     }
551                                 }
552                             ]
553                         }
554                     },
555                     "instructions":[
556                         {
557                             "OFPInstructionActions":{
558                                 "actions":[
559                                     {
560                                         "OFPActionOutput":{
561                                             "max_len":65535,
562                                             "port":4294967293
563                                         }
564                                     }
565                                 ],
566                                 "type":4
567                             }
568                         }
569                     ]
570                 }
571             }
572         ],
573         "tests":[
574             {
575                 "ingress":[
576                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34887)",
577                     "mpls(bsb=1, label=100, exp=3, ttl=64)",
578                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
579                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
580                     "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'"
581                 ],
582                 "PACKET_IN":[
583                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34525)",
584                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
585                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
586                     "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'"
587                 ]
588             }
589         ]
590     },
591     {
592         "description":"ethernet/mpls/ipv6/tcp(src_port=12345)-->'actions=pop_mpls:0x86dd,goto_table:1','table_id:1,tcp_src=11111,actions=output:2'",
593         "prerequisite":[
594             {
595                 "OFPFlowMod":{
596                     "table_id":0,
597                     "match":{
598                         "OFPMatch":{
599                             "oxm_fields":[
600                                 {
601                                     "OXMTlv":{
602                                         "field":"eth_type",
603                                         "value":34887
604                                     }
605                                 }
606                             ]
607                         }
608                     },
609                     "instructions":[
610                         {
611                             "OFPInstructionActions":{
612                                 "actions":[
613                                     {
614                                         "OFPActionPopMpls":{
615                                             "ethertype":34525
616                                         }
617                                     }
618                                 ],
619                                 "type":4
620                             }
621                         },
622                         {
623                             "OFPInstructionGotoTable":{
624                                 "table_id":1
625                             }
626                         }
627                     ]
628                 }
629             },
630             {
631                 "OFPFlowMod":{
632                     "table_id":1,
633                     "match":{
634                         "OFPMatch":{
635                             "oxm_fields":[
636                                 {
637                                     "OXMTlv":{
638                                         "field":"eth_type",
639                                         "value":34525
640                                     }
641                                 },
642                                 {
643                                     "OXMTlv":{
644                                         "field":"ip_proto",
645                                         "value":6
646                                     }
647                                 },
648                                 {
649                                     "OXMTlv":{
650                                         "field":"tcp_src",
651                                         "value":11111
652                                     }
653                                 }
654                             ]
655                         }
656                     },
657                     "instructions":[
658                         {
659                             "OFPInstructionActions":{
660                                 "actions":[
661                                     {
662                                         "OFPActionOutput":{
663                                             "port":2
664                                         }
665                                     }
666                                 ],
667                                 "type":4
668                             }
669                         }
670                     ]
671                 }
672             }
673         ],
674         "tests":[
675             {
676                 "ingress":[
677                     "ethernet(dst='ba:bb:bb:bb:bb:bb', src='aa:aa:aa:aa:aa:aa', ethertype=34887)",
678                     "mpls(bsb=1, label=203, exp=5, ttl=127)",
679                     "ipv6(dst='b0::b0', flow_label=203, src='a0::a0', nxt=6, hop_limit=127, traffic_class=65)",
680                     "tcp(dst_port=6789, option=bytes(b'\\x01' * 4), src_port=12345)",
681                     "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'"
682                 ],
683                 "table-miss":[
684                     1
685                 ]
686             }
687         ]
688     },
689     {
690         "description":"ethernet/itag/ethernet/ipv6/tcp(src_port=11111)-->'actions=pop_pbb,goto_table:1','table_id:1,tcp_src=11111,actions=output:2'",
691         "prerequisite":[
692             {
693                 "OFPFlowMod":{
694                     "table_id":0,
695                     "match":{
696                         "OFPMatch":{
697                             "oxm_fields":[
698                                 {
699                                     "OXMTlv":{
700                                         "field":"eth_type",
701                                         "value":35047
702                                     }
703                                 }
704                             ]
705                         }
706                     },
707                     "instructions":[
708                         {
709                             "OFPInstructionActions":{
710                                 "actions":[
711                                     {
712                                         "OFPActionPopPbb":{}
713                                     }
714                                 ],
715                                 "type":4
716                             }
717                         },
718                         {
719                             "OFPInstructionGotoTable":{
720                                 "table_id":1
721                             }
722                         }
723                     ]
724                 }
725             },
726             {
727                 "OFPFlowMod":{
728                     "table_id":1,
729                     "match":{
730                         "OFPMatch":{
731                             "oxm_fields":[
732                                 {
733                                     "OXMTlv":{
734                                         "field":"eth_type",
735                                         "value":34525
736                                     }
737                                 },
738                                 {
739                                     "OXMTlv":{
740                                         "field":"ip_proto",
741                                         "value":6
742                                     }
743                                 },
744                                 {
745                                     "OXMTlv":{
746                                         "field":"tcp_src",
747                                         "value":11111
748                                     }
749                                 }
750                             ]
751                         }
752                     },
753                     "instructions":[
754                         {
755                             "OFPInstructionActions":{
756                                 "actions":[
757                                     {
758                                         "OFPActionOutput":{
759                                             "port":2
760                                         }
761                                     }
762                                 ],
763                                 "type":4
764                             }
765                         }
766                     ]
767                 }
768             }
769         ],
770         "tests":[
771             {
772                 "ingress":[
773                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=35047)",
774                     "itag(sid=100)",
775                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34525)",
776                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
777                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
778                     "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'"
779                 ],
780                 "egress":[
781                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34525)",
782                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
783                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
784                     "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'"
785                 ]
786             }
787         ]
788     },
789     {
790         "description":"ethernet/itag/ethernet/ipv6/tcp(src_port=11111)-->'actions=pop_pbb,goto_table:1','table_id:1,tcp_src=11111,actions=output:CONTROLLER'",
791         "prerequisite":[
792             {
793                 "OFPFlowMod":{
794                     "table_id":0,
795                     "match":{
796                         "OFPMatch":{
797                             "oxm_fields":[
798                                 {
799                                     "OXMTlv":{
800                                         "field":"eth_type",
801                                         "value":35047
802                                     }
803                                 }
804                             ]
805                         }
806                     },
807                     "instructions":[
808                         {
809                             "OFPInstructionActions":{
810                                 "actions":[
811                                     {
812                                         "OFPActionPopPbb":{}
813                                     }
814                                 ],
815                                 "type":4
816                             }
817                         },
818                         {
819                             "OFPInstructionGotoTable":{
820                                 "table_id":1
821                             }
822                         }
823                     ]
824                 }
825             },
826             {
827                 "OFPFlowMod":{
828                     "table_id":1,
829                     "match":{
830                         "OFPMatch":{
831                             "oxm_fields":[
832                                 {
833                                     "OXMTlv":{
834                                         "field":"eth_type",
835                                         "value":34525
836                                     }
837                                 },
838                                 {
839                                     "OXMTlv":{
840                                         "field":"ip_proto",
841                                         "value":6
842                                     }
843                                 },
844                                 {
845                                     "OXMTlv":{
846                                         "field":"tcp_src",
847                                         "value":11111
848                                     }
849                                 }
850                             ]
851                         }
852                     },
853                     "instructions":[
854                         {
855                             "OFPInstructionActions":{
856                                 "actions":[
857                                     {
858                                         "OFPActionOutput":{
859                                             "max_len":65535,
860                                             "port":4294967293
861                                         }
862                                     }
863                                 ],
864                                 "type":4
865                             }
866                         }
867                     ]
868                 }
869             }
870         ],
871         "tests":[
872             {
873                 "ingress":[
874                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=35047)",
875                     "itag(sid=100)",
876                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34525)",
877                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
878                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
879                     "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'"
880                 ],
881                 "PACKET_IN":[
882                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34525)",
883                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
884                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
885                     "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'"
886                 ]
887             }
888         ]
889     },
890     {
891         "description":"ethernet/itag/ethernet/ipv6/tcp(src_port=12345)-->'actions=pop_pbb,goto_table:1','table_id:1,tcp_src=11111,actions=output:2'",
892         "prerequisite":[
893             {
894                 "OFPFlowMod":{
895                     "table_id":0,
896                     "match":{
897                         "OFPMatch":{
898                             "oxm_fields":[
899                                 {
900                                     "OXMTlv":{
901                                         "field":"eth_type",
902                                         "value":35047
903                                     }
904                                 }
905                             ]
906                         }
907                     },
908                     "instructions":[
909                         {
910                             "OFPInstructionActions":{
911                                 "actions":[
912                                     {
913                                         "OFPActionPopPbb":{}
914                                     }
915                                 ],
916                                 "type":4
917                             }
918                         },
919                         {
920                             "OFPInstructionGotoTable":{
921                                 "table_id":1
922                             }
923                         }
924                     ]
925                 }
926             },
927             {
928                 "OFPFlowMod":{
929                     "table_id":1,
930                     "match":{
931                         "OFPMatch":{
932                             "oxm_fields":[
933                                 {
934                                     "OXMTlv":{
935                                         "field":"eth_type",
936                                         "value":34525
937                                     }
938                                 },
939                                 {
940                                     "OXMTlv":{
941                                         "field":"ip_proto",
942                                         "value":6
943                                     }
944                                 },
945                                 {
946                                     "OXMTlv":{
947                                         "field":"tcp_src",
948                                         "value":11111
949                                     }
950                                 }
951                             ]
952                         }
953                     },
954                     "instructions":[
955                         {
956                             "OFPInstructionActions":{
957                                 "actions":[
958                                     {
959                                         "OFPActionOutput":{
960                                             "port":2
961                                         }
962                                     }
963                                 ],
964                                 "type":4
965                             }
966                         }
967                     ]
968                 }
969             }
970         ],
971         "tests":[
972             {
973                 "ingress":[
974                     "ethernet(dst='ba:bb:bb:bb:bb:bb', src='aa:aa:aa:aa:aa:aa', ethertype=35047)",
975                     "itag(sid=203)",
976                     "ethernet(dst='ba:bb:bb:bb:bb:bb', src='aa:aa:aa:aa:aa:aa', ethertype=34525)",
977                     "ipv6(dst='b0::b0', flow_label=203, src='a0::a0', nxt=6, hop_limit=127, traffic_class=65)",
978                     "tcp(dst_port=6789, option=bytes(b'\\x01' * 4), src_port=12345)",
979                     "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'"
980                 ],
981                 "table-miss":[
982                     1
983                 ]
984             }
985         ]
986     }
987 ]