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

« back to all changes in this revision

Viewing changes to ryu/tests/switch/of13/action/25_SET_FIELD/17_SCTP_SRC_IPv6.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
    "action: set_field: 17_SCTP_SRC (IPv6)",
 
3
    {
 
4
        "description": "ethernet/ipv6/udp(sctp_port=11111)-->'sctp_src=11111,actions=set_field:12345->sctp_src,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":34525
 
16
                                    }
 
17
                                },
 
18
                                {
 
19
                                    "OXMTlv":{
 
20
                                        "field":"ip_proto",
 
21
                                        "value":132
 
22
                                    }
 
23
                                },
 
24
                                {
 
25
                                    "OXMTlv":{
 
26
                                        "field":"sctp_src",
 
27
                                        "value":11111
 
28
                                    }
 
29
                                }
 
30
                            ]
 
31
                        }
 
32
                    },
 
33
                    "instructions":[
 
34
                        {
 
35
                            "OFPInstructionActions":{
 
36
                                "actions":[
 
37
                                    {
 
38
                                        "OFPActionSetField":{
 
39
                                            "field":{
 
40
                                                "OXMTlv":{
 
41
                                                    "field":"sctp_src",
 
42
                                                    "value":12345
 
43
                                                }
 
44
                                            }
 
45
                                        }
 
46
                                    },
 
47
                                    {
 
48
                                        "OFPActionOutput":{
 
49
                                            "port":2
 
50
                                        }
 
51
                                    }
 
52
                                ],
 
53
                                "type":4
 
54
                            }
 
55
                        }
 
56
                    ]
 
57
                }
 
58
            }
 
59
        ],
 
60
        "tests":[
 
61
            {
 
62
                "ingress":[
 
63
                    "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34525)",
 
64
                    "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=132, hop_limit=64, traffic_class=32)",
 
65
                    "sctp(chunks=[chunk_data(payload_data='0123456789abcdefghijklmnopqrstuvwxyz')], dst_port=2222, src_port=11111)"
 
66
                ],
 
67
                "egress":[
 
68
                    "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34525)",
 
69
                    "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=132, hop_limit=64, traffic_class=32)",
 
70
                    "sctp(chunks=[chunk_data(payload_data='0123456789abcdefghijklmnopqrstuvwxyz')], dst_port=2222, src_port=12345)"
 
71
                ]
 
72
            }
 
73
        ]
 
74
    },
 
75
    {
 
76
        "description": "ethernet/vlan/ipv6/sctp(src_port=11111)-->'sctp_src=11111,actions=set_field:12345->sctp_src,output:2'",
 
77
        "prerequisite":[
 
78
            {
 
79
                "OFPFlowMod":{
 
80
                    "table_id":0,
 
81
                    "match":{
 
82
                        "OFPMatch":{
 
83
                            "oxm_fields":[
 
84
                                {
 
85
                                    "OXMTlv":{
 
86
                                        "field":"eth_type",
 
87
                                        "value":34525
 
88
                                    }
 
89
                                },
 
90
                                {
 
91
                                    "OXMTlv":{
 
92
                                        "field":"ip_proto",
 
93
                                        "value":132
 
94
                                    }
 
95
                                },
 
96
                                {
 
97
                                    "OXMTlv":{
 
98
                                        "field":"sctp_src",
 
99
                                        "value":11111
 
100
                                    }
 
101
                                }
 
102
                            ]
 
103
                        }
 
104
                    },
 
105
                    "instructions":[
 
106
                        {
 
107
                            "OFPInstructionActions":{
 
108
                                "actions":[
 
109
                                    {
 
110
                                        "OFPActionSetField":{
 
111
                                            "field":{
 
112
                                                "OXMTlv":{
 
113
                                                    "field":"sctp_src",
 
114
                                                    "value":12345
 
115
                                                }
 
116
                                            }
 
117
                                        }
 
118
                                    },
 
119
                                    {
 
120
                                        "OFPActionOutput":{
 
121
                                            "port":2
 
122
                                        }
 
123
                                    }
 
124
                                ],
 
125
                                "type":4
 
126
                            }
 
127
                        }
 
128
                    ]
 
129
                }
 
130
            }
 
131
        ],
 
132
        "tests":[
 
133
            {
 
134
                "ingress":[
 
135
                    "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
 
136
                    "vlan(pcp=3, cfi=0, vid=100, ethertype=34525)",
 
137
                    "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=132, hop_limit=64, traffic_class=32)",
 
138
                    "sctp(chunks=[chunk_data(payload_data='0123456789abcdefghijklmnopqrstuvwxyz')], dst_port=2222, src_port=11111)"
 
139
                ],
 
140
                "egress":[
 
141
                    "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=33024)",
 
142
                    "vlan(pcp=3, cfi=0, vid=100, ethertype=34525)",
 
143
                    "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=132, hop_limit=64, traffic_class=32)",
 
144
                    "sctp(chunks=[chunk_data(payload_data='0123456789abcdefghijklmnopqrstuvwxyz')], dst_port=2222, src_port=12345)"
 
145
                ]
 
146
            }
 
147
        ]
 
148
    },
 
