~ubuntu-branches/ubuntu/wily/ryu/wily-proposed

« back to all changes in this revision

Viewing changes to ryu/tests/switch/of13/match/36_MPLS_BOS.json

  • Committer: Package Import Robot
  • Author(s): Dariusz Dwornikowski
  • Date: 2014-08-18 16:58:52 UTC
  • Revision ID: package-import@ubuntu.com-20140818165852-i0qck3g5mw7rtxt0
Tags: upstream-3.12
ImportĀ upstreamĀ versionĀ 3.12

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
[
 
2
    "match: 36_MPLS_BOS",
 
3
    {
 
4
        "description":"ethernet/mpls(bsb=1)/ipv4/tcp-->'mpls_bos=1,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_bos",
 
21
                                        "value":1
 
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=str('\\x00' * 4), src_port=11111)",
 
51
                    "'\\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=str('\\x00' * 4), src_port=11111)",
 
58
                    "'\\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(bsb=1)/ipv4/tcp-->'mpls_bos=1,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_bos",
 
81
                                        "value":1
 
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=str('\\x00' * 4), src_port=11111)",
 
112
                    "'\\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=str('\\x00' * 4), src_port=11111)",
 
119
                    "'\\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(bsb=0)/mpls(bsb=1)/ipv4/tcp-->'mpls_bos=1,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_bos",
 
142
                                        "value":1
 
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=0, label=203, exp=5, ttl=127)",
 
170
                    "mpls(bsb=1, label=100, exp=3, ttl=64)",
 
171
                    "ipv4(tos=65, proto=6, src='10.10.10.10', dst='10.10.20.20', ttl=127)",
 
172
                    "tcp(dst_port=6789, option=str('\\x01' * 4), src_port=12345)",
 
173
                    "'\\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'"
 
174
                ],
 
175
                "table-miss":[
 
176
                    0
 
177
                ]
 
178
            }
 
179
        ]
 
180
    },
 
181
    {
 
182
        "description":"ethernet/mpls(bsb=1)/ipv6/tcp-->'mpls_bos=1,actions=output:2'",
 
183
        "prerequisite":[
 
184
            {
 
185
                "OFPFlowMod":{
 
186
                    "table_id":0,
 
187
                    "match":{
 
188
                        "OFPMatch":{
 
189
                            "oxm_fields":[
 
190
                                {
 
191
                                    "OXMTlv":{
 
192
                                        "field":"eth_type",
 
193
                                        "value":34887
 
194
                                    }
 
195
                                },
 
196
                                {
 
197
                                    "OXMTlv":{
 
198
                                        "field":"mpls_bos",
 
199
                                        "value":1
 
200
                                    }
 
201
                                }
 
202
                            ]
 
203
                        }
 
204
                    },
 
205
                    "instructions":[
 
206
                        {
 
207
                            "OFPInstructionActions":{
 
208
                                "actions":[
 
209
                                    {
 
210
                                        "OFPActionOutput":{
 
211
                                            "port":2
 
212
                                        }
 
213
                                    }
 
214
                                ],
 
215
                                "type":4
 
216
                            }
 
217
                        }
 
218
                    ]
 
219
                }
 
220
            }
 
221
        ],
 
222
        "tests":[
 
223
            {
 
224
                "ingress":[
 
225
                    "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34887)",
 
226
                    "mpls(bsb=1, label=100, exp=3, ttl=64)",
 
227
                    "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
 
228
                    "tcp(dst_port=2222, option=str('\\x00' * 4), src_port=11111)",
 
229
                    "'\\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'"
 
230
                ],
 
231
                "egress":[
 
232
                    "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34887)",
 
233
                    "mpls(bsb=1, label=100, exp=3, ttl=64)",
 
234
                    "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
 
235
                    "tcp(dst_port=2222, option=str('\\x00' * 4), src_port=11111)",
 
236
                    "'\\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'"
 
237
                ]
 
238
            }
 
239
        ]
 
240
    },
 
