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