149
    {
 
150
        "description": "ethernet/mpls/ipv6/sctp(src_port=11111)-->'actions=pop_mpls:0x86dd,goto_table:1','table_id:1,sctp_src=11111,actions=set_field:12345->sctp_src,output:2'",
 
151
        "prerequisite":[
 
152
            {
 
153
                "OFPFlowMod":{
 
154
                    "table_id":0,
 
155
                    "match":{
 
156
                        "OFPMatch":{
 
157
                            "oxm_fields":[
 
158
                                {
 
159
                                    "OXMTlv":{
 
160
                                        "field":"eth_type",
 
161
                                        "value":34887
 
162
                                    }
 
163
                                }
 
164
                            ]
 
165
                        }
 
166
                    },
 
167
                    "instructions":[
 
168
                        {
 
169
                            "OFPInstructionActions":{
 
170
                                "actions":[
 
171
                                    {
 
172
                                        "OFPActionPopMpls":{
 
173
                                            "ethertype":34525
 
174
                                        }
 
175
                                    }
 
176
                                ],
 
177
                                "type":4
 
178
                            }
 
179
                        },
 
180
                        {
 
181
                            "OFPInstructionGotoTable":{
 
182
                                "table_id":1
 
183
                            }
 
184
                        }
 
185
                    ]
 
186
                }
 
187
            },
 
188
            {
 
189
                "OFPFlowMod":{
 
190
                    "table_id":1,
 
191
                    "match":{
 
192
                        "OFPMatch":{
 
193
                            "oxm_fields":[
 
194
                                {
 
195
                                    "OXMTlv":{
 
196
                                        "field":"eth_type",
 
197
                                        "value":34525
 
198
                                    }
 
199
                                },
 
200
                                {
 
201
                                    "OXMTlv":{
 
202
                                        "field":"ip_proto",
 
203
                                        "value":132
 
204
                                    }
 
205
                                },
 
206
                                {
 
207
                                    "OXMTlv":{
 
208
                                        "field":"sctp_src",
 
209
                                        "value":11111
 
210
                                    }
 
211
                                }
 
212
                            ]
 
213
                        }
 
214
                    },
 
215
                    "instructions":[
 
216
                        {
 
217
                            "OFPInstructionActions":{
 
218
                                "actions":[
 
219
                                    {
 
220
                                        "OFPActionSetField":{
 
221
                                            "field":{
 
222
                                                "OXMTlv":{
 
223
                                                    "field":"sctp_src",
 
224
                                                    "value":12345
 
225
                                                }
 
226
                                            }
 
227
                                        }
 
228
                                    },
 
229
                                    {
 
230
                                        "OFPActionOutput":{
 
231
                                            "port":2
 
232
                                        }
 
233
                                    }
 
234
                                ],
 
235
                                "type":4
 
236
                            }
 
237
                        }
 
238
                    ]
 
239
                }
 
240
            }
 
241
        ],
 
242
        "tests":[
 
243
            {
 
244
                "ingress":[
 
245
                    "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34887)",
 
246
                    "mpls(bsb=1, label=100, exp=3, ttl=64)",
 
247
                    "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=132, hop_limit=64, traffic_class=32)",
 
248
                    "sctp(chunks=[chunk_data(payload_data='0123456789abcdefghijklmnopqrstuvwxyz')], dst_port=2222, src_port=11111)"
 
249
                ],
 
250
                "egress":[
 
251
                    "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34525)",
 
252
                    "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=132, hop_limit=64, traffic_class=32)",
 
253
                    "sctp(chunks=[chunk_data(payload_data='0123456789abcdefghijklmnopqrstuvwxyz')], dst_port=2222, src_port=12345)"
 
254
                ]
 
255
            }
 
256
        ]
 
257
    },
 
