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