241
    {
 
242
        "description":"ethernet/mpls(bsb=1)/ipv6/tcp-->'mpls_bos=1,actions=output:CONTROLLER'",
 
243
        "prerequisite":[
 
244
            {
 
245
                "OFPFlowMod":{
 
246
                    "table_id":0,
 
247
                    "match":{
 
248
                        "OFPMatch":{
 
249
                            "oxm_fields":[
 
250
                                {
 
251
                                    "OXMTlv":{
 
252
                                        "field":"eth_type",
 
253
                                        "value":34887
 
254
                                    }
 
255
                                },
 
256
                                {
 
257
                                    "OXMTlv":{
 
258
                                        "field":"mpls_bos",
 
259
                                        "value":1
 
260
                                    }
 
261
                                }
 
262
                            ]
 
263
                        }
 
264
                    },
 
265
                    "instructions":[
 
266
                        {
 
267
                            "OFPInstructionActions":{
 
268
                                "actions":[
 
269
                                    {
 
270
                                        "OFPActionOutput":{
 
271
                                            "max_len":65535,
 
272
                                            "port":4294967293
 
273
                                        }
 
274
                                    }
 
275
                                ],
 
276
                                "type":4
 
277
                            }
 
278
                        }
 
279
                    ]
 
280
                }
 
281
            }
 
282
        ],
 
283
        "tests":[
 
284
            {
 
285
                "ingress":[
 
286
                    "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34887)",
 
287
                    "mpls(bsb=1, label=100, exp=3, ttl=64)",
 
288
                    "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
 
289
                    "tcp(dst_port=2222, option=str('\\x00' * 4), src_port=11111)",
 
290
                    "'\\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'"
 
291
                ],
 
292
                "PACKET_IN":[
 
293
                    "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34887)",
 
294
                    "mpls(bsb=1, label=100, exp=3, ttl=64)",
 
295
                    "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=6, hop_limit=64, traffic_class=32)",
 
296
                    "tcp(dst_port=2222, option=str('\\x00' * 4), src_port=11111)",
 
297
                    "'\\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'"
 
298
                ]
 
299
            }
 
300
        ]
 
301
    },
 
302
    {
 
303
        "description":"ethernet/mpls(bsb=0)/mpls(bsb=1)/ipv6/tcp-->'mpls_bos=1,actions=output:2'",
 
304
        "prerequisite":[
 
305
            {
 
306
                "OFPFlowMod":{
 
307
                    "table_id":0,
 
308
                    "match":{
 
309
                        "OFPMatch":{
 
310
                            "oxm_fields":[
 
311
                                {
 
312
                                    "OXMTlv":{
 
313
                                        "field":"eth_type",
 
314
                                        "value":34887
 
315
                                    }
 
316
                                },
 
317
                                {
 
318
                                    "OXMTlv":{
 
319
                                        "field":"mpls_bos",
 
320
                                        "value":1
 
321
                                    }
 
322
                                }
 
323
                            ]
 
324
                        }
 
325
                    },
 
326
                    "instructions":[
 
327
                        {
 
328
                            "OFPInstructionActions":{
 
329
                                "actions":[
 
330
                                    {
 
331
                                        "OFPActionOutput":{
 
332
                                            "port":2
 
333
                                        }
 
334
                                    }
 
335
                                ],
 
336
                                "type":4
 
337
                            }
 
338
                        }
 
339
                    ]
 
340
                }
 
341
            }
 
342
        ],
 
343
        "tests":[
 
344
            {
 
345
                "ingress":[
 
346
                    "ethernet(dst='ba:bb:bb:bb:bb:bb', src='aa:aa:aa:aa:aa:aa', ethertype=34887)",
 
347
                    "mpls(bsb=0, label=203, exp=5, ttl=127)",
 
348
                    "mpls(bsb=1, label=100, exp=3, ttl=64)",
 
349
                    "ipv6(dst='b0::b0', flow_label=203, src='a0::a0', nxt=6, hop_limit=127, traffic_class=65)",
 
350
                    "tcp(dst_port=6789, option=str('\\x01' * 4), src_port=12345)",
 
351
                    "'\\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'"
 
352
                ],
 
353
                "table-miss":[
 
354
                    0
 
355
                ]
 
356
            }
 
357
        ]
 
358
    },
 
359
    {
 
360
        "description":"ethernet/mpls(bsb=1)/arp-->'mpls_bos=1,actions=output:2'",
 
361
        "prerequisite":[
 
362
            {
 
363
                "OFPFlowMod":{
 
364
                    "table_id":0,
 
365
                    "match":{
 
366
                        "OFPMatch":{
 
367
                            "oxm_fields":[
 
368
                                {
 
369
                                    "OXMTlv":{
 
370
                                        "field":"eth_type",
 
371
                                        "value":34887
 
372
                                    }
 
373
                                },
 
374
                                {
 
375
                                    "OXMTlv":{
 
376
                                        "field":"mpls_bos",
 
377
                                        "value":1
 
378
                                    }
 
379
                                }
 
380
                            ]
 
381
                        }
 
382
                    },
 
383
                    "instructions":[
 
384
                        {
 
385
                            "OFPInstructionActions":{
 
386
                                "actions":[
 
387
                                    {
 
388
                                        "OFPActionOutput":{
 
389
                                            "port":2
 
390
                                        }
 
391
                                    }
 
392
                                ],
 
393
                                "type":4
 
394
                            }
 
395
                        }
 
396
                    ]
 
397
                }
 
398
            }
 
399
        ],
 
400
        "tests":[
 
401
            {
 
402
                "ingress":[
 
403
                    "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34887)",
 
404
                    "mpls(bsb=1, label=100, exp=3, ttl=64)",
 
405
                    "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')",
 
406
                    "str('\\x00' * 30)"
 
407
                ],
 
408
                "egress":[
 
409
                    "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34887)",
 
410
                    "mpls(bsb=1, label=100, exp=3, ttl=64)",
 
411
                    "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')",
 
412
                    "str('\\x00' * 30)"
 
413
                ]
 
414
            }
 
415
        ]
 
416
    },
 
