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