backing up
[vsorcdistro/.git] / ryu / build / lib.linux-armv7l-2.7 / ryu / tests / switch / of14 / group / 01_SELECT_Ether.json
1 [
2     "group: 01_SELECT_Ether",
3     {
4         "description":"2Mbps(ethernet(dst=random,src=random)/ipv4/tcp)-->'in_port=1,actions=group:select(actions=output:2/actions=output:3)'",
5         "prerequisite":[
6             {
7                 "OFPGroupMod":{
8                     "group_id":0,
9                     "type":1,
10                     "buckets":[
11                         {
12                             "OFPBucket":{
13                                 "weight":1,
14                                 "actions":[
15                                     {
16                                         "OFPActionOutput":{
17                                             "port":2
18                                         }
19                                     }
20                                 ]
21                             }
22                         },
23                         {
24                             "OFPBucket":{
25                                 "weight":1,
26                                 "actions":[
27                                     {
28                                         "OFPActionOutput":{
29                                             "port":3
30                                         }
31                                     }
32                                 ]
33                             }
34                         }
35                     ]
36                 }
37             },
38             {
39                 "OFPFlowMod":{
40                     "match":{
41                         "OFPMatch":{
42                             "oxm_fields":[
43                                 {
44                                     "OXMTlv":{
45                                         "field":"in_port",
46                                         "value":1
47                                     }
48                                 }
49                             ]
50                         }
51                     },
52                     "instructions":[
53                         {
54                             "OFPInstructionActions":{
55                                 "actions":[
56                                     {
57                                         "OFPActionGroup":{
58                                             "group_id":0
59                                         }
60                                     }
61                                 ],
62                                 "type":4
63                             }
64                         }
65                     ]
66                 }
67             }
68         ],
69         "tests":[
70             {
71                 "ingress":{
72                     "packets":{
73                         "data":[
74                             "ethernet(dst=netaddr.EUI(randint(0, 2 ** 48 - 1)), src=netaddr.EUI(randint(0, 2 ** 48 - 1) & 0xfeffffffffff), ethertype=2048)",
75                             "ipv4(proto=6)",
76                             "tcp()",
77                             "bytes(b'\\x11' * (1500 - 54))"
78                         ],
79                         "pktps":175,
80                         "duration_time":30
81                     }
82                 },
83                 "egress":{
84                     "throughput":[
85                         {
86                             "OFPMatch":{
87                                 "oxm_fields":[
88                                     {
89                                         "OXMTlv":{
90                                             "field":"in_port",
91                                             "value":2
92                                         }
93                                     }
94                                 ]
95                             },
96                             "kbps":1000
97                         },
98                         {
99                             "OFPMatch":{
100                                 "oxm_fields":[
101                                     {
102                                         "OXMTlv":{
103                                             "field":"in_port",
104                                             "value":3
105                                         }
106                                     }
107                                 ]
108                             },
109                             "kbps":1000
110                         }
111                     ]
112                 }
113             }
114         ]
115     },
116     {
117         "description":"2Mbps(ethernet(dst=random,src=random)/ipv6/tcp)-->'in_port=1,actions=group:select(actions=output:2/actions=output:3)'",
118         "prerequisite":[
119             {
120                 "OFPGroupMod":{
121                     "group_id":0,
122                     "type":1,
123                     "buckets":[
124                         {
125                             "OFPBucket":{
126                                 "weight":1,
127                                 "actions":[
128                                     {
129                                         "OFPActionOutput":{
130                                             "port":2
131                                         }
132                                     }
133                                 ]
134                             }
135                         },
136                         {
137                             "OFPBucket":{
138                                 "weight":1,
139                                 "actions":[
140                                     {
141                                         "OFPActionOutput":{
142                                             "port":3
143                                         }
144                                     }
145                                 ]
146                             }
147                         }
148                     ]
149                 }
150             },
151             {
152                 "OFPFlowMod":{
153                     "match":{
154                         "OFPMatch":{
155                             "oxm_fields":[
156                                 {
157                                     "OXMTlv":{
158                                         "field":"in_port",
159                                         "value":1
160                                     }
161                                 }
162                             ]
163                         }
164                     },
165                     "instructions":[
166                         {
167                             "OFPInstructionActions":{
168                                 "actions":[
169                                     {
170                                         "OFPActionGroup":{
171                                             "group_id":0
172                                         }
173                                     }
174                                 ],
175                                 "type":4
176                             }
177                         }
178                     ]
179                 }
180             }
181         ],
182         "tests":[
183             {
184                 "ingress":{
185                     "packets":{
186                         "data":[
187                             "ethernet(dst=netaddr.EUI(randint(0, 2 ** 48 - 1)), src=netaddr.EUI(randint(0, 2 ** 48 - 1) & 0xfeffffffffff), ethertype=34525)",
188                             "ipv6(nxt=6)",
189                             "tcp()",
190                             "bytes(b'\\x11' * (1500 - 74))"
191                         ],
192                         "pktps":175,
193                         "duration_time":30
194                     }
195                 },
196                 "egress":{
197                     "throughput":[
198                         {
199                             "OFPMatch":{
200                                 "oxm_fields":[
201                                     {
202                                         "OXMTlv":{
203                                             "field":"in_port",
204                                             "value":2
205                                         }
206                                     }
207                                 ]
208                             },
209                             "kbps":1000
210                         },
211                         {
212                             "OFPMatch":{
213                                 "oxm_fields":[
214                                     {
215                                         "OXMTlv":{
216                                             "field":"in_port",
217                                             "value":3
218                                         }
219                                     }
220                                 ]
221                             },
222                             "kbps":1000
223                         }
224                     ]
225                 }
226             }
227         ]
228     },
229     {
230         "description":"2Mbps(ethernet(dst=random,src=random)/arp)-->'in_port=1,actions=group:select(actions=output:2/actions=output:3)'",
231         "prerequisite":[
232             {
233                 "OFPGroupMod":{
234                     "group_id":0,
235                     "type":1,
236                     "buckets":[
237                         {
238                             "OFPBucket":{
239                                 "weight":1,
240                                 "actions":[
241                                     {
242                                         "OFPActionOutput":{
243                                             "port":2
244                                         }
245                                     }
246                                 ]
247                             }
248                         },
249                         {
250                             "OFPBucket":{
251                                 "weight":1,
252                                 "actions":[
253                                     {
254                                         "OFPActionOutput":{
255                                             "port":3
256                                         }
257                                     }
258                                 ]
259                             }
260                         }
261                     ]
262                 }
263             },
264             {
265                 "OFPFlowMod":{
266                     "match":{
267                         "OFPMatch":{
268                             "oxm_fields":[
269                                 {
270                                     "OXMTlv":{
271                                         "field":"in_port",
272                                         "value":1
273                                     }
274                                 }
275                             ]
276                         }
277                     },
278                     "instructions":[
279                         {
280                             "OFPInstructionActions":{
281                                 "actions":[
282                                     {
283                                         "OFPActionGroup":{
284                                             "group_id":0
285                                         }
286                                     }
287                                 ],
288                                 "type":4
289                             }
290                         }
291                     ]
292                 }
293             }
294         ],
295         "tests":[
296             {
297                 "ingress":{
298                     "packets":{
299                         "data":[
300                             "ethernet(dst=netaddr.EUI(randint(0, 2 ** 48 - 1)), src=netaddr.EUI(randint(0, 2 ** 48 - 1) & 0xfeffffffffff), ethertype=2054)",
301                             "arp(dst_mac='22:22:22:22:22:22', src_mac='12:11:11:11:11:11')",
302                             "bytes(b'\\x11' * (1500 - 42))"
303                         ],
304                         "pktps":175,
305                         "duration_time":30
306                     }
307                 },
308                 "egress":{
309                     "throughput":[
310                         {
311                             "OFPMatch":{
312                                 "oxm_fields":[
313                                     {
314                                         "OXMTlv":{
315                                             "field":"in_port",
316                                             "value":2
317                                         }
318                                     }
319                                 ]
320                             },
321                             "kbps":1000
322                         },
323                         {
324                             "OFPMatch":{
325                                 "oxm_fields":[
326                                     {
327                                         "OXMTlv":{
328                                             "field":"in_port",
329                                             "value":3
330                                         }
331                                     }
332                                 ]
333                             },
334                             "kbps":1000
335                         }
336                     ]
337                 }
338             }
339         ]
340     }
341 ]