417
    {
 
418
        "description":"ethernet/mpls(bsb=1)/arp-->'mpls_bos=1,actions=output:CONTROLLER'",
 
419
        "prerequisite":[
 
420
            {
 
421
                "OFPFlowMod":{
 
422
                    "table_id":0,
 
423
                    "match":{
 
424
                        "OFPMatch":{
 
425
                            "oxm_fields":[
 
426
                                {
 
427
                                    "OXMTlv":{
 
428
                                        "field":"eth_type",
 
429
                                        "value":34887
 
430
                                    }
 
431
                                },
 
432
                                {
 
433
                                    "OXMTlv":{
 
434
                                        "field":"mpls_bos",
 
435
                                        "value":1
 
436
                                    }
 
437
                                }
 
438
                            ]
 
439
                        }
 
440
                    },
 
441
                    "instructions":[
 
442
                        {
 
443
                            "OFPInstructionActions":{
 
444
                                "actions":[
 
445
                                    {
 
446
                                        "OFPActionOutput":{
 
447
                                            "max_len":65535,
 
448
                                            "port":4294967293
 
449
                                        }
 
450
                                    }
 
451
                                ],
 
452
                                "type":4
 
453
                            }
 
454
                        }
 
455
                    ]
 
456
                }
 
457
            }
 
458
        ],
 
459
        "tests":[
 
460
            {
 
461
                "ingress":[
 
462
                    "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34887)",
 
463
                    "mpls(bsb=1, label=100, exp=3, ttl=64)",
 
464
                    "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')",
 
465
                    "str('\\x00' * 30)"
 
466
                ],
 
467
                "PACKET_IN":[
 
468
                    "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34887)",
 
469
                    "mpls(bsb=1, label=100, exp=3, ttl=64)",
 
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
                    "str('\\x00' * 30)"
 
472
                ]
 
473
            }
 
474
        ]
 
475
    },
 
476
    {
 
477
        "description":"ethernet/mpls(bsb=0)/mpls(bsb=1)/arp-->'mpls_bos=1,actions=output:2'",
 
478
        "prerequisite":[
 
479
            {
 
480
                "OFPFlowMod":{
 
481
                    "table_id":0,
 
482
                    "match":{
 
483
                        "OFPMatch":{
 
484
                            "oxm_fields":[
 
485
                                {
 
486
                                    "OXMTlv":{
 
487
                                        "field":"eth_type",
 
488
                                        "value":34887
 
489
                                    }
 
490
                                },
 
491
                                {
 
492
                                    "OXMTlv":{
 
493
                                        "field":"mpls_bos",
 
494
                                        "value":1
 
495
                                    }
 
496
                                }
 
497
                            ]
 
498
                        }
 
499
                    },
 
500
                    "instructions":[
 
501
                        {
 
502
                            "OFPInstructionActions":{
 
503
                                "actions":[
 
504
                                    {
 
505
                                        "OFPActionOutput":{
 
506
                                            "port":2
 
507
                                        }
 
508
                                    }
 
509
                                ],
 
510
                                "type":4
 
511
                            }
 
512
                        }
 
513
                    ]
 
514
                }
 
515
            }
 
516
        ],
 
517
        "tests":[
 
518
            {
 
519
                "ingress":[
 
520
                    "ethernet(dst='ba:bb:bb:bb:bb:bb', src='aa:aa:aa:aa:aa:aa', ethertype=34887)",
 
521
                    "mpls(bsb=0, label=203, exp=5, ttl=127)",
 
522
                    "mpls(bsb=1, label=100, exp=3, ttl=64)",
 
523
                    "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')",
 
524
                    "str('\\x00' * 30)"
 
525
                ],
 
526
                "table-miss":[
 
527
                    0
 
528
                ]
 
529
            }
 
530
        ]
 
531
    }
 
532
]