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