backing up
[vsorcdistro/.git] / ryu / build / lib.linux-armv7l-2.7 / ryu / tests / switch / of14 / match / 07_VLAN_PCP.json
1 [
2     "match: 07_VLAN_PCP",
3     {
4         "description":"ethernet/vlan(pcp=3)/ipv4/tcp-->'vlan_pcp=3,actions=output:2'",
5         "prerequisite":[
6             {
7                 "OFPFlowMod":{
8                     "table_id":0,
9                     "match":{
10                         "OFPMatch":{
11                             "oxm_fields":[
12                                 {
13                                     "OXMTlv":{
14                                         "field":"vlan_vid",
15                                         "mask":null,
16                                         "value":4196
17                                     }
18                                 },
19                                 {
20                                     "OXMTlv":{
21                                         "field":"vlan_pcp",
22                                         "value":3
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=33024)",
49                     "vlan(pcp=3, cfi=0, vid=100, ethertype=2048)",
50                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
51                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
52                     "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'"
53                 ],
54                 "egress":[
55                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
56                     "vlan(pcp=3, cfi=0, vid=100, ethertype=2048)",
57                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
58                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
59                     "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'"
60                 ]
61             }
62         ]
63     },
64     {
65         "description":"ethernet/vlan(pcp=3)/ipv4/tcp-->'vlan_pcp=3,actions=output:CONTROLLER'",
66         "prerequisite":[
67             {
68                 "OFPFlowMod":{
69                     "table_id":0,
70                     "match":{
71                         "OFPMatch":{
72                             "oxm_fields":[
73                                 {
74                                     "OXMTlv":{
75                                         "field":"vlan_vid",
76                                         "mask":null,
77                                         "value":4196
78                                     }
79                                 },
80                                 {
81                                     "OXMTlv":{
82                                         "field":"vlan_pcp",
83                                         "value":3
84                                     }
85                                 }
86                             ]
87                         }
88                     },
89                     "instructions":[
90                         {
91                             "OFPInstructionActions":{
92                                 "actions":[
93                                     {
94                                         "OFPActionOutput":{
95                                             "max_len":65535,
96                                             "port":4294967293
97                                         }
98                                     }
99                                 ],
100                                 "type":4
101                             }
102                         }
103                     ]
104                 }
105             }
106         ],
107         "tests":[
108             {
109                 "ingress":[
110                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
111                     "vlan(pcp=3, cfi=0, vid=100, ethertype=2048)",
112                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
113                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
114                     "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'"
115                 ],
116                 "PACKET_IN":[
117                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
118                     "vlan(pcp=3, cfi=0, vid=100, ethertype=2048)",
119                     "ipv4(tos=32, proto=6, src='192.168.10.10', dst='192.168.20.20', ttl=64)",
120                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
121                     "b'\\x01\\x02\\x03\\x04\\x05\\x06\\x07\\x08\\t\\n\\x0b\\x0c\\r\\x0e\\x0f\\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17\\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f'"
122                 ]
123             }
124         ]
125     },
126     {
127         "description":"ethernet/vlan(pcp=5)/ipv4/tcp-->'vlan_pcp=3,actions=output:2'",
128         "prerequisite":[
129             {
130                 "OFPFlowMod":{
131                     "table_id":0,
132                     "match":{
133                         "OFPMatch":{
134                             "oxm_fields":[
135                                 {
136                                     "OXMTlv":{
137                                         "field":"vlan_vid",
138                                         "mask":null,
139                                         "value":4196
140                                     }
141                                 },
142                                 {
143                                     "OXMTlv":{
144                                         "field":"vlan_pcp",
145                                         "value":3
146                                     }
147                                 }
148                             ]
149                         }
150                     },
151                     "instructions":[
152                         {
153                             "OFPInstructionActions":{
154                                 "actions":[
155                                     {
156                                         "OFPActionOutput":{
157                                             "port":2
158                                         }
159                                     }
160                                 ],
161                                 "type":4
162                             }
163                         }
164                     ]
165                 }
166             }
167         ],
168         "tests":[
169             {
170                 "ingress":[
171                     "ethernet(dst='ba:bb:bb:bb:bb:bb', src='aa:aa:aa:aa:aa:aa', ethertype=33024)",
172                     "vlan(pcp=5, cfi=0, vid=203, ethertype=2048)",
173                     "ipv4(tos=65, proto=6, src='10.10.10.10', dst='10.10.20.20', ttl=127)",
174                     "tcp(dst_port=6789, option=bytes(b'\\x01' * 4), src_port=12345)",
175                     "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'"
176                 ],
177                 "table-miss":[
178                     0
179                 ]
180             }
181         ]
182     },
183     {
184         "description":"ethernet/vlan(pcp=3)/ipv6/tcp-->'vlan_pcp=3,actions=output:2'",
185         "prerequisite":[
186             {
187                 "OFPFlowMod":{
188                     "table_id":0,
189                     "match":{
190                         "OFPMatch":{
191                             "oxm_fields":[
192                                 {
193                                     "OXMTlv":{
194                                         "field":"vlan_vid",
195                                         "mask":null,
196                                         "value":4196
197                                     }
198                                 },
199                                 {
200                                     "OXMTlv":{
201                                         "field":"vlan_pcp",
202                                         "value":3
203                                     }
204                                 }
205                             ]
206                         }
207                     },
208                     "instructions":[
209                         {
210                             "OFPInstructionActions":{
211                                 "actions":[
212                                     {
213                                         "OFPActionOutput":{
214                                             "port":2
215                                         }
216                                     }
217                                 ],
218                                 "type":4
219                             }
220                         }
221                     ]
222                 }
223             }
224         ],
225         "tests":[
226             {
227                 "ingress":[
228                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
229                     "vlan(pcp=3, cfi=0, vid=100, ethertype=34525)",
230                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
231                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
232                     "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'"
233                 ],
234                 "egress":[
235                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
236                     "vlan(pcp=3, cfi=0, vid=100, ethertype=34525)",
237                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
238                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
239                     "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'"
240                 ]
241             }
242         ]
243     },
244     {
245         "description":"ethernet/vlan(pcp=3)/ipv6/tcp-->'vlan_pcp=3,actions=output:CONTROLLER'",
246         "prerequisite":[
247             {
248                 "OFPFlowMod":{
249                     "table_id":0,
250                     "match":{
251                         "OFPMatch":{
252                             "oxm_fields":[
253                                 {
254                                     "OXMTlv":{
255                                         "field":"vlan_vid",
256                                         "mask":null,
257                                         "value":4196
258                                     }
259                                 },
260                                 {
261                                     "OXMTlv":{
262                                         "field":"vlan_pcp",
263                                         "value":3
264                                     }
265                                 }
266                             ]
267                         }
268                     },
269                     "instructions":[
270                         {
271                             "OFPInstructionActions":{
272                                 "actions":[
273                                     {
274                                         "OFPActionOutput":{
275                                             "max_len":65535,
276                                             "port":4294967293
277                                         }
278                                     }
279                                 ],
280                                 "type":4
281                             }
282                         }
283                     ]
284                 }
285             }
286         ],
287         "tests":[
288             {
289                 "ingress":[
290                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
291                     "vlan(pcp=3, cfi=0, vid=100, ethertype=34525)",
292                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
293                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
294                     "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'"
295                 ],
296                 "PACKET_IN":[
297                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
298                     "vlan(pcp=3, cfi=0, vid=100, ethertype=34525)",
299                     "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
300                     "tcp(dst_port=2222, option=bytes(b'\\x00' * 4), src_port=11111)",
301                     "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'"
302                 ]
303             }
304         ]
305     },
306     {
307         "description":"ethernet/vlan(pcp=5)/ipv6/tcp-->'vlan_pcp=3,actions=output:2'",
308         "prerequisite":[
309             {
310                 "OFPFlowMod":{
311                     "table_id":0,
312                     "match":{
313                         "OFPMatch":{
314                             "oxm_fields":[
315                                 {
316                                     "OXMTlv":{
317                                         "field":"vlan_vid",
318                                         "mask":null,
319                                         "value":4196
320                                     }
321                                 },
322                                 {
323                                     "OXMTlv":{
324                                         "field":"vlan_pcp",
325                                         "value":3
326                                     }
327                                 }
328                             ]
329                         }
330                     },
331                     "instructions":[
332                         {
333                             "OFPInstructionActions":{
334                                 "actions":[
335                                     {
336                                         "OFPActionOutput":{
337                                             "port":2
338                                         }
339                                     }
340                                 ],
341                                 "type":4
342                             }
343                         }
344                     ]
345                 }
346             }
347         ],
348         "tests":[
349             {
350                 "ingress":[
351                     "ethernet(dst='ba:bb:bb:bb:bb:bb', src='aa:aa:aa:aa:aa:aa', ethertype=33024)",
352                     "vlan(pcp=5, cfi=0, vid=203, ethertype=34525)",
353                     "ipv6(dst='b0::b0', flow_label=203, src='a0::a0', nxt=6, hop_limit=127, traffic_class=65)",
354                     "tcp(dst_port=6789, option=bytes(b'\\x01' * 4), src_port=12345)",
355                     "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'"
356                 ],
357                 "table-miss":[
358                     0
359                 ]
360             }
361         ]
362     },
363     {
364         "description":"ethernet/vlan(pcp=3)/arp-->'vlan_pcp=3,actions=output:2'",
365         "prerequisite":[
366             {
367                 "OFPFlowMod":{
368                     "table_id":0,
369                     "match":{
370                         "OFPMatch":{
371                             "oxm_fields":[
372                                 {
373                                     "OXMTlv":{
374                                         "field":"vlan_vid",
375                                         "mask":null,
376                                         "value":4196
377                                     }
378                                 },
379                                 {
380                                     "OXMTlv":{
381                                         "field":"vlan_pcp",
382                                         "value":3
383                                     }
384                                 }
385                             ]
386                         }
387                     },
388                     "instructions":[
389                         {
390                             "OFPInstructionActions":{
391                                 "actions":[
392                                     {
393                                         "OFPActionOutput":{
394                                             "port":2
395                                         }
396                                     }
397                                 ],
398                                 "type":4
399                             }
400                         }
401                     ]
402                 }
403             }
404         ],
405         "tests":[
406             {
407                 "ingress":[
408                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
409                     "vlan(pcp=3, cfi=0, vid=100, ethertype=2054)",
410                     "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')",
411                     "bytes(b'\\x00' * 30)"
412                 ],
413                 "egress":[
414                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
415                     "vlan(pcp=3, cfi=0, vid=100, ethertype=2054)",
416                     "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')",
417                     "bytes(b'\\x00' * 30)"
418                 ]
419             }
420         ]
421     },
422     {
423         "description":"ethernet/vlan(pcp=3)/arp-->'vlan_pcp=3,actions=output:CONTROLLER'",
424         "prerequisite":[
425             {
426                 "OFPFlowMod":{
427                     "table_id":0,
428                     "match":{
429                         "OFPMatch":{
430                             "oxm_fields":[
431                                 {
432                                     "OXMTlv":{
433                                         "field":"vlan_vid",
434                                         "mask":null,
435                                         "value":4196
436                                     }
437                                 },
438                                 {
439                                     "OXMTlv":{
440                                         "field":"vlan_pcp",
441                                         "value":3
442                                     }
443                                 }
444                             ]
445                         }
446                     },
447                     "instructions":[
448                         {
449                             "OFPInstructionActions":{
450                                 "actions":[
451                                     {
452                                         "OFPActionOutput":{
453                                             "max_len":65535,
454                                             "port":4294967293
455                                         }
456                                     }
457                                 ],
458                                 "type":4
459                             }
460                         }
461                     ]
462                 }
463             }
464         ],
465         "tests":[
466             {
467                 "ingress":[
468                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
469                     "vlan(pcp=3, cfi=0, vid=100, ethertype=2054)",
470                     "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')",
471                     "bytes(b'\\x00' * 30)"
472                 ],
473                 "PACKET_IN":[
474                     "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
475                     "vlan(pcp=3, cfi=0, vid=100, ethertype=2054)",
476                     "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')",
477                     "bytes(b'\\x00' * 30)"
478                 ]
479             }
480         ]
481     },
482     {
483         "description":"ethernet/vlan(pcp=5)/arp-->'vlan_pcp=3,actions=output:2'",
484         "prerequisite":[
485             {
486                 "OFPFlowMod":{
487                     "table_id":0,
488                     "match":{
489                         "OFPMatch":{
490                             "oxm_fields":[
491                                 {
492                                     "OXMTlv":{
493                                         "field":"vlan_vid",
494                                         "mask":null,
495                                         "value":4196
496                                     }
497                                 },
498                                 {
499                                     "OXMTlv":{
500                                         "field":"vlan_pcp",
501                                         "value":3
502                                     }
503                                 }
504                             ]
505                         }
506                     },
507                     "instructions":[
508                         {
509                             "OFPInstructionActions":{
510                                 "actions":[
511                                     {
512                                         "OFPActionOutput":{
513                                             "port":2
514                                         }
515                                     }
516                                 ],
517                                 "type":4
518                             }
519                         }
520                     ]
521                 }
522             }
523         ],
524         "tests":[
525             {
526                 "ingress":[
527                     "ethernet(dst='ba:bb:bb:bb:bb:bb', src='aa:aa:aa:aa:aa:aa', ethertype=33024)",
528                     "vlan(pcp=5, cfi=0, vid=203, ethertype=2054)",
529                     "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')",
530                     "bytes(b'\\x00' * 30)"
531                 ],
532                 "table-miss":[
533                     0
534                 ]
535             }
536         ]
537     }
538 ]