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