e9ec9487721b5e0c13b2d7dd851f8977050f3700
[csit.git] / resources / libraries / robot / performance.robot
1 # Copyright (c) 2016 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 *** Settings ***
15 | Library | resources.libraries.python.topology.Topology
16 | Library | resources.libraries.python.NodePath
17 | Library | resources.libraries.python.DpdkUtil
18 | Library | resources.libraries.python.InterfaceUtil
19 | Library | resources.libraries.python.VhostUser
20 | Library | resources.libraries.python.TrafficGenerator
21 | Library | resources.libraries.python.TrafficGenerator.TGDropRateSearchImpl
22 | Resource | resources/libraries/robot/default.robot
23 | Resource | resources/libraries/robot/interfaces.robot
24 | Resource | resources/libraries/robot/counters.robot
25 | Resource | resources/libraries/robot/bridge_domain.robot
26 | Resource | resources/libraries/robot/l2_xconnect.robot
27 | Resource | resources/libraries/robot/ipv4.robot
28 | Resource | resources/libraries/robot/ipv6.robot
29 | Resource | resources/libraries/robot/qemu.robot
30 | Documentation | Performance suite keywords
31
32 *** Keywords ***
33 | Setup performance rate Variables
34 | | [Documentation]
35 | | ... | Setup performance linerates as Suite Variables. Variables are used
36 | | ... | as search boundaries in RFC2544 throughput search.
37 | | ...
38 | | ... | _NOTE:_ This KW sets following suite variables:
39 | | ... | - 10Ge_linerate_pps_64B - Maximum number of packet per second
40 | | ... |                           for 10GE with 64B L2 Frame.
41 | | ... | - 10Ge_linerate_pps_68B - Maximum number of packet per second
42 | | ... |                           for 10GE with 68B L2 Frame.
43 | | ... | - 10Ge_linerate_pps_72B - Maximum number of packet per second
44 | | ... |                           for 10GE with 72B L2 Frame.
45 | | ... | - 10Ge_linerate_pps_78B - Maximum number of packet per second
46 | | ... |                           for 10GE with 78B L2 Frame.
47 | | ... | - 10Ge_linerate_pps_114B - Maximum number of packet per second
48 | | ... |                           for 10GE with 114B L2 Frame.
49 | | ... | - 10Ge_linerate_pps_1518B - Maximum number of packet per second
50 | | ... |                             for 10GE with 1518B L2 Frame.
51 | | ... | - 10Ge_linerate_pps_1522B - Maximum number of packet per second
52 | | ... |                             for 10GE with 1522B L2 Frame.
53 | | ... | - 10Ge_linerate_pps_1526B - Maximum number of packet per second
54 | | ... |                             for 10GE with 1526B L2 Frame.
55 | | ... | - 10Ge_linerate_pps_1568B - Maximum number of packet per second
56 | | ... |                             for 10GE with 1568B L2 Frame.
57 | | ... | - 10Ge_linerate_pps_9000B - Maximum number of packet per second
58 | | ... |                             for 10GE with 9000B L2 Frame.
59 | | ... | - 10Ge_linerate_pps_9004B - Maximum number of packet per second
60 | | ... |                             for 10GE with 9004B L2 Frame.
61 | | ... | - 10Ge_linerate_pps_9008B - Maximum number of packet per second
62 | | ... |                             for 10GE with 9008B L2 Frame.
63 | | ... | - 10Ge_linerate_pps_9050B - Maximum number of packet per second
64 | | ... |                             for 10GE with 9050B L2 Frame.
65 | | ... | - 10Ge_linerate_pps_IMIX_v4_1 - Maximum number of packet per second
66 | | ... |                                 for 10GE with IMIX_v4_1 profile.
67 | | ... | - 10Ge_lisp_linerate_pps_72B - Maximum number of packets per second
68 | | ... |                                for 10GE with 72B L2 Frame, Lisp and
69 | | ... |                                IPv4 header.
70 | | ... | - 10Ge_lisp_linerate_pps_86B - Maximum number of packets per second
71 | | ... |                                for 10GE with 86B L2 Frame, Lisp and
72 | | ... |                                IPv4 header.
73 | | ... | - 10Ge_lisp_linerate_pps_1488B - Maximum number of packets per
74 | | ... |                                  second for 10GE with 1488B L2
75 | | ... |                                  Frame, Lisp and IPv6 header.
76 | | ... | - 10Ge_lisp_linerate_pps_9008B - Maximum number of packets per
77 | | ... |                                  second for 10GE with 9008B L2
78 | | ... |                                  Frame, Lisp, IPv4 or IPv6 header.
79 | | ... | - 10Ge_lisp_iph_linerate_pps_112B - Maximum number of packets per
80 | | ... |                                     second for 10GE with 112B L2
81 | | ... |                                     Frame, Lisp, IPv4 and IPv6
82 | | ... |                                     header.
83 | | ... | - 10Ge_lisp_iph_linerate_pps_126B - Maximum number of packets per
84 | | ... |                                     second for 10GE with 126B L2
85 | | ... |                                     Frame, Lisp, IPv4 and IPv6
86 | | ... |                                     header.
87 | | ... | - 10Ge_lisp_iph_linerate_pps_1508B - Maximum number of packets per
88 | | ... |                                      second for 10GE with 1508B L2
89 | | ... |                                      Frame, Lisp, IPv4 and IPv6
90 | | ... |                                      header.
91 | | ... | - 10Ge_lisp_iph_linerate_pps_9048B - Maximum number of packets per
92 | | ... |                                      second for 10GE with 9048B L2
93 | | ... |                                      Frame, Lisp, IPv4 and IPv6
94 | | ... |                                      header.
95 | | ... | - 40Ge_linerate_pps_64B - Maximum number of packet per second
96 | | ... |                           for 40GE with 64B L2 Frame.
97 | | ... | - 40Ge_linerate_pps_68B - Maximum number of packet per second
98 | | ... |                           for 40GE with 68B L2 Frame.
99 | | ... | - 40Ge_linerate_pps_72B - Maximum number of packet per second
100 | | ... |                           for 40GE with 72B L2 Frame.
101 | | ... | - 40Ge_linerate_pps_78B - Maximum number of packet per second
102 | | ... |                           for 40GE with 78B L2 Frame.
103 | | ... | - 40Ge_linerate_pps_114B - Maximum number of packet per second
104 | | ... |                           for 40GE with 114B L2 Frame.
105 | | ... | - 40Ge_linerate_pps_1518B - Maximum number of packet per second
106 | | ... |                             for 40GE with 1518B L2 Frame.
107 | | ... | - 40Ge_linerate_pps_1522B - Maximum number of packet per second
108 | | ... |                             for 40GE with 1522B L2 Frame.
109 | | ... | - 40Ge_linerate_pps_1526B - Maximum number of packet per second
110 | | ... |                             for 40GE with 1526B L2 Frame.
111 | | ... | - 40Ge_linerate_pps_1568B - Maximum number of packet per second
112 | | ... |                             for 40GE with 1568B L2 Frame.
113 | | ... | - 40Ge_linerate_pps_9000B - Maximum number of packet per second
114 | | ... |                             for 40GE with 9000B L2 Frame.
115 | | ... | - 40Ge_linerate_pps_9004B - Maximum number of packet per second
116 | | ... |                             for 40GE with 9004B L2 Frame.
117 | | ... | - 40Ge_linerate_pps_9008B - Maximum number of packet per second
118 | | ... |                             for 40GE with 9008B L2 Frame.
119 | | ... | - 40Ge_linerate_pps_9050B - Maximum number of packet per second
120 | | ... |                             for 40GE with 9050B L2 Frame.
121 | | ... | - 40Ge_linerate_pps_IMIX_v4_1 - Maximum number of packet per second
122 | | ... |                                 for 40GE with IMIX_v4_1 profile.
123 | | ... | - 40Ge_lisp_linerate_pps_72B - Maximum number of packets per second
124 | | ... |                                for 40GE with 72B L2 Frame, Lisp and
125 | | ... |                                IPv4 header.
126 | | ... | - 40Ge_lisp_linerate_pps_86B - Maximum number of packets per second
127 | | ... |                                for 40GE with 86B L2 Frame, Lisp and
128 | | ... |                                IPv4 header.
129 | | ... | - 40Ge_lisp_linerate_pps_1488B - Maximum number of packets per
130 | | ... |                                  second for 40GE with 1488B L2
131 | | ... |                                  Frame, Lisp and IPv6 header.
132 | | ... | - 40Ge_lisp_linerate_pps_9008B - Maximum number of packets per
133 | | ... |                                  second for 40GE with 9008B L2
134 | | ... |                                  Frame, Lisp, IPv4 or IPv6 header.
135 | | ... | - 40Ge_lisp_iph_linerate_pps_112B - Maximum number of packets per
136 | | ... |                                     second for 40GE with 112B L2
137 | | ... |                                     Frame, Lisp, IPv4 and IPv6
138 | | ... |                                     header.
139 | | ... | - 40Ge_lisp_iph_linerate_pps_126B - Maximum number of packets per
140 | | ... |                                     second for 40GE with 126B L2
141 | | ... |                                     Frame, Lisp, IPv4 and IPv6
142 | | ... |                                     header.
143 | | ... | - 40Ge_lisp_iph_linerate_pps_1508B - Maximum number of packets per
144 | | ... |                                      second for 40GE with 1508B L2
145 | | ... |                                      Frame, Lisp, IPv4 and IPv6
146 | | ... |                                      header.
147 | | ... | - 40Ge_lisp_iph_linerate_pps_9048B - Maximum number of packets per
148 | | ... |                                      second for 40GE with 9048B L2
149 | | ... |                                      Frame, Lisp, IPv4 and IPv6
150 | | ... |                                      header.
151 | | ...
152 | | Set Suite Variable | ${10Ge_linerate_pps_64B} | 14880952
153 | | Set Suite Variable | ${10Ge_linerate_pps_68B} | 14204545
154 | | Set Suite Variable | ${10Ge_linerate_pps_72B} | 13586956
155 | | Set Suite Variable | ${10Ge_linerate_pps_78B} | 12755102
156 | | Set Suite Variable | ${10Ge_linerate_pps_114B} |  9328358
157 | | Set Suite Variable | ${10Ge_linerate_pps_1518B} | 812743
158 | | Set Suite Variable | ${10Ge_linerate_pps_1522B} | 810635
159 | | Set Suite Variable | ${10Ge_linerate_pps_1568B} | 787153
160 | | Set Suite Variable | ${10Ge_linerate_pps_9000B} | 138580
161 | | Set Suite Variable | ${10Ge_linerate_pps_9004B} | 138519
162 | | Set Suite Variable | ${10Ge_linerate_pps_9008B} | 138458
163 | | Set Suite Variable | ${10Ge_linerate_pps_9050B} | 137816
164 | | Set Suite Variable | ${10Ge_linerate_pps_IMIX_v4_1} | 3343736
165 | | Set Suite Variable | ${10Ge_lisp_linerate_pps_72B} | 13586956
166 | | Set Suite Variable | ${10Ge_lisp_linerate_pps_86B} | 11792452
167 | | Set Suite Variable | ${10Ge_lisp_linerate_pps_1488B} | 828912
168 | | Set Suite Variable | ${10Ge_lisp_linerate_pps_9008B} | 138458
169 | | Set Suite Variable | ${10Ge_lisp_iph_linerate_pps_112B} | 9469696
170 | | Set Suite Variable | ${10Ge_lisp_iph_linerate_pps_126B} | 8561643
171 | | Set Suite Variable | ${10Ge_lisp_iph_linerate_pps_1508B} | 818062
172 | | Set Suite Variable | ${10Ge_lisp_iph_linerate_pps_9048B} | 137847
173 | | Set Suite Variable | ${40Ge_linerate_pps_64B} | 59523809
174 | | Set Suite Variable | ${40Ge_linerate_pps_68B} | 56818181
175 | | Set Suite Variable | ${40Ge_linerate_pps_72B} | 54347826
176 | | Set Suite Variable | ${40Ge_linerate_pps_78B} | 51020408
177 | | Set Suite Variable | ${40Ge_linerate_pps_114B} |  37313432
178 | | Set Suite Variable | ${40Ge_linerate_pps_1518B} | 3250975
179 | | Set Suite Variable | ${40Ge_linerate_pps_1522B} | 3242542
180 | | Set Suite Variable | ${40Ge_linerate_pps_1568B} | 3148614
181 | | Set Suite Variable | ${40Ge_linerate_pps_9000B} | 554323
182 | | Set Suite Variable | ${40Ge_linerate_pps_9004B} | 554078
183 | | Set Suite Variable | ${40Ge_linerate_pps_9008B} | 553832
184 | | Set Suite Variable | ${40Ge_linerate_pps_9050B} | 551267
185 | | Set Suite Variable | ${40Ge_linerate_pps_IMIX_v4_1} | 13374944
186 | | Set Suite Variable | ${40Ge_lisp_linerate_pps_72B} | 54347826
187 | | Set Suite Variable | ${40Ge_lisp_linerate_pps_86B} | 47169811
188 | | Set Suite Variable | ${40Ge_lisp_linerate_pps_1488B} | 3315649
189 | | Set Suite Variable | ${40Ge_lisp_linerate_pps_9008B} | 553832
190 | | Set Suite Variable | ${40Ge_lisp_iph_linerate_pps_112B} | 37878787
191 | | Set Suite Variable | ${40Ge_lisp_iph_linerate_pps_126B} | 34246575
192 | | Set Suite Variable | ${40Ge_lisp_iph_linerate_pps_1508B} | 3272251
193 | | Set Suite Variable | ${40Ge_lisp_iph_linerate_pps_9048B} | 551389
194
195 | Calculate pps
196 | | [Documentation]
197 | | ... | Calculate pps for given rate and L2 frame size,
198 | | ... | additional 20B are added to L2 frame size as padding.
199 | | ...
200 | | ... | *Arguments*
201 | | ... | - bps - Rate in bps. Type: integer
202 | | ... | - framesize - L2 frame size in Bytes. Type: integer
203 | | ...
204 | | ... | *Return*
205 | | ... | - Calculated pps. Type: integer
206 | | ...
207 | | ... | *Example:*
208 | | ...
209 | | ... | \| Calculate pps \| 10000000000 | 64
210 | | [Arguments] | ${bps} | ${framesize}
211 | | ${ret}= | Evaluate | (${bps}/((${framesize}+20)*8)).__trunc__()
212 | | Return From Keyword | ${ret}
213
214 | Get Frame Size
215 | | [Documentation]
216 | | ... | Framesize can be either integer in case of a single packet
217 | | ... | in stream, or set of packets in case of IMIX type or simmilar.
218 | | ... | This keyword returns average framesize.
219 | | ...
220 | | ... | *Arguments:*
221 | | ... | - framesize - Framesize. Type: integer or string
222 | | ...
223 | | ... | *Example:*
224 | | ...
225 | | ... | \| Get Frame Size \| IMIX_v4_1
226 | | [Arguments] | ${framesize}
227 | | Run Keyword If | '${framesize}' == 'IMIX_v4_1'
228 | | ...            | Return From Keyword | 353.83333
229 | | Return From Keyword | ${framesize}
230
231 | Setup performance global Variables
232 | | [Documentation]
233 | | ... | Setup suite Variables. Variables are used across performance testing.
234 | | ...
235 | | ... | _NOTE:_ This KW sets following suite variables:
236 | | ... | - glob_loss_acceptance - Loss acceptance treshold
237 | | ... | - glob_loss_acceptance_type - Loss acceptance treshold type
238 | | ... | - glob_vm_image - Guest VM disk image
239 | | ...
240 | | Set Suite Variable | ${glob_loss_acceptance} | 0.5
241 | | Set Suite Variable | ${glob_loss_acceptance_type} | percentage
242 | | Set Suite Variable | ${glob_vm_image} | /var/lib/vm/csit-nested-1.3.img
243
244 | 2-node circular Topology Variables Setup
245 | | [Documentation]
246 | | ... | Compute path for testing on two given nodes in circular
247 | | ... | topology and set corresponding suite variables.
248 | | ...
249 | | ... | _NOTE:_ This KW sets following suite variables:
250 | | ... | - tg - TG node
251 | | ... | - tg_if1 - 1st TG interface towards DUT.
252 | | ... | - tg_if2 - 2nd TG interface towards DUT.
253 | | ... | - dut1 - DUT1 node
254 | | ... | - dut1_if1 - 1st DUT interface towards TG.
255 | | ... | - dut1_if2 - 2nd DUT interface towards TG.
256 | | ...
257 | | Append Nodes | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['TG']}
258 | | Compute Path
259 | | ${tg_if1} | ${tg}= | Next Interface
260 | | ${dut1_if1} | ${dut1}= | Next Interface
261 | | ${dut1_if2} | ${dut1}= | Next Interface
262 | | ${tg_if2} | ${tg}= | Next Interface
263 | | Set Suite Variable | ${tg}
264 | | Set Suite Variable | ${tg_if1}
265 | | Set Suite Variable | ${tg_if2}
266 | | Set Suite Variable | ${dut1}
267 | | Set Suite Variable | ${dut1_if1}
268 | | Set Suite Variable | ${dut1_if2}
269
270 | 3-node circular Topology Variables Setup
271 | | [Documentation]
272 | | ... | Compute path for testing on three given nodes in circular
273 | | ... | topology and set corresponding suite variables.
274 | | ...
275 | | ... | _NOTE:_ This KW sets following suite variables:
276 | | ... | - tg - TG node
277 | | ... | - tg_if1 - TG interface towards DUT1.
278 | | ... | - tg_if2 - TG interface towards DUT2.
279 | | ... | - dut1 - DUT1 node
280 | | ... | - dut1_if1 - DUT1 interface towards TG.
281 | | ... | - dut1_if2 - DUT1 interface towards DUT2.
282 | | ... | - dut2 - DUT2 node
283 | | ... | - dut2_if1 - DUT2 interface towards TG.
284 | | ... | - dut2_if2 - DUT2 interface towards DUT1.
285 | | ...
286 | | Append Nodes | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']}
287 | | ...          | ${nodes['TG']}
288 | | Compute Path
289 | | ${tg_if1} | ${tg}= | Next Interface
290 | | ${dut1_if1} | ${dut1}= | Next Interface
291 | | ${dut1_if2} | ${dut1}= | Next Interface
292 | | ${dut2_if1} | ${dut2}= | Next Interface
293 | | ${dut2_if2} | ${dut2}= | Next Interface
294 | | ${tg_if2} | ${tg}= | Next Interface
295 | | Set Suite Variable | ${tg}
296 | | Set Suite Variable | ${tg_if1}
297 | | Set Suite Variable | ${tg_if2}
298 | | Set Suite Variable | ${dut1}
299 | | Set Suite Variable | ${dut1_if1}
300 | | Set Suite Variable | ${dut1_if2}
301 | | Set Suite Variable | ${dut2}
302 | | Set Suite Variable | ${dut2_if1}
303 | | Set Suite Variable | ${dut2_if2}
304
305 | 2-node circular Topology Variables Setup with DUT interface model
306 | | [Documentation]
307 | | ... | Compute path for testing on two given nodes in circular topology
308 | | ... | based on interface model provided as an argument and set
309 | | ... | corresponding suite variables.
310 | | ...
311 | | ... | *Arguments:*
312 | | ... | - iface_model - Interface model. Type: string
313 | | ...
314 | | ... | _NOTE:_ This KW sets following suite variables:
315 | | ... | - tg - TG node
316 | | ... | - tg_if1 - 1st TG interface towards DUT.
317 | | ... | - tg_if2 - 2nd TG interface towards DUT.
318 | | ... | - dut1 - DUT1 node
319 | | ... | - dut1_if1 - 1st DUT interface towards TG.
320 | | ... | - dut1_if2 - 2nd DUT interface towards TG.
321 | | ...
322 | | ... | *Example:*
323 | | ...
324 | | ... | \| 2-node circular Topology Variables Setup with DUT interface model \
325 | | ... | \| Intel-X520-DA2 \|
326 | | [Arguments] | ${iface_model}
327 | | ${iface_model_list}= | Create list | ${iface_model}
328 | | Append Node | ${nodes['TG']}
329 | | Append Node | ${nodes['DUT1']} | filter_list=${iface_model_list}
330 | | Append Node | ${nodes['TG']}
331 | | Compute Path
332 | | ${tg_if1} | ${tg}= | Next Interface
333 | | ${dut1_if1} | ${dut1}= | Next Interface
334 | | ${dut1_if2} | ${dut1}= | Next Interface
335 | | ${tg_if2} | ${tg}= | Next Interface
336 | | Set Suite Variable | ${tg}
337 | | Set Suite Variable | ${tg_if1}
338 | | Set Suite Variable | ${tg_if2}
339 | | Set Suite Variable | ${dut1}
340 | | Set Suite Variable | ${dut1_if1}
341 | | Set Suite Variable | ${dut1_if2}
342
343 | 3-node circular Topology Variables Setup with DUT interface model
344 | | [Documentation]
345 | | ... | Compute path for testing on three given nodes in circular topology
346 | | ... | based on interface model provided as an argument and set
347 | | ... | corresponding suite variables.
348 | | ...
349 | | ... | *Arguments:*
350 | | ... | - iface_model - Interface model. Type: string
351 | | ...
352 | | ... | _NOTE:_ This KW sets following suite variables:
353 | | ... | - tg - TG node
354 | | ... | - tg_if1 - TG interface towards DUT1.
355 | | ... | - tg_if2 - TG interface towards DUT2.
356 | | ... | - dut1 - DUT1 node
357 | | ... | - dut1_if1 - DUT1 interface towards TG.
358 | | ... | - dut1_if2 - DUT1 interface towards DUT2.
359 | | ... | - dut2 - DUT2 node
360 | | ... | - dut2_if1 - DUT2 interface towards TG.
361 | | ... | - dut2_if2 - DUT2 interface towards DUT1.
362 | | ...
363 | | ... | *Example:*
364 | | ...
365 | | ... | \| 3-node circular Topology Variables Setup with DUT interface model \
366 | | ... | \| Intel-X520-DA2 \|
367 | | [Arguments] | ${iface_model}
368 | | ${iface_model_list}= | Create list | ${iface_model}
369 | | Append Node | ${nodes['TG']}
370 | | Append Node | ${nodes['DUT1']} | filter_list=${iface_model_list}
371 | | Append Node | ${nodes['DUT2']} | filter_list=${iface_model_list}
372 | | Append Node | ${nodes['TG']}
373 | | Compute Path
374 | | ${tg_if1} | ${tg}= | Next Interface
375 | | ${dut1_if1} | ${dut1}= | Next Interface
376 | | ${dut1_if2} | ${dut1}= | Next Interface
377 | | ${dut2_if1} | ${dut2}= | Next Interface
378 | | ${dut2_if2} | ${dut2}= | Next Interface
379 | | ${tg_if2} | ${tg}= | Next Interface
380 | | Set Suite Variable | ${tg}
381 | | Set Suite Variable | ${tg_if1}
382 | | Set Suite Variable | ${tg_if2}
383 | | Set Suite Variable | ${dut1}
384 | | Set Suite Variable | ${dut1_if1}
385 | | Set Suite Variable | ${dut1_if2}
386 | | Set Suite Variable | ${dut2}
387 | | Set Suite Variable | ${dut2_if1}
388 | | Set Suite Variable | ${dut2_if2}
389
390 | VPP interfaces in path are up in a 2-node circular topology
391 | | [Documentation]
392 | | ... | *Set UP state on VPP interfaces in path on nodes in 2-node circular
393 | | ... | topology.*
394 | | ...
395 | | Set Interface State | ${dut1} | ${dut1_if1} | up
396 | | Set Interface State | ${dut1} | ${dut1_if2} | up
397 | | Vpp Node Interfaces Ready Wait | ${dut1}
398
399 | VPP interfaces in path are up in a 3-node circular topology
400 | | [Documentation]
401 | | ... | *Set UP state on VPP interfaces in path on nodes in 3-node circular
402 | | ... | topology.*
403 | | ...
404 | | Set Interface State | ${dut1} | ${dut1_if1} | up
405 | | Set Interface State | ${dut1} | ${dut1_if2} | up
406 | | Set Interface State | ${dut2} | ${dut2_if1} | up
407 | | Set Interface State | ${dut2} | ${dut2_if2} | up
408 | | Vpp Node Interfaces Ready Wait | ${dut1}
409 | | Vpp Node Interfaces Ready Wait | ${dut2}
410
411 | IPv4 forwarding initialized in a 3-node circular topology
412 | | [Documentation]
413 | | ... | Set UP state on VPP interfaces in path on nodes in 3-node circular
414 | | ... | topology. Get the interface MAC addresses and setup ARP on all VPP
415 | | ... | interfaces. Setup IPv4 addresses with /24 prefix on DUT-TG links and
416 | | ... | /30 prefix on DUT1-DUT2 link. Set routing on both DUT nodes with
417 | | ... | prefix /24 and next hop of neighbour DUT interface IPv4 address.
418 | | ...
419 | | Set Interface State | ${dut1} | ${dut1_if1} | up
420 | | Set Interface State | ${dut1} | ${dut1_if2} | up
421 | | Set Interface State | ${dut2} | ${dut2_if1} | up
422 | | Set Interface State | ${dut2} | ${dut2_if2} | up
423 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
424 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
425 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
426 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
427 | | dut1_v4.set_arp | ${dut1_if1} | 10.10.10.2 | ${tg1_if1_mac}
428 | | dut1_v4.set_arp | ${dut1_if2} | 1.1.1.2 | ${dut2_if1_mac}
429 | | dut2_v4.set_arp | ${dut2_if1} | 1.1.1.1 | ${dut1_if2_mac}
430 | | dut2_v4.set_arp | ${dut2_if2} | 20.20.20.2 | ${tg1_if2_mac}
431 | | dut1_v4.set_ip | ${dut1_if1} | 10.10.10.1 | 24
432 | | dut1_v4.set_ip | ${dut1_if2} | 1.1.1.1 | 30
433 | | dut2_v4.set_ip | ${dut2_if1} | 1.1.1.2 | 30
434 | | dut2_v4.set_ip | ${dut2_if2} | 20.20.20.1 | 24
435 | | dut1_v4.set_route | 20.20.20.0 | 24 | 1.1.1.2 | ${dut1_if2}
436 | | dut2_v4.set_route | 10.10.10.0 | 24 | 1.1.1.1 | ${dut2_if1}
437 | | All Vpp Interfaces Ready Wait | ${nodes}
438
439 | Scale IPv4 forwarding initialized in a 3-node circular topology
440 | | [Documentation]
441 | | ... | Custom setup of IPv4 topology with scalability of ip routes on all
442 | | ... | DUT nodes in 3-node circular topology
443 | | ...
444 | | ... | *Arguments:*
445 | | ... | - ${count} - IP route count. Type: integer
446 | | ...
447 | | ... | *Return:*
448 | | ... | - No value returned
449 | | ...
450 | | ... | *Example:*
451 | | ...
452 | | ... | \| Scale IPv4 forwarding initialized in a 3-node circular topology \
453 | | ... | \| 100000 \|
454 | | [Arguments] | ${count}
455 | | Set Interface State | ${dut1} | ${dut1_if1} | up
456 | | Set Interface State | ${dut1} | ${dut1_if2} | up
457 | | Set Interface State | ${dut2} | ${dut2_if1} | up
458 | | Set Interface State | ${dut2} | ${dut2_if2} | up
459 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
460 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
461 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
462 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
463 | | Add arp on dut | ${dut1} | ${dut1_if1} | 1.1.1.1 | ${tg1_if1_mac}
464 | | Add arp on dut | ${dut1} | ${dut1_if2} | 2.2.2.2 | ${dut2_if1_mac}
465 | | Add arp on dut | ${dut2} | ${dut2_if1} | 2.2.2.1 | ${dut1_if2_mac}
466 | | Add arp on dut | ${dut2} | ${dut2_if2} | 3.3.3.1 | ${tg1_if2_mac}
467 | | IP addresses are set on interfaces | ${dut1} | ${dut1_if1} | 1.1.1.2 | 30
468 | | IP addresses are set on interfaces | ${dut1} | ${dut1_if2} | 2.2.2.1 | 30
469 | | IP addresses are set on interfaces | ${dut2} | ${dut2_if1} | 2.2.2.2 | 30
470 | | IP addresses are set on interfaces | ${dut2} | ${dut2_if2} | 3.3.3.2 | 30
471 | | Vpp Route Add | ${dut1} | 10.0.0.0 | 32 | 1.1.1.1 | ${dut1_if1}
472 | | ...           | count=${count}
473 | | Vpp Route Add | ${dut1} | 20.0.0.0 | 32 | 2.2.2.2 | ${dut1_if2}
474 | | ...           | count=${count}
475 | | Vpp Route Add | ${dut2} | 10.0.0.0 | 32 | 2.2.2.1 | ${dut2_if1}
476 | | ...           | count=${count}
477 | | Vpp Route Add | ${dut2} | 20.0.0.0 | 32 | 3.3.3.1 | ${dut2_if2}
478 | | ...           | count=${count}
479 | | All Vpp Interfaces Ready Wait | ${nodes}
480
481 | IPv4 forwarding with vhost initialized in a 3-node circular topology
482 | | [Documentation]
483 | | ... | Create vhost-user interfaces in VPP. Set UP state of all VPP
484 | | ... | interfaces in path on nodes in 3-node circular topology. Create 2
485 | | ... | FIB tables on each DUT with multipath routing. Assign pair of
486 | | ... | Physical and Virtual interfaces on both nodes to each FIB table.
487 | | ... | Setup IPv4 addresses with /30 prefix on DUT-TG links and /30 prefix
488 | | ... | on DUT1-DUT2 link. Set routing on all DUT nodes in all FIB tables
489 | | ... | with prefix /24 and next hop of neighbour IPv4 address. Setup
490 | | ... | ARP on all VPP interfaces.
491 | | ...
492 | | ... | *Arguments:*
493 | | ... | - sock1 - Sock path for first Vhost-User interface. Type: string
494 | | ... | - sock2 - Sock path for second Vhost-User interface. Type: string
495 | | ...
496 | | ... | *Return:*
497 | | ... | - No value returned
498 | | ...
499 | | ... | *Example:*
500 | | ...
501 | | ... | \| IPv4 forwarding with vhost initialized in a 3-node circular \
502 | | ... | topology \| /tmp/sock1 \| /tmp/sock2 \|
503 | | [Arguments] | ${sock1} | ${sock2}
504 | | VPP interfaces in path are up in a 3-node circular topology
505 | | VPP Vhost interfaces for L2BD forwarding are setup | ${dut1}
506 | | ...                                                | ${sock1}
507 | | ...                                                | ${sock2}
508 | | ${dut1_vif1}= | Set Variable | ${vhost_if1}
509 | | ${dut1_vif2}= | Set Variable | ${vhost_if2}
510 | | Set Interface State | ${dut1} | ${dut1_vif1} | up
511 | | Set Interface State | ${dut1} | ${dut1_vif2} | up
512 | | VPP Vhost interfaces for L2BD forwarding are setup | ${dut2}
513 | | ...                                                | ${sock1}
514 | | ...                                                | ${sock2}
515 | | ${dut2_vif1}= | Set Variable | ${vhost_if1}
516 | | ${dut2_vif2}= | Set Variable | ${vhost_if2}
517 | | Set Interface State | ${dut2} | ${dut2_vif1} | up
518 | | Set Interface State | ${dut2} | ${dut2_vif2} | up
519 | | ${dut1_vif1_idx}= | Get Interface SW Index | ${dut1} | ${dut1_vif1}
520 | | ${dut1_vif2_idx}= | Get Interface SW Index | ${dut1} | ${dut1_vif2}
521 | | ${dut1_if1_idx}= | Get Interface SW Index | ${dut1} | ${dut1_if1}
522 | | ${dut1_if2_idx}= | Get Interface SW Index | ${dut1} | ${dut1_if2}
523 | | ${dut2_vif1_idx}= | Get Interface SW Index | ${dut2} | ${dut2_vif1}
524 | | ${dut2_vif2_idx}= | Get Interface SW Index | ${dut2} | ${dut2_vif2}
525 | | ${dut2_if1_idx}= | Get Interface SW Index | ${dut2} | ${dut2_if1}
526 | | ${dut2_if2_idx}= | Get Interface SW Index | ${dut2} | ${dut2_if2}
527 | | Add fib table | ${dut1} | 20.20.20.0 | 24 | ${fib_table_1}
528 | | ... | via 4.4.4.2 sw_if_index ${dut1_vif1_idx} multipath
529 | | Add fib table | ${dut1} | 10.10.10.0 | 24 | ${fib_table_1}
530 | | ... | via 1.1.1.2 sw_if_index ${dut1_if1_idx} multipath
531 | | Add fib table | ${dut1} | 20.20.20.0 | 24 | ${fib_table_2}
532 | | ... | via 2.2.2.2 sw_if_index ${dut1_if2_idx} multipath
533 | | Add fib table | ${dut1} | 10.10.10.0 | 24 | ${fib_table_2}
534 | | ... | via 5.5.5.2 sw_if_index ${dut1_vif2_idx} multipath
535 | | Add fib table | ${dut2} | 10.10.10.0 | 24 | ${fib_table_1}
536 | | ... | via 2.2.2.1 sw_if_index ${dut2_if1_idx} multipath
537 | | Add fib table | ${dut2} | 20.20.20.0 | 24 | ${fib_table_1}
538 | | ... | via 4.4.4.1 sw_if_index ${dut2_vif1_idx} multipath
539 | | Add fib table | ${dut2} | 10.10.10.0 | 24 | ${fib_table_2}
540 | | ... | via 5.5.5.2 sw_if_index ${dut2_vif2_idx} multipath
541 | | Add fib table | ${dut2} | 20.20.20.0 | 24 | ${fib_table_2}
542 | | ... | via 3.3.3.2 sw_if_index ${dut2_if2_idx} multipath
543 | | Assign Interface To Fib Table | ${dut1} | ${dut1_if1} | ${fib_table_1}
544 | | Assign Interface To Fib Table | ${dut1} | ${dut1_vif1} | ${fib_table_1}
545 | | Assign Interface To Fib Table | ${dut1} | ${dut1_if2} | ${fib_table_2}
546 | | Assign Interface To Fib Table | ${dut1} | ${dut1_vif2} | ${fib_table_2}
547 | | Assign Interface To Fib Table | ${dut2} | ${dut2_if1} | ${fib_table_1}
548 | | Assign Interface To Fib Table | ${dut2} | ${dut2_vif1} | ${fib_table_1}
549 | | Assign Interface To Fib Table | ${dut2} | ${dut2_if2} | ${fib_table_2}
550 | | Assign Interface To Fib Table | ${dut2} | ${dut2_vif2} | ${fib_table_2}
551 | | IP addresses are set on interfaces | ${dut1} | ${dut1_if1} | 1.1.1.2 | 30
552 | | IP addresses are set on interfaces | ${dut1} | ${dut1_if2} | 2.2.2.1 | 30
553 | | IP addresses are set on interfaces | ${dut1} | ${dut1_vif1} | 4.4.4.1 | 30
554 | | IP addresses are set on interfaces | ${dut1} | ${dut1_vif2} | 5.5.5.1 | 30
555 | | IP addresses are set on interfaces | ${dut2} | ${dut2_if1} | 2.2.2.2 | 30
556 | | IP addresses are set on interfaces | ${dut2} | ${dut2_if2} | 3.3.3.1 | 30
557 | | IP addresses are set on interfaces | ${dut2} | ${dut2_vif1} | 4.4.4.1 | 30
558 | | IP addresses are set on interfaces | ${dut2} | ${dut2_vif2} | 5.5.5.1 | 30
559 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
560 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
561 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
562 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
563 | | ${dut1_vif1_mac}= | Get Vhost User Mac By Sw Index | ${dut1}
564 | | ... | ${dut1_vif1_idx}
565 | | ${dut1_vif2_mac}= | Get Vhost User Mac By Sw Index | ${dut1}
566 | | ... | ${dut1_vif2_idx}
567 | | ${dut2_vif1_mac}= | Get Vhost User Mac By Sw Index | ${dut2}
568 | | ... | ${dut2_vif1_idx}
569 | | ${dut2_vif2_mac}= | Get Vhost User Mac By Sw Index | ${dut2}
570 | | ... | ${dut2_vif2_idx}
571 | | Set Test Variable | ${dut1_vif1_mac}
572 | | Set Test Variable | ${dut1_vif2_mac}
573 | | Set Test Variable | ${dut2_vif1_mac}
574 | | Set Test Variable | ${dut2_vif2_mac}
575 | | Add arp on dut | ${dut1} | ${dut1_if1} | 1.1.1.1 | ${tg1_if1_mac}
576 | | ... | vrf=${fib_table_1}
577 | | Add arp on dut | ${dut1} | ${dut1_if2} | 2.2.2.2 | ${dut2_if1_mac}
578 | | ... | vrf=${fib_table_2}
579 | | Add arp on dut | ${dut1} | ${dut1_vif1} | 4.4.4.2 | 52:54:00:00:04:01
580 | | ... | vrf=${fib_table_1}
581 | | Add arp on dut | ${dut1} | ${dut1_vif2} | 5.5.5.2 | 52:54:00:00:04:02
582 | | ... | vrf=${fib_table_2}
583 | | Add arp on dut | ${dut2} | ${dut2_if1} | 2.2.2.1 | ${dut1_if2_mac}
584 | | ... | vrf=${fib_table_1}
585 | | Add arp on dut | ${dut2} | ${dut2_if2} | 3.3.3.2 | ${tg1_if2_mac}
586 | | ... | vrf=${fib_table_2}
587 | | Add arp on dut | ${dut2} | ${dut2_vif1} | 4.4.4.2 | 52:54:00:00:04:01
588 | | ... | vrf=${fib_table_1}
589 | | Add arp on dut | ${dut2} | ${dut2_vif2} | 5.5.5.2 | 52:54:00:00:04:02
590 | | ... | vrf=${fib_table_2}
591 | | Vpp Route Add | ${dut1} | 20.20.20.0 | 24 | 4.4.4.2 | ${dut1_vif1}
592 | | ... | vrf=${fib_table_1}
593 | | Vpp Route Add | ${dut1} | 10.10.10.0 | 24 | 1.1.1.1 | ${dut1_if1}
594 | | ... | vrf=${fib_table_1}
595 | | Vpp Route Add | ${dut1} | 20.20.20.0 | 24 | 2.2.2.2 | ${dut1_if2}
596 | | ... | vrf=${fib_table_2}
597 | | Vpp Route Add | ${dut1} | 10.10.10.0 | 24 | 5.5.5.2 | ${dut1_vif2}
598 | | ... | vrf=${fib_table_2}
599 | | Vpp Route Add | ${dut2} | 20.20.20.0 | 24 | 4.4.4.2 | ${dut2_vif1}
600 | | ... | vrf=${fib_table_1}
601 | | Vpp Route Add | ${dut2} | 10.10.10.0 | 24 | 2.2.2.1 | ${dut2_if1}
602 | | ... | vrf=${fib_table_1}
603 | | Vpp Route Add | ${dut2} | 20.20.20.0 | 24 | 3.3.3.2 | ${dut2_if2}
604 | | ... | vrf=${fib_table_2}
605 | | Vpp Route Add | ${dut2} | 10.10.10.0 | 24 | 5.5.5.2 | ${dut2_vif2}
606 | | ... | vrf=${fib_table_2}
607
608 | IPv6 forwarding initialized in a 3-node circular topology
609 | | [Documentation]
610 | | ... | Set UP state on VPP interfaces in path on nodes in 3-node circular
611 | | ... | topology. Get the interface MAC addresses and setup neighbour on all
612 | | ... | VPP interfaces. Setup IPv6 addresses with /128 prefixes on all
613 | | ... | interfaces. Set routing on both DUT nodes with prefix /64 and
614 | | ... | next hop of neighbour DUT interface IPv6 address.
615 | | ...
616 | | ${prefix}= | Set Variable | 64
617 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
618 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
619 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
620 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
621 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if1} | 2001:1::1 | ${prefix}
622 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if2} | 2001:3::1 | ${prefix}
623 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if1} | 2001:3::2 | ${prefix}
624 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if2} | 2001:2::1 | ${prefix}
625 | | Vpp nodes ra suppress link layer | ${nodes}
626 | | Add Ip Neighbor | ${dut1} | ${dut1_if1} | 2001:1::2 | ${tg1_if1_mac}
627 | | Add Ip Neighbor | ${dut2} | ${dut2_if2} | 2001:2::2 | ${tg1_if2_mac}
628 | | Add Ip Neighbor | ${dut1} | ${dut1_if2} | 2001:3::2 | ${dut2_if1_mac}
629 | | Add Ip Neighbor | ${dut2} | ${dut2_if1} | 2001:3::1 | ${dut1_if2_mac}
630 | | Vpp Route Add | ${dut1} | 2001:2::0 | ${prefix} | 2001:3::2 | ${dut1_if2}
631 | | Vpp Route Add | ${dut2} | 2001:1::0 | ${prefix} | 2001:3::1 | ${dut2_if1}
632
633 | Scale IPv6 forwarding initialized in a 3-node circular topology
634 | | [Documentation]
635 | | ... | Custom setup of IPv6 topology with scalability of ip routes on all
636 | | ... | DUT nodes in 3-node circular topology
637 | | ...
638 | | ... | *Arguments:*
639 | | ... | - ${count} - IP route count. Type: integer
640 | | ...
641 | | ... | *Return:*
642 | | ... | - No value returned
643 | | ...
644 | | ... | *Example:*
645 | | ...
646 | | ... | \| Scale IPv6 forwarding initialized in a 3-node circular topology \
647 | | ... | \| 100000 \|
648 | | [Arguments] | ${count}
649 | | ${subn_prefix}= | Set Variable | 64
650 | | ${host_prefix}= | Set Variable | 128
651 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if1} | 2001:3::1 | ${subn_prefix}
652 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if2} | 2001:4::1 | ${subn_prefix}
653 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if1} | 2001:4::2 | ${subn_prefix}
654 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if2} | 2001:5::1 | ${subn_prefix}
655 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
656 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
657 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
658 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
659 | | Vpp nodes ra suppress link layer | ${nodes}
660 | | Add Ip Neighbor | ${dut1} | ${dut1_if1} | 2001:3::2 | ${tg1_if1_mac}
661 | | Add Ip Neighbor | ${dut1} | ${dut1_if2} | 2001:4::2 | ${dut2_if1_mac}
662 | | Add Ip Neighbor | ${dut2} | ${dut2_if1} | 2001:4::1 | ${dut1_if2_mac}
663 | | Add Ip Neighbor | ${dut2} | ${dut2_if2} | 2001:5::2 | ${tg1_if2_mac}
664 | | Vpp Route Add | ${dut1} | 2001:2::0 | ${host_prefix} | 2001:4::2
665 | | ...           | interface=${dut1_if2} | count=${count}
666 | | Vpp Route Add | ${dut1} | 2001:1::0 | ${host_prefix} | 2001:3::2
667 | | ...           | interface=${dut1_if1} | count=${count}
668 | | Vpp Route Add | ${dut2} | 2001:1::0 | ${host_prefix} | 2001:4::1
669 | | ...           | interface=${dut2_if2} | count=${count}
670 | | Vpp Route Add | ${dut2} | 2001:2::0 | ${host_prefix} | 2001:5::2
671 | | ...           | interface=${dut2_if1} | count=${count}
672
673 | IPv6 iAcl whitelist initialized in a 3-node circular topology
674 | | [Documentation]
675 | | ... | Creates classify L3 table on DUTs. IPv6 iAcl security whitelist
676 | | ... | ingress /64 filter entries applied on links TG - DUT1 and DUT2 - TG.
677 | | ...
678 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
679 | | ... | ${dut1} | ip6 | dst
680 | | And Vpp Configures Classify Session L3
681 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
682 | | ... | ip6 | dst | 2001:2::2
683 | | And Vpp Enable Input Acl Interface
684 | | ... | ${dut1} | ${dut1_if1} | ip6 | ${table_idx}
685 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
686 | | ... | ${dut2} | ip6 | dst
687 | | And Vpp Configures Classify Session L3
688 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
689 | | ... | ip6 | dst | 2001:1::2
690 | | And Vpp Enable Input Acl Interface
691 | | ... | ${dut2} | ${dut2_if2} | ip6 | ${table_idx}
692
693 | L2 xconnect initialized in a 3-node circular topology
694 | | [Documentation]
695 | | ... | Setup L2 xconnect topology by cross connecting two interfaces on
696 | | ... | each DUT. Interfaces are brought up.
697 | | ... |
698 | | L2 setup xconnect on DUT | ${dut1} | ${dut1_if1} | ${dut1_if2}
699 | | L2 setup xconnect on DUT | ${dut2} | ${dut2_if1} | ${dut2_if2}
700 | | All Vpp Interfaces Ready Wait | ${nodes}
701
702 | L2 xconnect with VXLANoIPv4 initialized in a 3-node circular topology
703 | | [Documentation]
704 | | ... | Setup L2 xconnect topology with VXLANoIPv4 by cross connecting
705 | | ... | physical and vxlan interfaces on each DUT. All interfaces are brought
706 | | ... | up. IPv4 addresses with prefix /24 are configured on interfaces
707 | | ... | between DUTs. VXLAN sub-interfaces has same IPv4 address as
708 | | ... | interfaces.
709 | | ...
710 | | VPP interfaces in path are up in a 3-node circular topology
711 | | IP addresses are set on interfaces | ${dut1} | ${dut1_if2} | 172.16.0.1
712 | | ...                                | 24
713 | | IP addresses are set on interfaces | ${dut2} | ${dut2_if1} | 172.16.0.2
714 | | ...                                | 24
715 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
716 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
717 | | Add arp on dut | ${dut1} | ${dut1_if2} | 172.16.0.2 | ${dut2_if1_mac}
718 | | Add arp on dut | ${dut2} | ${dut2_if1} | 172.16.0.1 | ${dut1_if2_mac}
719 | | ${dut1s_vxlan}= | Create VXLAN interface | ${dut1} | 24
720 | | ...             | 172.16.0.1 | 172.16.0.2
721 | | L2 setup xconnect on DUT | ${dut1} | ${dut1_if1} | ${dut1s_vxlan}
722 | | ${dut2s_vxlan}= | Create VXLAN interface | ${dut2} | 24
723 | | ...             | 172.16.0.2 | 172.16.0.1
724 | | L2 setup xconnect on DUT | ${dut2} | ${dut2_if2} | ${dut2s_vxlan}
725
726 | L2 xconnect with Vhost-User initialized in a 3-node circular topology
727 | | [Documentation]
728 | | ... | Create two Vhost-User interfaces on all defined VPP nodes. Cross
729 | | ... | connect each Vhost interface with one physical interface.
730 | | ...
731 | | ... | *Arguments:*
732 | | ... | - sock1 - Socket path for first Vhost-User interface. Type: string
733 | | ... | - sock2 - Socket path for second Vhost-User interface. Type: string
734 | | ...
735 | | ... | *Example:*
736 | | ...
737 | | ... | \| L2 xconnect with Vhost-User initialized in a 3-node \
738 | | ... |    circular topology \| /tmp/sock1 \| /tmp/sock2 \|
739 | | [Arguments] | ${sock1} | ${sock2}
740 | | VPP Vhost interfaces for L2BD forwarding are setup | ${dut1}
741 | | ...                                                | ${sock1}
742 | | ...                                                | ${sock2}
743 | | L2 setup xconnect on DUT | ${dut1} | ${dut1_if1} | ${vhost_if1}
744 | | L2 setup xconnect on DUT | ${dut1} | ${dut1_if2} | ${vhost_if2}
745 | | VPP Vhost interfaces for L2BD forwarding are setup | ${dut2}
746 | | ...                                                | ${sock1}
747 | | ...                                                | ${sock2}
748 | | L2 setup xconnect on DUT | ${dut2} | ${dut2_if1} | ${vhost_if1}
749 | | L2 setup xconnect on DUT | ${dut2} | ${dut2_if2} | ${vhost_if2}
750 | | All Vpp Interfaces Ready Wait | ${nodes}
751
752 | L2 bridge domain initialized in a 3-node circular topology
753 | | [Documentation]
754 | | ... | Setup L2 DB topology by adding two interfaces on each DUT into BD
755 | | ... | that is created automatically with index 1. Learning is enabled.
756 | | ... | Interfaces are brought up.
757 | | ... |
758 | | Vpp l2bd forwarding setup | ${dut1} | ${dut1_if1} | ${dut1_if2}
759 | | Vpp l2bd forwarding setup | ${dut2} | ${dut2_if1} | ${dut2_if2}
760 | | All Vpp Interfaces Ready Wait | ${nodes}
761
762 | L2 bridge domains with Vhost-User initialized in a 3-node circular topology
763 | | [Documentation]
764 | | ... | Create two Vhost-User interfaces on all defined VPP nodes. Add each
765 | | ... | Vhost-User interface into L2 bridge domains with learning enabled
766 | | ... | with physical inteface.
767 | | ...
768 | | ... | *Arguments:*
769 | | ... | - bd_id1 - Bridge domain ID. Type: integer
770 | | ... | - bd_id2 - Bridge domain ID. Type: integer
771 | | ... | - sock1 - Sock path for first Vhost-User interface. Type: string
772 | | ... | - sock2 - Sock path for second Vhost-User interface. Type: string
773 | | ...
774 | | ... | *Example:*
775 | | ...
776 | | ... | \| L2 bridge domains with Vhost-User initialized in a 3-node \
777 | | ... |    circular topology \| 1 \| 2 \| /tmp/sock1 \| /tmp/sock2 \|
778 | | [Arguments] | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
779 | | VPP Vhost interfaces for L2BD forwarding are setup | ${dut1}
780 | | ...                                                | ${sock1}
781 | | ...                                                | ${sock2}
782 | | Interface is added to bridge domain | ${dut1} | ${dut1_if1} | ${bd_id1}
783 | | Interface is added to bridge domain | ${dut1} | ${vhost_if1} | ${bd_id1}
784 | | Interface is added to bridge domain | ${dut1} | ${dut1_if2} | ${bd_id2}
785 | | Interface is added to bridge domain | ${dut1} | ${vhost_if2} | ${bd_id2}
786 | | VPP Vhost interfaces for L2BD forwarding are setup | ${dut2}
787 | | ...                                                | ${sock1}
788 | | ...                                                | ${sock2}
789 | | Interface is added to bridge domain | ${dut2} | ${dut2_if1} | ${bd_id1}
790 | | Interface is added to bridge domain | ${dut2} | ${vhost_if1} | ${bd_id1}
791 | | Interface is added to bridge domain | ${dut2} | ${dut2_if2} | ${bd_id2}
792 | | Interface is added to bridge domain | ${dut2} | ${vhost_if2} | ${bd_id2}
793 | | All Vpp Interfaces Ready Wait | ${nodes}
794
795 2-node Performance Suite Setup with DUT's NIC model
796 | | [Documentation]
797 | | ... | Suite preparation phase that setup default startup configuration of
798 | | ... | VPP on all DUTs. Updates interfaces on all nodes and setup global
799 | | ... | variables used in test cases based on interface model provided as an
800 | | ... | argument. Initializes traffic generator.
801 | | ...
802 | | ... | *Arguments:*
803 | | ... | - topology_type - Topology type. Type: string
804 | | ... | - nic_model - Interface model. Type: string
805 | | ...
806 | | ... | *Example:*
807 | | ...
808 | | ... | \| 2-node Performance Suite Setup \| L2 \| Intel-X520-DA2 \|
809 | | [Arguments] | ${topology_type} | ${nic_model}
810 | | Setup default startup configuration of VPP on all DUTs
811 | | Show vpp version on all DUTs
812 | | Setup performance rate Variables
813 | | Setup performance global Variables
814 | | 2-node circular Topology Variables Setup with DUT interface model
815 | | ... | ${nic_model}
816 | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2}
817 | | ...                          | ${dut1} | ${dut1_if1}
818 | | ...                          | ${dut1} | ${dut1_if2}
819 | | ...                          | ${topology_type}
820
821 3-node Performance Suite Setup with DUT's NIC model
822 | | [Documentation]
823 | | ... | Suite preparation phase that setup default startup configuration of
824 | | ... | VPP on all DUTs. Updates interfaces on all nodes and setup global
825 | | ... | variables used in test cases based on interface model provided as an
826 | | ... | argument. Initializes traffic generator.
827 | | ...
828 | | ... | *Arguments:*
829 | | ... | - topology_type - Topology type. Type: string
830 | | ... | - nic_model - Interface model. Type: string
831 | | ...
832 | | ... | *Example:*
833 | | ...
834 | | ... | \| 3-node Performance Suite Setup \| L2 \| Intel-X520-DA2 \|
835 | | [Arguments] | ${topology_type} | ${nic_model}
836 | | Setup default startup configuration of VPP on all DUTs
837 | | Show vpp version on all DUTs
838 | | Setup performance rate Variables
839 | | Setup performance global Variables
840 | | 3-node circular Topology Variables Setup with DUT interface model
841 | | ... | ${nic_model}
842 | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2}
843 | | ...                          | ${dut1} | ${dut1_if1}
844 | | ...                          | ${dut2} | ${dut2_if2}
845 | | ...                          | ${topology_type}
846
847 | 3-node Performance Suite Teardown
848 | | [Documentation]
849 | | ... | Suite teardown phase with traffic generator teardown.
850 | | ...
851 | | Teardown traffic generator | ${tg}
852
853 | Find NDR using linear search and pps
854 | | [Documentation]
855 | | ... | Find throughput by using RFC2544 linear search with non drop rate.
856 | | ...
857 | | ... | *Arguments:*
858 | | ... | - framesize - L2 Frame Size [B]. Type: integer
859 | | ... | - start_rate - Initial start rate [pps]. Type: float
860 | | ... | - step_rate - Step of linear search [pps]. Type: float
861 | | ... | - topology_type - Topology type. Type: string
862 | | ... | - min_rate - Lower limit of search [pps]. Type: float
863 | | ... | - max_rate - Upper limit of search [pps]. Type: float
864 | | ...
865 | | ... | *Return:*
866 | | ... | - No value returned
867 | | ...
868 | | ... | *Example:*
869 | | ...
870 | | ... | \| Find NDR using linear search and pps \| 64 \| 5000000 \| \
871 | | ... | \| 100000 \| 3-node-IPv4 \| 100000 \| 14880952
872 | | [Arguments] | ${framesize} | ${start_rate} | ${step_rate}
873 | | ...         | ${topology_type} | ${min_rate} | ${max_rate}
874 | | ${duration}= | Set Variable | 10
875 | | Set Duration | ${duration}
876 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
877 | | Set Search Linear Step | ${step_rate}
878 | | Set Search Frame Size | ${framesize}
879 | | Set Search Rate Type pps
880 | | Linear Search | ${start_rate} | ${topology_type}
881 | | ${rate_per_stream} | ${latency}= | Verify Search Result
882 | | Display result of NDR search | ${rate_per_stream} | ${framesize} | 2
883 | | ...                          | ${latency}
884 | | Traffic should pass with no loss | ${duration} | ${rate_per_stream}pps
885 | | ...                              | ${framesize} | ${topology_type}
886 | | ...                              | fail_on_loss=${False}
887
888 | Find PDR using linear search and pps
889 | | [Documentation]
890 | | ... | Find throughput by using RFC2544 linear search with partial drop rate
891 | | ... | with PDR threshold and type specified by parameter.
892 | | ...
893 | | ... | *Arguments:*
894 | | ... | - framesize - L2 Frame Size [B]. Type: integer
895 | | ... | - start_rate - Initial start rate [pps]. Type: float
896 | | ... | - step_rate - Step of linear search [pps]. Type: float
897 | | ... | - topology_type - Topology type. Type: string
898 | | ... | - min_rate - Lower limit of search [pps]. Type: float
899 | | ... | - max_rate - Upper limit of search [pps]. Type: float
900 | | ... | - loss_acceptance - Accepted loss during search. Type: float
901 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
902 | | ...
903 | | ... | *Example:*
904 | | ...
905 | | ... | \| Find PDR using linear search and pps \| 64 \| 5000000 \
906 | | ... | \| 100000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 0.5 \| percentage
907 | | [Arguments] | ${framesize} | ${start_rate} | ${step_rate}
908 | | ...         | ${topology_type} | ${min_rate} | ${max_rate}
909 | | ...         | ${loss_acceptance}=0 | ${loss_acceptance_type}='frames'
910 | | ${duration}= | Set Variable | 10
911 | | Set Duration | ${duration}
912 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
913 | | Set Search Linear Step | ${step_rate}
914 | | Set Search Frame Size | ${framesize}
915 | | Set Search Rate Type pps
916 | | Set Loss Acceptance | ${loss_acceptance}
917 | | Run Keyword If | '${loss_acceptance_type}' == 'percentage'
918 | | ...            | Set Loss Acceptance Type Percentage
919 | | Linear Search | ${start_rate} | ${topology_type}
920 | | ${rate_per_stream} | ${latency}= | Verify Search Result
921 | | Display result of PDR search | ${rate_per_stream} | ${framesize} | 2
922 | | ...                          | ${loss_acceptance} | ${loss_acceptance_type}
923 | | ...                          | ${latency}
924 | | Traffic should pass with partial loss | ${duration} | ${rate_per_stream}pps
925 | | ...                                   | ${framesize} | ${topology_type}
926 | | ...                                   | ${loss_acceptance}
927 | | ...                                   | ${loss_acceptance_type}
928 | | ...                                   | fail_on_loss=${False}
929
930 | Find NDR using binary search and pps
931 | | [Documentation]
932 | | ... | Find throughput by using RFC2544 binary search with non drop rate.
933 | | ...
934 | | ... | *Arguments:*
935 | | ... | - framesize - L2 Frame Size [B]. Type: integer
936 | | ... | - binary_min - Lower boundary of search [pps]. Type: float
937 | | ... | - binary_max - Upper boundary of search [pps]. Type: float
938 | | ... | - topology_type - Topology type. Type: string
939 | | ... | - min_rate - Lower limit of search [pps]. Type: float
940 | | ... | - max_rate - Upper limit of search [pps]. Type: float
941 | | ... | - threshold - Threshold to stop search [pps]. Type: integer
942 | | ...
943 | | ... | *Example:*
944 | | ...
945 | | ... | \| Find NDR using binary search and pps \| 64 \| 6000000 \
946 | | ... | \| 12000000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 50000
947 | | [Arguments] | ${framesize} | ${binary_min} | ${binary_max}
948 | | ...         | ${topology_type} | ${min_rate} | ${max_rate} | ${threshold}
949 | | ${duration}= | Set Variable | 10
950 | | Set Duration | ${duration}
951 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
952 | | Set Search Frame Size | ${framesize}
953 | | Set Search Rate Type pps
954 | | Set Binary Convergence Threshold | ${threshold}
955 | | Binary Search | ${binary_min} | ${binary_max} | ${topology_type}
956 | | ${rate_per_stream} | ${latency}= | Verify Search Result
957 | | Display result of NDR search | ${rate_per_stream} | ${framesize} | 2
958 | | ...                          | ${latency}
959 | | Traffic should pass with no loss | ${duration} | ${rate_per_stream}pps
960 | | ...                              | ${framesize} | ${topology_type}
961 | | ...                              | fail_on_loss=${False}
962
963 | Find PDR using binary search and pps
964 | | [Documentation]
965 | | ... | Find throughput by using RFC2544 binary search with partial drop rate
966 | | ... | with PDR threshold and type specified by parameter.
967 | | ...
968 | | ... | *Arguments:*
969 | | ... | - framesize - L2 Frame Size [B]. Type: integer
970 | | ... | - binary_min - Lower boundary of search [pps]. Type: float
971 | | ... | - binary_max - Upper boundary of search [pps]. Type: float
972 | | ... | - topology_type - Topology type. Type: string
973 | | ... | - min_rate - Lower limit of search [pps]. Type: float
974 | | ... | - max_rate - Upper limit of search [pps]. Type: float
975 | | ... | - threshold - Threshold to stop search [pps]. Type: integer
976 | | ... | - loss_acceptance - Accepted loss during search. Type: float
977 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
978 | | ...
979 | | ... | *Example:*
980 | | ...
981 | | ... | \| Find PDR using binary search and pps \| 64 \| 6000000 \
982 | | ... | \| 12000000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 50000 \| 0.5 \
983 | | ... | \| percentage
984 | | [Arguments] | ${framesize} | ${binary_min} | ${binary_max}
985 | | ...         | ${topology_type} | ${min_rate} | ${max_rate} | ${threshold}
986 | | ...         | ${loss_acceptance}=0 | ${loss_acceptance_type}='frames'
987 | | ${duration}= | Set Variable | 10
988 | | Set Duration | ${duration}
989 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
990 | | Set Search Frame Size | ${framesize}
991 | | Set Search Rate Type pps
992 | | Set Loss Acceptance | ${loss_acceptance}
993 | | Run Keyword If | '${loss_acceptance_type}' == 'percentage'
994 | | ...            | Set Loss Acceptance Type Percentage
995 | | Set Binary Convergence Threshold | ${threshold}
996 | | Binary Search | ${binary_min} | ${binary_max} | ${topology_type}
997 | | ${rate_per_stream} | ${latency}= | Verify Search Result
998 | | Display result of PDR search | ${rate_per_stream} | ${framesize} | 2
999 | | ...                          | ${loss_acceptance} | ${loss_acceptance_type}
1000 | | ...                          | ${latency}
1001 | | Traffic should pass with partial loss | ${duration} | ${rate_per_stream}pps
1002 | | ...                                   | ${framesize} | ${topology_type}
1003 | | ...                                   | ${loss_acceptance}
1004 | | ...                                   | ${loss_acceptance_type}
1005 | | ...                                   | fail_on_loss=${False}
1006
1007 | Find NDR using combined search and pps
1008 | | [Documentation]
1009 | | ... | Find throughput by using RFC2544 combined search (linear+binary) with
1010 | | ... | non drop rate.
1011 | | ...
1012 | | ... | *Arguments:*
1013 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1014 | | ... | - start_rate - Initial start rate [pps]. Type: float
1015 | | ... | - step_rate - Step of linear search [pps]. Type: float
1016 | | ... | - topology_type - Topology type. Type: string
1017 | | ... | - min_rate - Lower limit of search [pps]. Type: float
1018 | | ... | - max_rate - Upper limit of search [pps]. Type: float
1019 | | ... | - threshold - Threshold to stop search [pps]. Type: integer
1020 | | ...
1021 | | ... | *Example:*
1022 | | ...
1023 | | ... | \| Find NDR using combined search and pps \| 64 \| 5000000 \
1024 | | ... | \| 100000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 5000
1025 | | [Arguments] | ${framesize} | ${start_rate} | ${step_rate}
1026 | | ...         | ${topology_type} | ${min_rate} | ${max_rate} | ${threshold}
1027 | | ${duration}= | Set Variable | 10
1028 | | Set Duration | ${duration}
1029 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
1030 | | Set Search Linear Step | ${step_rate}
1031 | | Set Search Frame Size | ${framesize}
1032 | | Set Search Rate Type pps
1033 | | Set Binary Convergence Threshold | ${threshold}
1034 | | Combined Search | ${start_rate} | ${topology_type}
1035 | | ${rate_per_stream} | ${latency}= | Verify Search Result
1036 | | Display result of NDR search | ${rate_per_stream} | ${framesize} | 2
1037 | | ...                          | ${latency}
1038 | | Traffic should pass with no loss | ${duration} | ${rate_per_stream}pps
1039 | | ...                              | ${framesize} | ${topology_type}
1040 | | ...                              | fail_on_loss=${False}
1041
1042 | Find PDR using combined search and pps
1043 | | [Documentation]
1044 | | ... | Find throughput by using RFC2544 combined search (linear+binary) with
1045 | | ... | partial drop rate with PDR threshold and type specified by parameter.
1046 | | ...
1047 | | ... | *Arguments:*
1048 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1049 | | ... | - start_rate - Initial start rate [pps]. Type: float
1050 | | ... | - step_rate - Step of linear search [pps]. Type: float
1051 | | ... | - topology_type - Topology type. Type: string
1052 | | ... | - min_rate - Lower limit of search [pps]. Type: float
1053 | | ... | - max_rate - Upper limit of search [pps]. Type: float
1054 | | ... | - threshold - Threshold to stop search [pps]. Type: integer
1055 | | ... | - loss_acceptance - Accepted loss during search. Type: float
1056 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
1057 | | ...
1058 | | ... | *Example:*
1059 | | ...
1060 | | ... | \| Find PDR using combined search and pps \| 64 \| 5000000 \
1061 | | ... | \| 100000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 5000 \| 0.5 \
1062 | | ... | \| percentage
1063 | | [Arguments] | ${framesize} | ${start_rate} | ${step_rate}
1064 | | ...         | ${topology_type} | ${min_rate} | ${max_rate} | ${threshold}
1065 | | ...         | ${loss_acceptance}=0 | ${loss_acceptance_type}='frames'
1066 | | ${duration}= | Set Variable | 10
1067 | | Set Duration | ${duration}
1068 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
1069 | | Set Search Linear Step | ${step_rate}
1070 | | Set Search Frame Size | ${framesize}
1071 | | Set Search Rate Type pps
1072 | | Set Loss Acceptance | ${loss_acceptance}
1073 | | Run Keyword If | '${loss_acceptance_type}' == 'percentage'
1074 | | ...            | Set Loss Acceptance Type Percentage
1075 | | Set Binary Convergence Threshold | ${threshold}
1076 | | Combined Search | ${start_rate} | ${topology_type}
1077 | | ${rate_per_stream} | ${latency}= | Verify Search Result
1078 | | Display result of PDR search | ${rate_per_stream} | ${framesize} | 2
1079 | | ...                          | ${loss_acceptance} | ${loss_acceptance_type}
1080 | | ...                          | ${latency}
1081 | | Traffic should pass with partial loss | ${duration} | ${rate_per_stream}pps
1082 | | ...                                   | ${framesize} | ${topology_type}
1083 | | ...                                   | ${loss_acceptance}
1084 | | ...                                   | ${loss_acceptance_type}
1085 | | ...                                   | fail_on_loss=${False}
1086
1087 | Display result of NDR search
1088 | | [Documentation]
1089 | | ... | Display result of NDR search in packet per seconds (total and per
1090 | | ... | stream) and Gbps total bandwidth with untagged packet.
1091 | | ... | Througput is calculated as:
1092 | | ... | Measured rate per stream * Total number of streams
1093 | | ... | Bandwidth is calculated as:
1094 | | ... | (Througput * (L2 Frame Size + IPG) * 8) / Max bitrate of NIC
1095 | | ...
1096 | | ... | *Arguments:*
1097 | | ... | - rate_per_stream - Measured rate per stream [pps]. Type: string
1098 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1099 | | ... | - nr_streams - Total number of streams. Type: integer
1100 | | ... | - latency - Latency stats. Type: dictionary
1101 | | ...
1102 | | ... | *Example:*
1103 | | ...
1104 | | ... | \| Display result of NDR search \| 4400000 \| 64 \| 2 \
1105 | | ... | \| (0, 10/10/10) \|
1106 | | [Arguments] | ${rate_per_stream} | ${framesize} | ${nr_streams}
1107 | | ...         | ${latency}
1108 | | ${framesize}= | Get Frame Size | ${framesize}
1109 | | ${rate_total}= | Evaluate | ${rate_per_stream}*${nr_streams}
1110 | | ${bandwidth_total}= | Evaluate | ${rate_total}*(${framesize}+20)*8/(10**9)
1111 | | Set Test Message | FINAL_RATE: ${rate_total} pps
1112 | | Set Test Message | (${nr_streams}x ${rate_per_stream} pps)
1113 | | ...              | append=yes
1114 | | Set Test Message | ${\n}FINAL_BANDWIDTH: ${bandwidth_total} Gbps (untagged)
1115 | | ...              | append=yes
1116 | | :FOR | ${idx} | ${lat} | IN ENUMERATE | @{latency}
1117 | | | Set Test Message | ${\n}LATENCY_STREAM_${idx}: ${lat} usec (min/avg/max)
1118 | | ...                | append=yes
1119
1120 | Display result of PDR search
1121 | | [Documentation]
1122 | | ... | Display result of PDR search in packet per seconds (total and per
1123 | | ... | stream) and Gbps total bandwidth with untagged packet.
1124 | | ... | Througput is calculated as:
1125 | | ... | Measured rate per stream * Total number of streams
1126 | | ... | Bandwidth is calculated as:
1127 | | ... | (Througput * (L2 Frame Size + IPG) * 8) / Max bitrate of NIC
1128 | | ...
1129 | | ... | *Arguments:*
1130 | | ... | - rate_per_stream - Measured rate per stream [pps]. Type: string
1131 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1132 | | ... | - nr_streams - Total number of streams. Type: integer
1133 | | ... | - loss_acceptance - Accepted loss during search. Type: float
1134 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
1135 | | ... | - latency - Latency stats. Type: dictionary
1136 | | ...
1137 | | ... | *Example:*
1138 | | ...
1139 | | ... | \| Display result of PDR search \| 4400000 \| 64 \| 2 \| 0.5 \
1140 | | ... | \| percentage \| (0, 10/10/10) \|
1141 | | [Arguments] | ${rate_per_stream} | ${framesize} | ${nr_streams}
1142 | | ...         | ${loss_acceptance} | ${loss_acceptance_type} | ${latency}
1143 | | ${framesize}= | Get Frame Size | ${framesize}
1144 | | ${rate_total}= | Evaluate | ${rate_per_stream}*${nr_streams}
1145 | | ${bandwidth_total}= | Evaluate | ${rate_total}*(${framesize}+20)*8/(10**9)
1146 | | Set Test Message | FINAL_RATE: ${rate_total} pps
1147 | | Set Test Message | (${nr_streams}x ${rate_per_stream} pps)
1148 | | ...              | append=yes
1149 | | Set Test Message | ${\n}FINAL_BANDWIDTH: ${bandwidth_total} Gbps (untagged)
1150 | | ...              | append=yes
1151 | | :FOR | ${idx} | ${lat} | IN ENUMERATE | @{latency}
1152 | | | Set Test Message | ${\n}LATENCY_STREAM_${idx}: ${lat} usec (min/avg/max)
1153 | | ...                | append=yes
1154 | | Set Test Message | ${\n}LOSS_ACCEPTANCE: ${loss_acceptance} ${loss_acceptance_type}
1155 | | ...              | append=yes
1156
1157 | Traffic should pass with no loss
1158 | | [Documentation]
1159 | | ... | Send traffic at specified rate. No packet loss is accepted at loss
1160 | | ... | evaluation.
1161 | | ...
1162 | | ... | *Arguments:*
1163 | | ... | - duration - Duration of traffic run [s]. Type: integer
1164 | | ... | - rate - Rate for sending packets. Type: string
1165 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1166 | | ... | - topology_type - Topology type. Type: string
1167 | | ...
1168 | | ... | *Example:*
1169 | | ...
1170 | | ... | \| Traffic should pass with no loss \| 10 \| 4.0mpps \| 64 \
1171 | | ... | \| 3-node-IPv4
1172 | | [Arguments] | ${duration} | ${rate} | ${framesize} | ${topology_type}
1173 | | ...         | ${fail_on_loss}=${True}
1174 | | Clear and show runtime counters with running traffic | ${duration}
1175 | | ...  | ${rate} | ${framesize} | ${topology_type}
1176 | | Clear all counters on all DUTs
1177 | | Send traffic on tg | ${duration} | ${rate} | ${framesize}
1178 | | ...                | ${topology_type} | warmup_time=0
1179 | | Show statistics on all DUTs
1180 | | Run Keyword If | ${fail_on_loss} | No traffic loss occurred
1181
1182 | Traffic should pass with partial loss
1183 | | [Documentation]
1184 | | ... | Send traffic at specified rate. Partial packet loss is accepted
1185 | | ... | within loss acceptance value specified as argument.
1186 | | ...
1187 | | ... | *Arguments:*
1188 | | ... | - duration - Duration of traffic run [s]. Type: integer
1189 | | ... | - rate - Rate for sending packets. Type: string
1190 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1191 | | ... | - topology_type - Topology type. Type: string
1192 | | ... | - loss_acceptance - Accepted loss during search. Type: float
1193 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
1194 | | ...
1195 | | ... | *Example:*
1196 | | ...
1197 | | ... | \| Traffic should pass with partial loss \| 10 \| 4.0mpps \| 64 \
1198 | | ... | \| 3-node-IPv4 \| 0.5 \| percentage
1199 | | [Arguments] | ${duration} | ${rate} | ${framesize} | ${topology_type}
1200 | | ...         | ${loss_acceptance} | ${loss_acceptance_type}
1201 | | ...         | ${fail_on_loss}=${True}
1202 | | Clear and show runtime counters with running traffic | ${duration}
1203 | | ...  | ${rate} | ${framesize} | ${topology_type}
1204 | | Clear all counters on all DUTs
1205 | | Send traffic on tg | ${duration} | ${rate} | ${framesize}
1206 | | ...                | ${topology_type} | warmup_time=0
1207 | | Show statistics on all DUTs
1208 | | Run Keyword If | ${fail_on_loss} | Partial traffic loss accepted
1209 | | ...            | ${loss_acceptance} | ${loss_acceptance_type}
1210
1211 | Clear and show runtime counters with running traffic
1212 | | [Documentation]
1213 | | ... | Start traffic at specified rate then clear runtime counters on all
1214 | | ... | DUTs. Wait for specified amount of time and capture runtime counters
1215 | | ... | on all DUTs. Finally stop traffic
1216 | | ...
1217 | | ... | *Arguments:*
1218 | | ... | - duration - Duration of traffic run [s]. Type: integer
1219 | | ... | - rate - Rate for sending packets. Type: string
1220 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1221 | | ... | - topology_type - Topology type. Type: string
1222 | | ...
1223 | | ... | *Example:*
1224 | | ...
1225 | | ... | \| Traffic should pass with partial loss \| 10 \| 4.0mpps \| 64 \
1226 | | ... | \| 3-node-IPv4 \| 0.5 \| percentage
1227 | | [Arguments] | ${duration} | ${rate} | ${framesize} | ${topology_type}
1228 | | Send traffic on tg | -1 | ${rate} | ${framesize}
1229 | | ...                | ${topology_type} | warmup_time=0 | async_call=${True}
1230 | | ...                | latency=${False}
1231 | | Clear runtime counters on all DUTs
1232 | | Sleep | ${duration}
1233 | | Show runtime counters on all DUTs
1234 | | Stop traffic on tg
1235
1236 | Add PCI devices to DUTs from 3-node single link topology
1237 | | ${dut1_if1_pci}= | Get Interface PCI Addr | ${dut1} | ${dut1_if1}
1238 | | ${dut1_if2_pci}= | Get Interface PCI Addr | ${dut1} | ${dut1_if2}
1239 | | ${dut2_if1_pci}= | Get Interface PCI Addr | ${dut2} | ${dut2_if1}
1240 | | ${dut2_if2_pci}= | Get Interface PCI Addr | ${dut2} | ${dut2_if2}
1241 | | Add PCI device | ${dut1} | ${dut1_if1_pci} | ${dut1_if2_pci}
1242 | | Add PCI device | ${dut2} | ${dut2_if1_pci} | ${dut2_if2_pci}
1243
1244 | Guest VM with dpdk-testpmd connected via vhost-user is setup
1245 | | [Documentation]
1246 | | ... | Start QEMU guest with two vhost-user interfaces and interconnecting
1247 | | ... | DPDK testpmd. Qemu Guest is using 3 cores pinned to physical cores 5,
1248 | | ... | 6, 7 and 2048M. Testpmd is using 3 cores (1 main core and 2 cores
1249 | | ... | dedicated to io) socket-mem=1024, mem-channel=4, txq/rxq=2048,
1250 | | ... | burst=64, disable-hw-vlan, total-num-mbufs, driver
1251 | | ... | usr/lib/librte_pmd_virtio.so.
1252 | | ...
1253 | | ... | *Arguments:*
1254 | | ... | - dut_node - DUT node to start guest VM on. Type: dictionary
1255 | | ... | - sock1 - Socket path for first Vhost-User interface. Type: string
1256 | | ... | - sock2 - Socket path for second Vhost-User interface. Type: string
1257 | | ... | - vm_name - QemuUtil instance name. Type: string
1258 | | ...
1259 | | ... | *Example:*
1260 | | ...
1261 | | ... | \| Guest VM with dpdk-testpmd connected via vhost-user is setup \
1262 | | ... | \| ${nodes['DUT1']} \| /tmp/sock1 \| /tmp/sock2 \| DUT1_VM \|
1263 | | [Arguments] | ${dut_node} | ${sock1} | ${sock2} | ${vm_name}
1264 | | Import Library | resources.libraries.python.QemuUtils
1265 | | ...            | WITH NAME | ${vm_name}
1266 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock1}
1267 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock2}
1268 | | Run keyword | ${vm_name}.Qemu Set Node | ${dut_node}
1269 | | Run keyword | ${vm_name}.Qemu Set Smp | 3 | 3 | 1 | 1
1270 | | Run keyword | ${vm_name}.Qemu Set Mem Size | 2048
1271 | | Run keyword | ${vm_name}.Qemu Set Huge Allocate
1272 | | Run keyword | ${vm_name}.Qemu Set Disk Image | ${glob_vm_image}
1273 | | ${vm}= | Run keyword | ${vm_name}.Qemu Start
1274 | | Run keyword | ${vm_name}.Qemu Set Affinity | 5 | 6 | 7
1275 | | Dpdk Testpmd Start | ${vm} | eal_coremask=0x7
1276 | | ...                | eal_mem_channels=4
1277 | | ...                | eal_socket_mem=1024
1278 | | ...                | pmd_fwd_mode=io
1279 | | ...                | pmd_disable_hw_vlan=${True}
1280 | | Return From Keyword | ${vm}
1281
1282 | Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
1283 | | [Documentation]
1284 | | ... | Start QEMU guest with two vhost-user interfaces and interconnecting
1285 | | ... | DPDK testpmd. Qemu Guest is using 3 cores pinned to physical cores 5,
1286 | | ... | 6, 7 and 2048M. Testpmd is using 3 cores (1 main core and 2 cores
1287 | | ... | dedicated to io) socket-mem=1024, mem-channel=4, txq/rxq=2048,
1288 | | ... | burst=64, disable-hw-vlan, total-num-mbufs=65K, driver
1289 | | ... | usr/lib/librte_pmd_virtio.so and fwd mode is mac rewrite.
1290 | | ...
1291 | | ... | *Arguments:*
1292 | | ... | - dut_node - DUT node to start guest VM on. Type: dictionary
1293 | | ... | - sock1 - Socket path for first Vhost-User interface. Type: string
1294 | | ... | - sock2 - Socket path for second Vhost-User interface. Type: string
1295 | | ... | - vm_name - QemuUtil instance name. Type: string
1296 | | ... | - eth0_mac - MAC address of first Vhost interface. Type: string
1297 | | ... | - eth1_mac - MAC address of second Vhost interface. Type: string
1298 | | ...
1299 | | ... | *Example:*
1300 | | ...
1301 | | ... | \| Guest VM with dpdk-testpmd for Vhost L2BD forwarding is setup \
1302 | | ... | \| ${nodes['DUT1']} \| /tmp/sock1 \| /tmp/sock2 \| DUT1_VM \
1303 | | ... | \| 00:00:00:00:00:01 \| 00:00:00:00:00:02 \|
1304 | | [Arguments] | ${dut_node} | ${sock1} | ${sock2} | ${vm_name}
1305 | | ...         | ${eth0_mac} | ${eth1_mac}
1306 | | Import Library | resources.libraries.python.QemuUtils
1307 | | ...            | WITH NAME | ${vm_name}
1308 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock1}
1309 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock2}
1310 | | Run keyword | ${vm_name}.Qemu Set Node | ${dut_node}
1311 | | Run keyword | ${vm_name}.Qemu Set Smp | 3 | 3 | 1 | 1
1312 | | Run keyword | ${vm_name}.Qemu Set Mem Size | 2048
1313 | | Run keyword | ${vm_name}.Qemu Set Huge Allocate
1314 | | Run keyword | ${vm_name}.Qemu Set Disk Image
1315 | | ...         | /var/lib/vm/csit-nested-1.3.img
1316 | | ${vm}= | Run keyword | ${vm_name}.Qemu Start
1317 | | Run keyword | ${vm_name}.Qemu Set Affinity | 5 | 6 | 7
1318 | | Dpdk Testpmd Start | ${vm} | eal_coremask=0x7
1319 | | ...                | eal_mem_channels=4
1320 | | ...                | eal_socket_mem=1024
1321 | | ...                | pmd_fwd_mode=mac
1322 | | ...                | pmd_eth_peer_0=0,${eth0_mac}
1323 | | ...                | pmd_eth_peer_1=1,${eth1_mac}
1324 | | ...                | pmd_disable_hw_vlan=${True}
1325 | | Return From Keyword | ${vm}
1326
1327 | Guest VM with Linux Bridge connected via vhost-user is setup
1328 | | [Documentation]
1329 | | ... | Start QEMU guest with two vhost-user interfaces and interconnecting
1330 | | ... | linux bridge. Qemu Guest is using 3 cores pinned to physical cores 5,
1331 | | ... | 6, 7 and 2048M.
1332 | | ...
1333 | | ... | *Arguments:*
1334 | | ... | - dut_node - DUT node to start guest VM on. Type: dictionary
1335 | | ... | - sock1 - Socket path for first Vhost-User interface. Type: string
1336 | | ... | - sock2 - Socket path for second Vhost-User interface. Type: string
1337 | | ... | - vm_name - QemuUtil instance name. Type: string
1338 | | ...
1339 | | ... | *Example:*
1340 | | ...
1341 | | ... | \| Guest VM with Linux Bridge connected via vhost-user is setup \
1342 | | ... | \| ${nodes['DUT1']} \| /tmp/sock1 \| /tmp/sock2 \| DUT1_VM \|
1343 | | [Arguments] | ${dut_node} | ${sock1} | ${sock2} | ${vm_name}
1344 | | Import Library | resources.libraries.python.QemuUtils
1345 | | ...            | WITH NAME | ${vm_name}
1346 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock1}
1347 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock2}
1348 | | Run keyword | ${vm_name}.Qemu Set Node | ${dut_node}
1349 | | Run keyword | ${vm_name}.Qemu Set Smp | 3 | 3 | 1 | 1
1350 | | Run keyword | ${vm_name}.Qemu Set Mem Size | 2048
1351 | | Run keyword | ${vm_name}.Qemu Set Huge Allocate
1352 | | Run keyword | ${vm_name}.Qemu Set Disk Image | ${glob_vm_image}
1353 | | ${vm}= | Run keyword | ${vm_name}.Qemu Start
1354 | | Run keyword | ${vm_name}.Qemu Set Affinity | 5 | 6 | 7
1355 | | ${br}= | Set Variable | br0
1356 | | ${vhost1}= | Get Vhost User If Name By Sock | ${vm} | ${sock1}
1357 | | ${vhost2}= | Get Vhost User If Name By Sock | ${vm} | ${sock2}
1358 | | Linux Add Bridge | ${vm} | ${br} | ${vhost1} | ${vhost2}
1359 | | Set Interface State | ${vm} | ${vhost1} | up | if_type=name
1360 | | Set Interface State | ${vm} | ${vhost2} | up | if_type=name
1361 | | Set Interface State | ${vm} | ${br} | up | if_type=name
1362 | | Return From Keyword | ${vm}
1363
1364 | Guest VM with dpdk-testpmd Teardown
1365 | | [Documentation]
1366 | | ... | Stop all qemu processes with dpdk-testpmd running on ${dut_node}.
1367 | | ... | Argument is dictionary of all qemu nodes running with its names.
1368 | | ... | Dpdk-testpmd is stopped gracefully with printing stats.
1369 | | ... |
1370 | | ... | *Arguments:*
1371 | | ... | - dut_node - Node where to clean qemu. Type: dictionary
1372 | | ... | - dut_vm_refs - VM references on node. Type: dictionary
1373 | | ...
1374 | | ... | *Example:*
1375 | | ...
1376 | | ... | \| Guest VM with dpdk-testpmd Teardown \| ${node['DUT1']} \
1377 | | ... | \| ${dut_vm_refs} \|
1378 | | ...
1379 | | [Arguments] | ${dut_node} | ${dut_vm_refs}
1380 | | :FOR | ${vm_name} | IN | @{dut_vm_refs}
1381 | | | ${vm}= | Get From Dictionary | ${dut_vm_refs} | ${vm_name}
1382 | | | Dpdk Testpmd Stop | ${vm}
1383 | | | Run Keyword | ${vm_name}.Qemu Set Node | ${dut_node}
1384 | | | Run Keyword | ${vm_name}.Qemu Kill
1385 | | | Run Keyword | ${vm_name}.Qemu Clear Socks
1386
1387 | Guest VM Teardown
1388 | | [Documentation]
1389 | | ... | Stop all qemu processes running on ${dut_node}.
1390 | | ... | Argument is dictionary of all qemu nodes running with its names.
1391 | | ... |
1392 | | ... | *Arguments:*
1393 | | ... | - dut_node - Node where to clean qemu. Type: dictionary
1394 | | ... | - dut_vm_refs - VM references on node. Type: dictionary
1395 | | ...
1396 | | ... | *Example:*
1397 | | ...
1398 | | ... | \| Guest VM Teardown \| ${node['DUT1']} \
1399 | | ... | \| ${dut_vm_refs} \|
1400 | | ...
1401 | | [Arguments] | ${dut_node} | ${dut_vm_refs}
1402 | | :FOR | ${vm_name} | IN | @{dut_vm_refs}
1403 | | | ${vm}= | Get From Dictionary | ${dut_vm_refs} | ${vm_name}
1404 | | | Run Keyword | ${vm_name}.Qemu Set Node | ${dut_node}
1405 | | | Run Keyword | ${vm_name}.Qemu Kill
1406 | | | Run Keyword | ${vm_name}.Qemu Clear Socks
1407
1408 | Lisp IPv4 forwarding initialized in a 3-node circular topology
1409 | | [Documentation] | Custom setup of IPv4 addresses on all DUT nodes and TG \
1410 | | ...             | Don`t set route.
1411 | | ...
1412 | | ... | *Arguments:*
1413 | | ... | -${dut1_dut2_address} - Ip address from DUT1 to DUT2. Type: string
1414 | | ... | -${dut1_tg_address} - Ip address from DUT1 to tg. Type: string
1415 | | ... | -${dut2_dut1_address} - Ip address from DUT2 to DUT1. Type: string
1416 | | ... | -${dut1_tg_address} - Ip address from DUT1 to tg. Type: string
1417 | | ... | -${duts_prefix} - ip prefix. Type: int
1418 | | ...
1419 | | ... | *Return:*
1420 | | ... | - No value returned
1421 | | ...
1422 | | ... | *Example:*
1423 | | ... | \| Lisp IPv4 forwarding initialized in a 3-node circular topology \
1424 | | ... | \| ${dut1_dut2_address} \| ${dut1_tg_address} \
1425 | | ... | \| ${dut2_dut1_address} \| ${dut2_tg_address} \| ${duts_prefix} \|
1426 | | ...
1427 | | [Arguments] | ${dut1_dut2_address} | ${dut1_tg_address}
1428 | | ...         | ${dut2_dut1_address} | ${dut2_tg_address}
1429 | | ...         | ${duts_prefix}
1430 | | Set Interface State | ${dut1} | ${dut1_if1} | up
1431 | | Set Interface State | ${dut1} | ${dut1_if2} | up
1432 | | Set Interface State | ${dut2} | ${dut2_if1} | up
1433 | | Set Interface State | ${dut2} | ${dut2_if2} | up
1434 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
1435 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
1436 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
1437 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
1438 | | dut1_v4.set_arp | ${dut1_if1} | 10.10.10.2 | ${tg1_if1_mac}
1439 | | dut1_v4.set_arp | ${dut1_if2} | ${dut2_dut1_address} | ${dut2_if1_mac}
1440 | | dut2_v4.set_arp | ${dut2_if1} | ${dut1_dut2_address} | ${dut1_if2_mac}
1441 | | dut2_v4.set_arp | ${dut2_if2} | 20.20.20.2 | ${tg1_if2_mac}
1442 | | dut1_v4.set_ip | ${dut1_if1} | ${dut1_tg_address} | ${duts_prefix}
1443 | | dut1_v4.set_ip | ${dut1_if2} | ${dut1_dut2_address} | ${duts_prefix}
1444 | | dut2_v4.set_ip | ${dut2_if1} | ${dut2_dut1_address} | ${duts_prefix}
1445 | | dut2_v4.set_ip | ${dut2_if2} | ${dut2_tg_address} | ${duts_prefix}
1446 | | All Vpp Interfaces Ready Wait | ${nodes}
1447
1448 | Lisp IPv6 forwarding initialized in a 3-node circular topology
1449 | | [Documentation] | Custom setup of IPv6 topology on all DUT nodes \
1450 | | ...             | Don`t set route.
1451 | | ...
1452 | | ... | *Arguments:*
1453 | | ... | -${dut1_dut2_address} - Ip address from DUT1 to DUT2. Type: string
1454 | | ... | -${dut1_tg_address} - Ip address from DUT1 to tg. Type: string
1455 | | ... | -${dut2_dut1_address} - Ip address from DUT2 to DUT1. Type: string
1456 | | ... | -${dut1_tg_address} - Ip address from DUT1 to tg. Type: string
1457 | | ... | -${duts_prefix} - ip prefix. Type: int
1458 | | ...
1459 | | ... | *Return:*
1460 | | ... | - No value returned
1461 | | ...
1462 | | ... | *Example:*
1463 | | ... | \| Lisp IPv6 forwarding initialized in a 3-node circular topology \
1464 | | ... | \| ${dut1_dut2_address} \| ${dut1_tg_address} \
1465 | | ... | \| ${dut2_dut1_address} \| ${dut2_tg_address} \| ${duts_prefix} \|
1466 | | ...
1467 | | [Arguments] | ${dut1_dut2_address} | ${dut1_tg_address}
1468 | | ...         | ${dut2_dut1_address} | ${dut2_tg_address}
1469 | | ...         | ${prefix}
1470 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
1471 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
1472 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
1473 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
1474 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if1} | ${dut1_tg_address}
1475 | | ...                  | ${prefix}
1476 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if2} | ${dut1_dut2_address}
1477 | | ...                  | ${prefix}
1478 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if1} | ${dut2_dut1_address}
1479 | | ...                  | ${prefix}
1480 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if2} | ${dut2_tg_address}
1481 | | ...                  | ${prefix}
1482 | | Vpp nodes ra suppress link layer | ${nodes}
1483 | | Add Ip Neighbor | ${dut1} | ${dut1_if1} | 2001:1::2
1484 | | ...             | ${tg1_if1_mac}
1485 | | Add Ip Neighbor | ${dut2} | ${dut2_if2} | 2001:2::2
1486 | | ...             | ${tg1_if2_mac}
1487 | | Add Ip Neighbor | ${dut1} | ${dut1_if2} | ${dut2_dut1_address}
1488 | | ...             | ${dut2_if1_mac}
1489 | | Add Ip Neighbor | ${dut2} | ${dut2_if1} | ${dut1_dut2_address}
1490 | | ...             | ${dut1_if2_mac}
1491
1492 | Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology
1493 | | [Documentation] | Custom setup of IPv4 over IPv6 topology on all DUT nodes \
1494 | | ...             | Don`t set route.
1495 | | ...
1496 | | ... | *Arguments:*
1497 | | ... | -${dut1_dut2_ip6_address} - IPv6 address from DUT1 to DUT2.
1498 | | ... |                             Type: string
1499 | | ... | -${dut1_tg_ip4_address} - IPv4 address from DUT1 to tg. Type: string
1500 | | ... | -${dut2_dut1_ip6_address} - IPv6 address from DUT2 to DUT1.
1501 | | ... |                             Type: string
1502 | | ... | -${dut1_tg_ip4_address} - IPv4 address from DUT1 to tg. Type: string
1503 | | ... | -${prefix4} - IPv4 prefix. Type: int
1504 | | ... | -${prefix6} - IPv6 prefix. Type: int
1505 | | ...
1506 | | ... | *Return:*
1507 | | ... | - No value returned
1508 | | ...
1509 | | ... | *Example:*
1510 | | ... | \| Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology \
1511 | | ... | \| ${dut1_dut2_ip6_address} \| ${dut1_tg_ip4_address} \
1512 | | ... | \| ${dut2_dut1_ip6_address} \| ${dut2_tg_ip4_address} \
1513 | | ... | \| ${prefix4} \| ${prefix6} \|
1514 | | ...
1515 | | [Arguments] | ${dut1_dut2_ip6_address} | ${dut1_tg_ip4_address}
1516 | | ...         | ${dut2_dut1_ip6_address} | ${dut2_tg_ip4_address}
1517 | | ...         | ${prefix4} | ${prefix6}
1518 | | Set Interface State | ${dut1} | ${dut1_if1} | up
1519 | | Set Interface State | ${dut1} | ${dut1_if2} | up
1520 | | Set Interface State | ${dut2} | ${dut2_if1} | up
1521 | | Set Interface State | ${dut2} | ${dut2_if2} | up
1522 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
1523 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
1524 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
1525 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
1526 | | dut1_v4.set_ip | ${dut1_if1} | ${dut1_tg_ip4_address} | ${prefix4}
1527 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if2} | ${dut1_dut2_ip6_address}
1528 | | ...                  | ${prefix6}
1529 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if1} | ${dut2_dut1_ip6_address}
1530 | | ...                  | ${prefix6}
1531 | | dut2_v4.set_ip | ${dut2_if2} | ${dut2_tg_ip4_address} | ${prefix4}
1532 | | Vpp nodes ra suppress link layer | ${nodes}
1533 | | dut1_v4.set_arp | ${dut1_if1} | 10.10.10.2 | ${tg1_if1_mac}
1534 | | dut2_v4.set_arp | ${dut2_if2} | 20.20.20.2 | ${tg1_if2_mac}
1535 | | Add Ip Neighbor | ${dut1} | ${dut1_if2} | ${dut2_dut1_ip6_address}
1536 | | ...             | ${dut2_if1_mac}
1537 | | Add Ip Neighbor | ${dut2} | ${dut2_if1} | ${dut1_dut2_ip6_address}
1538 | | ...             | ${dut1_if2_mac}
1539
1540 | Lisp IPv6 over IPv4 forwarding initialized in a 3-node circular topology
1541 | | [Documentation] | Custom setup of IPv4 over IPv6 topology on all DUT nodes \
1542 | | ...             | Don`t set route.
1543 | | ...
1544 | | ... | *Arguments:*
1545 | | ... | -${dut1_dut2_ip4_address} - IPv4 address from DUT1 to DUT2.
1546 | | ... |                             Type: string
1547 | | ... | -${dut1_tg_ip6_address} - IPv6 address from DUT1 to tg. Type: string
1548 | | ... | -${dut2_dut1_ip4_address} - IPv4 address from DUT2 to DUT1.
1549 | | ... |                             Type: string
1550 | | ... | -${dut1_tg_ip6_address} - IPv6 address from DUT1 to tg. Type: string
1551 | | ... | -${prefix4} - IPv4 prefix. Type: int
1552 | | ... | -${prefix6} - IPv6 prefix. Type: int
1553 | | ...
1554 | | ... | *Return:*
1555 | | ... | - No value returned
1556 | | ...
1557 | | ... | *Example:*
1558 | | ... | \| Lisp IPv6 over IPv4 forwarding initialized in a 3-node circular topology \
1559 | | ... | \| ${dut1_dut2_ip4_address} \| ${dut1_tg_ip6_address} \
1560 | | ... | \| ${dut2_dut1_ip4_address} \| ${dut2_tg_ip6_address} \
1561 | | ... | \| ${prefix4} \| ${prefix6} \|
1562 | | ...
1563 | | [Arguments] | ${dut1_dut2_ip4_address} | ${dut1_tg_ip6_address}
1564 | | ...         | ${dut2_dut1_ip4_address} | ${dut2_tg_ip6_address}
1565 | | ...         | ${prefix4} | ${prefix6}
1566 | | Set Interface State | ${dut1} | ${dut1_if1} | up
1567 | | Set Interface State | ${dut1} | ${dut1_if2} | up
1568 | | Set Interface State | ${dut2} | ${dut2_if1} | up
1569 | | Set Interface State | ${dut2} | ${dut2_if2} | up
1570 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
1571 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
1572 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
1573 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
1574 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if1} | ${dut1_tg_ip6_address}
1575 | | ...                  | ${prefix6}
1576 | | dut1_v4.set_ip | ${dut1_if2} | ${dut1_dut2_ip4_address} | ${prefix4}
1577 | | dut2_v4.set_ip | ${dut2_if1} | ${dut2_dut1_ip4_address} | ${prefix4}
1578 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if2} | ${dut2_tg_ip6_address}
1579 | | ...                  | ${prefix6}
1580 | | Vpp nodes ra suppress link layer | ${nodes}
1581 | | Add Ip Neighbor | ${dut1} | ${dut1_if1} | 2001:1::2 | ${tg1_if1_mac}
1582 | | Add Ip Neighbor | ${dut2} | ${dut2_if2} | 2001:2::2 | ${tg1_if2_mac}
1583 | | dut1_v4.set_arp | ${dut1_if2} | ${dut2_dut1_ip4_address} | ${dut2_if1_mac}
1584 | | dut2_v4.set_arp | ${dut2_if1} | ${dut1_dut2_ip4_address} | ${dut1_if2_mac}
1585