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