blob: 7c8aa4caeef4a32f4d31c47aa221246dc60b0a2f [file] [log] [blame]
Naveen Joye4168932022-10-04 14:22:05 -07001#!/usr/bin/env python3
2
3## Virtual Interface Test configuration for VM tests ##
4
5test_config = {
6 "client_namespace": "iprf_client_ns",
7 "server_namespace": "iprf_server_ns",
8 "mtus": [9001, 9000, 2048, 2049, 1500, 512],
9 "ip_versions": [4, 6],
10 "af_packet": {
11 "iprf_client_interface_on_linux": "hostintclient",
12 "iprf_server_interface_on_linux": "hostintserver",
13 "iprf_client_interface_on_vpp": "vppclientout",
14 "iprf_server_interface_on_vpp": "vppserverout",
15 },
16 "L2": {
17 "client_ip4_prefix": "10.0.0.101/24",
18 "server_ip4_prefix": "10.0.0.102/24",
19 "client_ip6_prefix": "2001:1::1/64",
20 "server_ip6_prefix": "2001:1::2/64",
21 },
22 "L3": {
23 "client_ip4_prefix": "10.0.0.101/24",
24 "vpp_client_ip4_prefix": "10.0.0.102/24",
25 "server_ip4_prefix": "10.0.1.102/24",
26 "vpp_server_ip4_prefix": "10.0.1.101/24",
27 "ip4_vrf": 1,
28 "client_ip6_prefix": "2001:1::1/64",
29 "vpp_client_ip6_prefix": "2001:1::2/64",
30 "server_ip6_prefix": "2001:2::2/64",
31 "vpp_server_ip6_prefix": "2001:2::1/64",
32 "ip6_vrf": 2,
33 },
34 # Test Filter
35 # Comma separated test id's or range(s) of test id's to run (default=all)
36 # e.g. "1,3-4,19-23" runs tests with ID's 1, 3, 4, 19, 20, 21, 22 & 23 only
37 "tests_to_run": "",
38 "tests": [
39 {
40 "id": 1,
41 "client_if_type": "tap",
42 "client_if_version": 2,
43 "client_if_gso": 0,
44 "client_if_gro": 0,
45 "server_if_type": "tap",
46 "server_if_version": 2,
47 "server_if_gso": 0,
48 "server_if_gro": 0,
49 "x_connect_mode": "L2",
50 },
51 {
52 "id": 2,
53 "client_if_type": "tap",
54 "client_if_version": 2,
55 "client_if_gso": 1,
56 "client_if_gro": 0,
57 "server_if_type": "tap",
58 "server_if_version": 2,
59 "server_if_gso": 0,
60 "server_if_gro": 0,
61 "x_connect_mode": "L2",
62 },
63 {
64 "id": 3,
65 "client_if_type": "tap",
66 "client_if_version": 2,
67 "client_if_gso": 0,
68 "client_if_gro": 0,
69 "server_if_type": "tap",
70 "server_if_version": 2,
71 "server_if_gso": 1,
72 "server_if_gro": 0,
73 "x_connect_mode": "L2",
74 },
75 {
76 "id": 4,
77 "client_if_type": "tap",
78 "client_if_version": 2,
79 "client_if_gso": 0,
80 "client_if_gro": 1,
81 "server_if_type": "tap",
82 "server_if_version": 2,
83 "server_if_gso": 0,
84 "server_if_gro": 0,
85 "x_connect_mode": "L2",
86 },
87 {
88 "id": 5,
89 "client_if_type": "tap",
90 "client_if_version": 2,
91 "client_if_gso": 0,
92 "client_if_gro": 0,
93 "server_if_type": "tap",
94 "server_if_version": 2,
95 "server_if_gso": 0,
96 "server_if_gro": 1,
97 "x_connect_mode": "L2",
98 },
99 {
100 "id": 6,
101 "client_if_type": "tap",
102 "client_if_version": 2,
103 "client_if_gso": 1,
104 "client_if_gro": 0,
105 "server_if_type": "tap",
106 "server_if_version": 2,
107 "server_if_gso": 0,
108 "server_if_gro": 1,
109 "x_connect_mode": "L2",
110 },
111 {
112 "id": 7,
113 "client_if_type": "tap",
114 "client_if_version": 2,
115 "client_if_gso": 0,
116 "client_if_gro": 1,
117 "server_if_type": "tap",
118 "server_if_version": 2,
119 "server_if_gso": 1,
120 "server_if_gro": 0,
121 "x_connect_mode": "L2",
122 },
123 {
124 "id": 8,
125 "client_if_type": "tap",
126 "client_if_version": 2,
127 "client_if_gso": 1,
128 "client_if_gro": 0,
129 "server_if_type": "tap",
130 "server_if_version": 2,
131 "server_if_gso": 1,
132 "server_if_gro": 0,
133 "x_connect_mode": "L2",
134 },
135 {
136 "id": 9,
137 "client_if_type": "tap",
138 "client_if_version": 2,
139 "client_if_gso": 0,
140 "client_if_gro": 1,
141 "server_if_type": "tap",
142 "server_if_version": 2,
143 "server_if_gso": 0,
144 "server_if_gro": 1,
145 "x_connect_mode": "L2",
146 },
147 {
148 "id": 10,
149 "client_if_type": "tap",
150 "client_if_version": 2,
151 "client_if_gso": 0,
152 "client_if_gro": 0,
153 "server_if_type": "tun",
154 "server_if_version": 2,
155 "server_if_gso": 0,
156 "server_if_gro": 1,
157 "x_connect_mode": "L3",
158 },
159 {
160 "id": 11,
161 "client_if_type": "tun",
162 "client_if_version": 2,
163 "client_if_gso": 0,
164 "client_if_gro": 0,
165 "server_if_type": "tap",
166 "server_if_version": 2,
167 "server_if_gso": 0,
168 "server_if_gro": 1,
169 "x_connect_mode": "L3",
170 },
171 {
172 "id": 12,
173 "client_if_type": "af_packet",
174 "client_if_version": 3,
175 "client_if_gso": 0,
176 "server_if_type": "af_packet",
177 "server_if_version": 3,
178 "server_if_gso": 0,
179 "x_connect_mode": "L2",
180 },
181 {
182 "id": 13,
183 "client_if_type": "af_packet",
184 "client_if_version": 3,
185 "client_if_gso": 0,
186 "server_if_type": "af_packet",
187 "server_if_version": 3,
188 "server_if_gso": 0,
189 "x_connect_mode": "L3",
190 },
191 {
192 "id": 14,
193 "client_if_type": "af_packet",
194 "client_if_version": 3,
195 "client_if_gso": 1,
196 "server_if_type": "af_packet",
197 "server_if_version": 3,
198 "server_if_gso": 1,
199 "x_connect_mode": "L2",
200 },
201 {
202 "id": 15,
203 "client_if_type": "af_packet",
204 "client_if_version": 3,
205 "client_if_gso": 1,
206 "server_if_type": "af_packet",
207 "server_if_version": 3,
208 "server_if_gso": 1,
209 "x_connect_mode": "L3",
210 },
211 {
212 "id": 16,
213 "client_if_type": "af_packet",
214 "client_if_version": 3,
215 "client_if_gso": 1,
216 "server_if_type": "af_packet",
217 "server_if_version": 3,
218 "server_if_gso": 0,
219 "x_connect_mode": "L2",
220 },
221 {
222 "id": 17,
223 "client_if_type": "af_packet",
224 "client_if_version": 2,
225 "client_if_gso": 1,
226 "server_if_type": "tap",
227 "server_if_version": 2,
228 "server_if_gso": 0,
229 "x_connect_mode": "L2",
230 },
231 {
232 "id": 18,
233 "client_if_type": "af_packet",
234 "client_if_version": 2,
235 "client_if_gso": 1,
236 "server_if_type": "tun",
237 "server_if_version": 2,
238 "server_if_gso": 0,
239 "x_connect_mode": "L3",
240 },
241 {
242 "id": 19,
243 "client_if_type": "af_packet",
244 "client_if_version": 2,
245 "client_if_gso": 1,
246 "server_if_type": "af_packet",
247 "server_if_version": 2,
248 "server_if_gso": 1,
249 "x_connect_mode": "L3",
250 },
251 {
252 "id": 20,
253 "client_if_type": "af_packet",
254 "client_if_version": 2,
255 "client_if_gso": 0,
256 "server_if_type": "af_packet",
257 "server_if_version": 2,
258 "server_if_gso": 0,
259 "x_connect_mode": "L2",
260 },
261 {
262 "id": 21,
263 "client_if_type": "af_packet",
264 "client_if_version": 2,
265 "client_if_gso": 0,
266 "server_if_type": "tun",
267 "server_if_version": 2,
268 "server_if_gro": 1,
269 "x_connect_mode": "L3",
270 },
271 {
272 "id": 22,
273 "client_if_type": "af_packet",
274 "client_if_version": 3,
275 "client_if_gso": 0,
276 "server_if_type": "af_packet",
277 "server_if_version": 2,
278 "server_if_gso": 1,
279 "x_connect_mode": "L2",
280 },
281 {
282 "id": 23,
283 "client_if_type": "af_packet",
284 "client_if_version": 2,
285 "client_if_gso": 1,
286 "server_if_type": "af_packet",
287 "server_if_version": 2,
288 "server_if_gso": 1,
289 "x_connect_mode": "L2",
290 },
Naveen Joyae916b32023-06-27 14:28:57 -0700291 {
292 "id": 24,
293 "client_if_type": "tap",
294 "client_if_version": 2,
295 "client_if_checksum_offload": 1,
296 "server_if_type": "tap",
297 "server_if_version": 2,
298 "server_if_checksum_offload": 1,
299 "x_connect_mode": "L2",
300 },
301 {
302 "id": 25,
303 "client_if_type": "tap",
304 "client_if_version": 2,
305 "client_if_checksum_offload": 0,
306 "server_if_type": "tap",
307 "server_if_version": 2,
308 "server_if_checksum_offload": 1,
309 "x_connect_mode": "L3",
310 },
311 {
312 "id": 26,
313 "client_if_type": "tap",
314 "client_if_version": 2,
315 "client_if_checksum_offload": 1,
316 "server_if_type": "tap",
317 "server_if_version": 2,
318 "server_if_checksum_offload": 0,
319 "x_connect_mode": "L3",
320 },
Naveen Joye4168932022-10-04 14:22:05 -0700321 ],
322}