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