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