258
    {
 
259
        "description": "ethernet/itag/ethernet/ipv6/sctp(src_port=11111)-->'actions=pop_pbb,goto_table:1','table_id:1,sctp_src=11111,actions=set_field:12345->sctp_src,output:2'",
 
260
        "prerequisite":[
 
261
            {
 
262
                "OFPFlowMod":{
 
263
                    "table_id":0,
 
264
                    "match":{
 
265
                        "OFPMatch":{
 
266
                            "oxm_fields":[
 
267
                                {
 
268
                                    "OXMTlv":{
 
269
                                        "field":"eth_type",
 
270
                                        "value":35047
 
271
                                    }
 
272
                                }
 
273
                            ]
 
274
                        }
 
275
                    },
 
276
                    "instructions":[
 
277
                        {
 
278
                            "OFPInstructionActions":{
 
279
                                "actions":[
 
280
                                    {
 
281
                                        "OFPActionPopPbb":{}
 
282
                                    }
 
283
                                ],
 
284
                                "type":4
 
285
                            }
 
286
                        },
 
287
                        {
 
288
                            "OFPInstructionGotoTable":{
 
289
                                "table_id":1
 
290
                            }
 
291
                        }
 
292
                    ]
 
293
                }
 
294
            },
 
295
            {
 
296
                "OFPFlowMod":{
 
297
                    "table_id":1,
 
298
                    "match":{
 
299
                        "OFPMatch":{
 
300
                            "oxm_fields":[
 
301
                                {
 
302
                                    "OXMTlv":{
 
303
                                        "field":"eth_type",
 
304
                                        "value":34525
 
305
                                    }
 
306
                                },
 
307
                                {
 
308
                                    "OXMTlv":{
 
309
                                        "field":"ip_proto",
 
310
                                        "value":132
 
311
                                    }
 
312
                                },
 
313
                                {
 
314
                                    "OXMTlv":{
 
315
                                        "field":"sctp_src",
 
316
                                        "value":11111
 
317
                                    }
 
318
                                }
 
319
                            ]
 
320
                        }
 
321
                    },
 
322
                    "instructions":[
 
323
                        {
 
324
                            "OFPInstructionActions":{
 
325
                                "actions":[
 
326
                                    {
 
327
                                        "OFPActionSetField":{
 
328
                                            "field":{
 
329
                                                "OXMTlv":{
 
330
                                                    "field":"sctp_src",
 
331
                                                    "value":12345
 
332
                                                }
 
333
                                            }
 
334
                                        }
 
335
                                    },
 
336
                                    {
 
337
                                        "OFPActionOutput":{
 
338
                                            "port":2
 
339
                                        }
 
340
                                    }
 
341
                                ],
 
342
                                "type":4
 
343
                            }
 
344
                        }
 
345
                    ]
 
346
                }
 
347
            }
 
348
        ],
 
349
        "tests":[
 
350
            {
 
351
                "ingress":[
 
352
                    "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=35047)",
 
353
                    "itag(sid=100)",
 
354
                    "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34525)",
 
355
                    "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=132, hop_limit=64, traffic_class=32)",
 
356
                    "sctp(chunks=[chunk_data(payload_data='0123456789abcdefghijklmnopqrstuvwxyz')], dst_port=2222, src_port=11111)"
 
357
                ],
 
358
                "egress":[
 
359
                    "ethernet(dst='22:22:22:22:22:22', src='12:11:11:11:11:11', ethertype=34525)",
 
360
                    "ipv6(dst='20::20', flow_label=100, src='10::10', nxt=132, hop_limit=64, traffic_class=32)",
 
361
                    "sctp(chunks=[chunk_data(payload_data='0123456789abcdefghijklmnopqrstuvwxyz')], dst_port=2222, src_port=12345)"
 
362
                ]
 
363
            }
 
364
        ]
 
365
    }
 
366
]