22b119d440e31ae4cd4fbfe4f05c234264b6c475
[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 bridge domain initialized in a 3-node circular topology
727 | | [Documentation]
728 | | ... | Setup L2 DB topology by adding two interfaces on each DUT into BD
729 | | ... | that is created automatically with index 1. Learning is enabled.
730 | | ... | Interfaces are brought up.
731 | | ... |
732 | | Vpp l2bd forwarding setup | ${dut1} | ${dut1_if1} | ${dut1_if2}
733 | | Vpp l2bd forwarding setup | ${dut2} | ${dut2_if1} | ${dut2_if2}
734 | | All Vpp Interfaces Ready Wait | ${nodes}
735
736 | L2 bridge domains with Vhost-User initialized in a 3-node circular topology
737 | | [Documentation]
738 | | ... | Create two Vhost-User interfaces on all defined VPP nodes. Add each
739 | | ... | Vhost-User interface into L2 bridge domains with learning enabled
740 | | ... | with physical inteface.
741 | | ...
742 | | ... | *Arguments:*
743 | | ... | - bd_id1 - Bridge domain ID. Type: integer
744 | | ... | - bd_id2 - Bridge domain ID. Type: integer
745 | | ... | - sock1 - Sock path for first Vhost-User interface. Type: string
746 | | ... | - sock2 - Sock path for second Vhost-User interface. Type: string
747 | | ...
748 | | ... | *Example:*
749 | | ...
750 | | ... | \| L2 bridge domains with Vhost-User initialized in a 3-node \
751 | | ... |    circular topology \| 1 \| 2 \| /tmp/sock1 \| /tmp/sock2 \|
752 | | [Arguments] | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
753 | | VPP Vhost interfaces for L2BD forwarding are setup | ${dut1}
754 | | ...                                                | ${sock1}
755 | | ...                                                | ${sock2}
756 | | Interface is added to bridge domain | ${dut1} | ${dut1_if1} | ${bd_id1}
757 | | Interface is added to bridge domain | ${dut1} | ${vhost_if1} | ${bd_id1}
758 | | Interface is added to bridge domain | ${dut1} | ${dut1_if2} | ${bd_id2}
759 | | Interface is added to bridge domain | ${dut1} | ${vhost_if2} | ${bd_id2}
760 | | VPP Vhost interfaces for L2BD forwarding are setup | ${dut2}
761 | | ...                                                | ${sock1}
762 | | ...                                                | ${sock2}
763 | | Interface is added to bridge domain | ${dut2} | ${dut2_if1} | ${bd_id1}
764 | | Interface is added to bridge domain | ${dut2} | ${vhost_if1} | ${bd_id1}
765 | | Interface is added to bridge domain | ${dut2} | ${dut2_if2} | ${bd_id2}
766 | | Interface is added to bridge domain | ${dut2} | ${vhost_if2} | ${bd_id2}
767 | | All Vpp Interfaces Ready Wait | ${nodes}
768
769 2-node Performance Suite Setup with DUT's NIC model
770 | | [Documentation]
771 | | ... | Suite preparation phase that setup default startup configuration of
772 | | ... | VPP on all DUTs. Updates interfaces on all nodes and setup global
773 | | ... | variables used in test cases based on interface model provided as an
774 | | ... | argument. Initializes traffic generator.
775 | | ...
776 | | ... | *Arguments:*
777 | | ... | - topology_type - Topology type. Type: string
778 | | ... | - nic_model - Interface model. Type: string
779 | | ...
780 | | ... | *Example:*
781 | | ...
782 | | ... | \| 2-node Performance Suite Setup \| L2 \| Intel-X520-DA2 \|
783 | | [Arguments] | ${topology_type} | ${nic_model}
784 | | Setup default startup configuration of VPP on all DUTs
785 | | Show vpp version on all DUTs
786 | | Setup performance rate Variables
787 | | Setup performance global Variables
788 | | 2-node circular Topology Variables Setup with DUT interface model
789 | | ... | ${nic_model}
790 | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2}
791 | | ...                          | ${dut1} | ${dut1_if1}
792 | | ...                          | ${dut1} | ${dut1_if2}
793 | | ...                          | ${topology_type}
794
795 3-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 | | ... | \| 3-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 | | 3-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 | | ...                          | ${dut2} | ${dut2_if2}
819 | | ...                          | ${topology_type}
820
821 | 3-node Performance Suite Teardown
822 | | [Documentation]
823 | | ... | Suite teardown phase with traffic generator teardown.
824 | | ...
825 | | Teardown traffic generator | ${tg}
826
827 | Find NDR using linear search and pps
828 | | [Documentation]
829 | | ... | Find throughput by using RFC2544 linear search with non drop rate.
830 | | ...
831 | | ... | *Arguments:*
832 | | ... | - framesize - L2 Frame Size [B]. Type: integer
833 | | ... | - start_rate - Initial start rate [pps]. Type: float
834 | | ... | - step_rate - Step of linear search [pps]. Type: float
835 | | ... | - topology_type - Topology type. Type: string
836 | | ... | - min_rate - Lower limit of search [pps]. Type: float
837 | | ... | - max_rate - Upper limit of search [pps]. Type: float
838 | | ...
839 | | ... | *Return:*
840 | | ... | - No value returned
841 | | ...
842 | | ... | *Example:*
843 | | ...
844 | | ... | \| Find NDR using linear search and pps \| 64 \| 5000000 \| \
845 | | ... | \| 100000 \| 3-node-IPv4 \| 100000 \| 14880952
846 | | [Arguments] | ${framesize} | ${start_rate} | ${step_rate}
847 | | ...         | ${topology_type} | ${min_rate} | ${max_rate}
848 | | ${duration}= | Set Variable | 10
849 | | Set Duration | ${duration}
850 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
851 | | Set Search Linear Step | ${step_rate}
852 | | Set Search Frame Size | ${framesize}
853 | | Set Search Rate Type pps
854 | | Linear Search | ${start_rate} | ${topology_type}
855 | | ${rate_per_stream} | ${latency}= | Verify Search Result
856 | | Display result of NDR search | ${rate_per_stream} | ${framesize} | 2
857 | | ...                          | ${latency}
858 | | Traffic should pass with no loss | ${duration} | ${rate_per_stream}pps
859 | | ...                              | ${framesize} | ${topology_type}
860 | | ...                              | fail_on_loss=${False}
861
862 | Find PDR using linear search and pps
863 | | [Documentation]
864 | | ... | Find throughput by using RFC2544 linear search with partial drop rate
865 | | ... | with PDR threshold and type specified by parameter.
866 | | ...
867 | | ... | *Arguments:*
868 | | ... | - framesize - L2 Frame Size [B]. Type: integer
869 | | ... | - start_rate - Initial start rate [pps]. Type: float
870 | | ... | - step_rate - Step of linear search [pps]. Type: float
871 | | ... | - topology_type - Topology type. Type: string
872 | | ... | - min_rate - Lower limit of search [pps]. Type: float
873 | | ... | - max_rate - Upper limit of search [pps]. Type: float
874 | | ... | - loss_acceptance - Accepted loss during search. Type: float
875 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
876 | | ...
877 | | ... | *Example:*
878 | | ...
879 | | ... | \| Find PDR using linear search and pps \| 64 \| 5000000 \
880 | | ... | \| 100000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 0.5 \| percentage
881 | | [Arguments] | ${framesize} | ${start_rate} | ${step_rate}
882 | | ...         | ${topology_type} | ${min_rate} | ${max_rate}
883 | | ...         | ${loss_acceptance}=0 | ${loss_acceptance_type}='frames'
884 | | ${duration}= | Set Variable | 10
885 | | Set Duration | ${duration}
886 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
887 | | Set Search Linear Step | ${step_rate}
888 | | Set Search Frame Size | ${framesize}
889 | | Set Search Rate Type pps
890 | | Set Loss Acceptance | ${loss_acceptance}
891 | | Run Keyword If | '${loss_acceptance_type}' == 'percentage'
892 | | ...            | Set Loss Acceptance Type Percentage
893 | | Linear Search | ${start_rate} | ${topology_type}
894 | | ${rate_per_stream} | ${latency}= | Verify Search Result
895 | | Display result of PDR search | ${rate_per_stream} | ${framesize} | 2
896 | | ...                          | ${loss_acceptance} | ${loss_acceptance_type}
897 | | ...                          | ${latency}
898 | | Traffic should pass with partial loss | ${duration} | ${rate_per_stream}pps
899 | | ...                                   | ${framesize} | ${topology_type}
900 | | ...                                   | ${loss_acceptance}
901 | | ...                                   | ${loss_acceptance_type}
902 | | ...                                   | fail_on_loss=${False}
903
904 | Find NDR using binary search and pps
905 | | [Documentation]
906 | | ... | Find throughput by using RFC2544 binary search with non drop rate.
907 | | ...
908 | | ... | *Arguments:*
909 | | ... | - framesize - L2 Frame Size [B]. Type: integer
910 | | ... | - binary_min - Lower boundary of search [pps]. Type: float
911 | | ... | - binary_max - Upper boundary of search [pps]. Type: float
912 | | ... | - topology_type - Topology type. Type: string
913 | | ... | - min_rate - Lower limit of search [pps]. Type: float
914 | | ... | - max_rate - Upper limit of search [pps]. Type: float
915 | | ... | - threshold - Threshold to stop search [pps]. Type: integer
916 | | ...
917 | | ... | *Example:*
918 | | ...
919 | | ... | \| Find NDR using binary search and pps \| 64 \| 6000000 \
920 | | ... | \| 12000000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 50000
921 | | [Arguments] | ${framesize} | ${binary_min} | ${binary_max}
922 | | ...         | ${topology_type} | ${min_rate} | ${max_rate} | ${threshold}
923 | | ${duration}= | Set Variable | 10
924 | | Set Duration | ${duration}
925 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
926 | | Set Search Frame Size | ${framesize}
927 | | Set Search Rate Type pps
928 | | Set Binary Convergence Threshold | ${threshold}
929 | | Binary Search | ${binary_min} | ${binary_max} | ${topology_type}
930 | | ${rate_per_stream} | ${latency}= | Verify Search Result
931 | | Display result of NDR search | ${rate_per_stream} | ${framesize} | 2
932 | | ...                          | ${latency}
933 | | Traffic should pass with no loss | ${duration} | ${rate_per_stream}pps
934 | | ...                              | ${framesize} | ${topology_type}
935 | | ...                              | fail_on_loss=${False}
936
937 | Find PDR using binary search and pps
938 | | [Documentation]
939 | | ... | Find throughput by using RFC2544 binary search with partial drop rate
940 | | ... | with PDR threshold and type specified by parameter.
941 | | ...
942 | | ... | *Arguments:*
943 | | ... | - framesize - L2 Frame Size [B]. Type: integer
944 | | ... | - binary_min - Lower boundary of search [pps]. Type: float
945 | | ... | - binary_max - Upper boundary of search [pps]. Type: float
946 | | ... | - topology_type - Topology type. Type: string
947 | | ... | - min_rate - Lower limit of search [pps]. Type: float
948 | | ... | - max_rate - Upper limit of search [pps]. Type: float
949 | | ... | - threshold - Threshold to stop search [pps]. Type: integer
950 | | ... | - loss_acceptance - Accepted loss during search. Type: float
951 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
952 | | ...
953 | | ... | *Example:*
954 | | ...
955 | | ... | \| Find PDR using binary search and pps \| 64 \| 6000000 \
956 | | ... | \| 12000000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 50000 \| 0.5 \
957 | | ... | \| percentage
958 | | [Arguments] | ${framesize} | ${binary_min} | ${binary_max}
959 | | ...         | ${topology_type} | ${min_rate} | ${max_rate} | ${threshold}
960 | | ...         | ${loss_acceptance}=0 | ${loss_acceptance_type}='frames'
961 | | ${duration}= | Set Variable | 10
962 | | Set Duration | ${duration}
963 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
964 | | Set Search Frame Size | ${framesize}
965 | | Set Search Rate Type pps
966 | | Set Loss Acceptance | ${loss_acceptance}
967 | | Run Keyword If | '${loss_acceptance_type}' == 'percentage'
968 | | ...            | Set Loss Acceptance Type Percentage
969 | | Set Binary Convergence Threshold | ${threshold}
970 | | Binary Search | ${binary_min} | ${binary_max} | ${topology_type}
971 | | ${rate_per_stream} | ${latency}= | Verify Search Result
972 | | Display result of PDR search | ${rate_per_stream} | ${framesize} | 2
973 | | ...                          | ${loss_acceptance} | ${loss_acceptance_type}
974 | | ...                          | ${latency}
975 | | Traffic should pass with partial loss | ${duration} | ${rate_per_stream}pps
976 | | ...                                   | ${framesize} | ${topology_type}
977 | | ...                                   | ${loss_acceptance}
978 | | ...                                   | ${loss_acceptance_type}
979 | | ...                                   | fail_on_loss=${False}
980
981 | Find NDR using combined search and pps
982 | | [Documentation]
983 | | ... | Find throughput by using RFC2544 combined search (linear+binary) with
984 | | ... | non drop rate.
985 | | ...
986 | | ... | *Arguments:*
987 | | ... | - framesize - L2 Frame Size [B]. Type: integer
988 | | ... | - start_rate - Initial start rate [pps]. Type: float
989 | | ... | - step_rate - Step of linear search [pps]. Type: float
990 | | ... | - topology_type - Topology type. Type: string
991 | | ... | - min_rate - Lower limit of search [pps]. Type: float
992 | | ... | - max_rate - Upper limit of search [pps]. Type: float
993 | | ... | - threshold - Threshold to stop search [pps]. Type: integer
994 | | ...
995 | | ... | *Example:*
996 | | ...
997 | | ... | \| Find NDR using combined search and pps \| 64 \| 5000000 \
998 | | ... | \| 100000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 5000
999 | | [Arguments] | ${framesize} | ${start_rate} | ${step_rate}
1000 | | ...         | ${topology_type} | ${min_rate} | ${max_rate} | ${threshold}
1001 | | ${duration}= | Set Variable | 10
1002 | | Set Duration | ${duration}
1003 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
1004 | | Set Search Linear Step | ${step_rate}
1005 | | Set Search Frame Size | ${framesize}
1006 | | Set Search Rate Type pps
1007 | | Set Binary Convergence Threshold | ${threshold}
1008 | | Combined Search | ${start_rate} | ${topology_type}
1009 | | ${rate_per_stream} | ${latency}= | Verify Search Result
1010 | | Display result of NDR search | ${rate_per_stream} | ${framesize} | 2
1011 | | ...                          | ${latency}
1012 | | Traffic should pass with no loss | ${duration} | ${rate_per_stream}pps
1013 | | ...                              | ${framesize} | ${topology_type}
1014 | | ...                              | fail_on_loss=${False}
1015
1016 | Find PDR using combined search and pps
1017 | | [Documentation]
1018 | | ... | Find throughput by using RFC2544 combined search (linear+binary) with
1019 | | ... | partial drop rate with PDR threshold and type specified by parameter.
1020 | | ...
1021 | | ... | *Arguments:*
1022 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1023 | | ... | - start_rate - Initial start rate [pps]. Type: float
1024 | | ... | - step_rate - Step of linear search [pps]. Type: float
1025 | | ... | - topology_type - Topology type. Type: string
1026 | | ... | - min_rate - Lower limit of search [pps]. Type: float
1027 | | ... | - max_rate - Upper limit of search [pps]. Type: float
1028 | | ... | - threshold - Threshold to stop search [pps]. Type: integer
1029 | | ... | - loss_acceptance - Accepted loss during search. Type: float
1030 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
1031 | | ...
1032 | | ... | *Example:*
1033 | | ...
1034 | | ... | \| Find PDR using combined search and pps \| 64 \| 5000000 \
1035 | | ... | \| 100000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 5000 \| 0.5 \
1036 | | ... | \| percentage
1037 | | [Arguments] | ${framesize} | ${start_rate} | ${step_rate}
1038 | | ...         | ${topology_type} | ${min_rate} | ${max_rate} | ${threshold}
1039 | | ...         | ${loss_acceptance}=0 | ${loss_acceptance_type}='frames'
1040 | | ${duration}= | Set Variable | 10
1041 | | Set Duration | ${duration}
1042 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
1043 | | Set Search Linear Step | ${step_rate}
1044 | | Set Search Frame Size | ${framesize}
1045 | | Set Search Rate Type pps
1046 | | Set Loss Acceptance | ${loss_acceptance}
1047 | | Run Keyword If | '${loss_acceptance_type}' == 'percentage'
1048 | | ...            | Set Loss Acceptance Type Percentage
1049 | | Set Binary Convergence Threshold | ${threshold}
1050 | | Combined Search | ${start_rate} | ${topology_type}
1051 | | ${rate_per_stream} | ${latency}= | Verify Search Result
1052 | | Display result of PDR search | ${rate_per_stream} | ${framesize} | 2
1053 | | ...                          | ${loss_acceptance} | ${loss_acceptance_type}
1054 | | ...                          | ${latency}
1055 | | Traffic should pass with partial loss | ${duration} | ${rate_per_stream}pps
1056 | | ...                                   | ${framesize} | ${topology_type}
1057 | | ...                                   | ${loss_acceptance}
1058 | | ...                                   | ${loss_acceptance_type}
1059 | | ...                                   | fail_on_loss=${False}
1060
1061 | Display result of NDR search
1062 | | [Documentation]
1063 | | ... | Display result of NDR search in packet per seconds (total and per
1064 | | ... | stream) and Gbps total bandwidth with untagged packet.
1065 | | ... | Througput is calculated as:
1066 | | ... | Measured rate per stream * Total number of streams
1067 | | ... | Bandwidth is calculated as:
1068 | | ... | (Througput * (L2 Frame Size + IPG) * 8) / Max bitrate of NIC
1069 | | ...
1070 | | ... | *Arguments:*
1071 | | ... | - rate_per_stream - Measured rate per stream [pps]. Type: string
1072 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1073 | | ... | - nr_streams - Total number of streams. Type: integer
1074 | | ... | - latency - Latency stats. Type: dictionary
1075 | | ...
1076 | | ... | *Example:*
1077 | | ...
1078 | | ... | \| Display result of NDR search \| 4400000 \| 64 \| 2 \
1079 | | ... | \| (0, 10/10/10) \|
1080 | | [Arguments] | ${rate_per_stream} | ${framesize} | ${nr_streams}
1081 | | ...         | ${latency}
1082 | | ${framesize}= | Get Frame Size | ${framesize}
1083 | | ${rate_total}= | Evaluate | ${rate_per_stream}*${nr_streams}
1084 | | ${bandwidth_total}= | Evaluate | ${rate_total}*(${framesize}+20)*8/(10**9)
1085 | | Set Test Message | FINAL_RATE: ${rate_total} pps
1086 | | Set Test Message | (${nr_streams}x ${rate_per_stream} pps)
1087 | | ...              | append=yes
1088 | | Set Test Message | ${\n}FINAL_BANDWIDTH: ${bandwidth_total} Gbps (untagged)
1089 | | ...              | append=yes
1090 | | :FOR | ${idx} | ${lat} | IN ENUMERATE | @{latency}
1091 | | | Set Test Message | ${\n}LATENCY_STREAM_${idx}: ${lat} usec (min/avg/max)
1092 | | ...                | append=yes
1093
1094 | Display result of PDR search
1095 | | [Documentation]
1096 | | ... | Display result of PDR search in packet per seconds (total and per
1097 | | ... | stream) and Gbps total bandwidth with untagged packet.
1098 | | ... | Througput is calculated as:
1099 | | ... | Measured rate per stream * Total number of streams
1100 | | ... | Bandwidth is calculated as:
1101 | | ... | (Througput * (L2 Frame Size + IPG) * 8) / Max bitrate of NIC
1102 | | ...
1103 | | ... | *Arguments:*
1104 | | ... | - rate_per_stream - Measured rate per stream [pps]. Type: string
1105 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1106 | | ... | - nr_streams - Total number of streams. Type: integer
1107 | | ... | - loss_acceptance - Accepted loss during search. Type: float
1108 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
1109 | | ... | - latency - Latency stats. Type: dictionary
1110 | | ...
1111 | | ... | *Example:*
1112 | | ...
1113 | | ... | \| Display result of PDR search \| 4400000 \| 64 \| 2 \| 0.5 \
1114 | | ... | \| percentage \| (0, 10/10/10) \|
1115 | | [Arguments] | ${rate_per_stream} | ${framesize} | ${nr_streams}
1116 | | ...         | ${loss_acceptance} | ${loss_acceptance_type} | ${latency}
1117 | | ${framesize}= | Get Frame Size | ${framesize}
1118 | | ${rate_total}= | Evaluate | ${rate_per_stream}*${nr_streams}
1119 | | ${bandwidth_total}= | Evaluate | ${rate_total}*(${framesize}+20)*8/(10**9)
1120 | | Set Test Message | FINAL_RATE: ${rate_total} pps
1121 | | Set Test Message | (${nr_streams}x ${rate_per_stream} pps)
1122 | | ...              | append=yes
1123 | | Set Test Message | ${\n}FINAL_BANDWIDTH: ${bandwidth_total} Gbps (untagged)
1124 | | ...              | append=yes
1125 | | :FOR | ${idx} | ${lat} | IN ENUMERATE | @{latency}
1126 | | | Set Test Message | ${\n}LATENCY_STREAM_${idx}: ${lat} usec (min/avg/max)
1127 | | ...                | append=yes
1128 | | Set Test Message | ${\n}LOSS_ACCEPTANCE: ${loss_acceptance} ${loss_acceptance_type}
1129 | | ...              | append=yes
1130
1131 | Traffic should pass with no loss
1132 | | [Documentation]
1133 | | ... | Send traffic at specified rate. No packet loss is accepted at loss
1134 | | ... | evaluation.
1135 | | ...
1136 | | ... | *Arguments:*
1137 | | ... | - duration - Duration of traffic run [s]. Type: integer
1138 | | ... | - rate - Rate for sending packets. Type: string
1139 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1140 | | ... | - topology_type - Topology type. Type: string
1141 | | ...
1142 | | ... | *Example:*
1143 | | ...
1144 | | ... | \| Traffic should pass with no loss \| 10 \| 4.0mpps \| 64 \
1145 | | ... | \| 3-node-IPv4
1146 | | [Arguments] | ${duration} | ${rate} | ${framesize} | ${topology_type}
1147 | | ...         | ${fail_on_loss}=${True}
1148 | | Clear and show runtime counters with running traffic | ${duration}
1149 | | ...  | ${rate} | ${framesize} | ${topology_type}
1150 | | Clear all counters on all DUTs
1151 | | Send traffic on tg | ${duration} | ${rate} | ${framesize}
1152 | | ...                | ${topology_type} | warmup_time=0
1153 | | Show statistics on all DUTs
1154 | | Run Keyword If | ${fail_on_loss} | No traffic loss occurred
1155
1156 | Traffic should pass with partial loss
1157 | | [Documentation]
1158 | | ... | Send traffic at specified rate. Partial packet loss is accepted
1159 | | ... | within loss acceptance value specified as argument.
1160 | | ...
1161 | | ... | *Arguments:*
1162 | | ... | - duration - Duration of traffic run [s]. Type: integer
1163 | | ... | - rate - Rate for sending packets. Type: string
1164 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1165 | | ... | - topology_type - Topology type. Type: string
1166 | | ... | - loss_acceptance - Accepted loss during search. Type: float
1167 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
1168 | | ...
1169 | | ... | *Example:*
1170 | | ...
1171 | | ... | \| Traffic should pass with partial loss \| 10 \| 4.0mpps \| 64 \
1172 | | ... | \| 3-node-IPv4 \| 0.5 \| percentage
1173 | | [Arguments] | ${duration} | ${rate} | ${framesize} | ${topology_type}
1174 | | ...         | ${loss_acceptance} | ${loss_acceptance_type}
1175 | | ...         | ${fail_on_loss}=${True}
1176 | | Clear and show runtime counters with running traffic | ${duration}
1177 | | ...  | ${rate} | ${framesize} | ${topology_type}
1178 | | Clear all counters on all DUTs
1179 | | Send traffic on tg | ${duration} | ${rate} | ${framesize}
1180 | | ...                | ${topology_type} | warmup_time=0
1181 | | Show statistics on all DUTs
1182 | | Run Keyword If | ${fail_on_loss} | Partial traffic loss accepted
1183 | | ...            | ${loss_acceptance} | ${loss_acceptance_type}
1184
1185 | Clear and show runtime counters with running traffic
1186 | | [Documentation]
1187 | | ... | Start traffic at specified rate then clear runtime counters on all
1188 | | ... | DUTs. Wait for specified amount of time and capture runtime counters
1189 | | ... | on all DUTs. Finally stop traffic
1190 | | ...
1191 | | ... | *Arguments:*
1192 | | ... | - duration - Duration of traffic run [s]. Type: integer
1193 | | ... | - rate - Rate for sending packets. Type: string
1194 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1195 | | ... | - topology_type - Topology type. Type: string
1196 | | ...
1197 | | ... | *Example:*
1198 | | ...
1199 | | ... | \| Traffic should pass with partial loss \| 10 \| 4.0mpps \| 64 \
1200 | | ... | \| 3-node-IPv4 \| 0.5 \| percentage
1201 | | [Arguments] | ${duration} | ${rate} | ${framesize} | ${topology_type}
1202 | | Send traffic on tg | -1 | ${rate} | ${framesize}
1203 | | ...                | ${topology_type} | warmup_time=0 | async_call=${True}
1204 | | ...                | latency=${False}
1205 | | Clear runtime counters on all DUTs
1206 | | Sleep | ${duration}
1207 | | Show runtime counters on all DUTs
1208 | | Stop traffic on tg
1209
1210 | Add PCI devices to DUTs from 3-node single link topology
1211 | | ${dut1_if1_pci}= | Get Interface PCI Addr | ${dut1} | ${dut1_if1}
1212 | | ${dut1_if2_pci}= | Get Interface PCI Addr | ${dut1} | ${dut1_if2}
1213 | | ${dut2_if1_pci}= | Get Interface PCI Addr | ${dut2} | ${dut2_if1}
1214 | | ${dut2_if2_pci}= | Get Interface PCI Addr | ${dut2} | ${dut2_if2}
1215 | | Add PCI device | ${dut1} | ${dut1_if1_pci} | ${dut1_if2_pci}
1216 | | Add PCI device | ${dut2} | ${dut2_if1_pci} | ${dut2_if2_pci}
1217
1218 | Guest VM with dpdk-testpmd connected via vhost-user is setup
1219 | | [Documentation]
1220 | | ... | Start QEMU guest with two vhost-user interfaces and interconnecting
1221 | | ... | DPDK testpmd. Qemu Guest is using 3 cores pinned to physical cores 5,
1222 | | ... | 6, 7 and 2048M. Testpmd is using 3 cores (1 main core and 2 cores
1223 | | ... | dedicated to io) socket-mem=1024, mem-channel=4, txq/rxq=2048,
1224 | | ... | burst=64, disable-hw-vlan, total-num-mbufs, driver
1225 | | ... | usr/lib/librte_pmd_virtio.so.
1226 | | ...
1227 | | ... | *Arguments:*
1228 | | ... | - dut_node - DUT node to start guest VM on. Type: dictionary
1229 | | ... | - sock1 - Socket path for first Vhost-User interface. Type: string
1230 | | ... | - sock2 - Socket path for second Vhost-User interface. Type: string
1231 | | ... | - vm_name - QemuUtil instance name. Type: string
1232 | | ...
1233 | | ... | *Example:*
1234 | | ...
1235 | | ... | \| Guest VM with dpdk-testpmd connected via vhost-user is setup \
1236 | | ... | \| ${nodes['DUT1']} \| /tmp/sock1 \| /tmp/sock2 \| DUT1_VM \|
1237 | | [Arguments] | ${dut_node} | ${sock1} | ${sock2} | ${vm_name}
1238 | | Import Library | resources.libraries.python.QemuUtils
1239 | | ...            | WITH NAME | ${vm_name}
1240 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock1}
1241 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock2}
1242 | | Run keyword | ${vm_name}.Qemu Set Node | ${dut_node}
1243 | | Run keyword | ${vm_name}.Qemu Set Smp | 3 | 3 | 1 | 1
1244 | | Run keyword | ${vm_name}.Qemu Set Mem Size | 2048
1245 | | Run keyword | ${vm_name}.Qemu Set Huge Allocate
1246 | | Run keyword | ${vm_name}.Qemu Set Disk Image | ${glob_vm_image}
1247 | | ${vm}= | Run keyword | ${vm_name}.Qemu Start
1248 | | Run keyword | ${vm_name}.Qemu Set Affinity | 5 | 6 | 7
1249 | | Dpdk Testpmd Start | ${vm} | eal_coremask=0x7
1250 | | ...                | eal_mem_channels=4
1251 | | ...                | eal_socket_mem=1024
1252 | | ...                | pmd_fwd_mode=io
1253 | | ...                | pmd_disable_hw_vlan=${True}
1254 | | Return From Keyword | ${vm}
1255
1256 | Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
1257 | | [Documentation]
1258 | | ... | Start QEMU guest with two vhost-user interfaces and interconnecting
1259 | | ... | DPDK testpmd. Qemu Guest is using 3 cores pinned to physical cores 5,
1260 | | ... | 6, 7 and 2048M. Testpmd is using 3 cores (1 main core and 2 cores
1261 | | ... | dedicated to io) socket-mem=1024, mem-channel=4, txq/rxq=2048,
1262 | | ... | burst=64, disable-hw-vlan, total-num-mbufs=65K, driver
1263 | | ... | usr/lib/librte_pmd_virtio.so and fwd mode is mac rewrite.
1264 | | ...
1265 | | ... | *Arguments:*
1266 | | ... | - dut_node - DUT node to start guest VM on. Type: dictionary
1267 | | ... | - sock1 - Socket path for first Vhost-User interface. Type: string
1268 | | ... | - sock2 - Socket path for second Vhost-User interface. Type: string
1269 | | ... | - vm_name - QemuUtil instance name. Type: string
1270 | | ... | - eth0_mac - MAC address of first Vhost interface. Type: string
1271 | | ... | - eth1_mac - MAC address of second Vhost interface. Type: string
1272 | | ...
1273 | | ... | *Example:*
1274 | | ...
1275 | | ... | \| Guest VM with dpdk-testpmd for Vhost L2BD forwarding is setup \
1276 | | ... | \| ${nodes['DUT1']} \| /tmp/sock1 \| /tmp/sock2 \| DUT1_VM \
1277 | | ... | \| 00:00:00:00:00:01 \| 00:00:00:00:00:02 \|
1278 | | [Arguments] | ${dut_node} | ${sock1} | ${sock2} | ${vm_name}
1279 | | ...         | ${eth0_mac} | ${eth1_mac}
1280 | | Import Library | resources.libraries.python.QemuUtils
1281 | | ...            | WITH NAME | ${vm_name}
1282 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock1}
1283 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock2}
1284 | | Run keyword | ${vm_name}.Qemu Set Node | ${dut_node}
1285 | | Run keyword | ${vm_name}.Qemu Set Smp | 3 | 3 | 1 | 1
1286 | | Run keyword | ${vm_name}.Qemu Set Mem Size | 2048
1287 | | Run keyword | ${vm_name}.Qemu Set Huge Allocate
1288 | | Run keyword | ${vm_name}.Qemu Set Disk Image
1289 | | ...         | /var/lib/vm/csit-nested-1.3.img
1290 | | ${vm}= | Run keyword | ${vm_name}.Qemu Start
1291 | | Run keyword | ${vm_name}.Qemu Set Affinity | 5 | 6 | 7
1292 | | Dpdk Testpmd Start | ${vm} | eal_coremask=0x7
1293 | | ...                | eal_mem_channels=4
1294 | | ...                | eal_socket_mem=1024
1295 | | ...                | pmd_fwd_mode=mac
1296 | | ...                | pmd_eth_peer_0=0,${eth0_mac}
1297 | | ...                | pmd_eth_peer_1=1,${eth1_mac}
1298 | | ...                | pmd_disable_hw_vlan=${True}
1299 | | Return From Keyword | ${vm}
1300
1301 | Guest VM with Linux Bridge connected via vhost-user is setup
1302 | | [Documentation]
1303 | | ... | Start QEMU guest with two vhost-user interfaces and interconnecting
1304 | | ... | linux bridge. Qemu Guest is using 3 cores pinned to physical cores 5,
1305 | | ... | 6, 7 and 2048M.
1306 | | ...
1307 | | ... | *Arguments:*
1308 | | ... | - dut_node - DUT node to start guest VM on. Type: dictionary
1309 | | ... | - sock1 - Socket path for first Vhost-User interface. Type: string
1310 | | ... | - sock2 - Socket path for second Vhost-User interface. Type: string
1311 | | ... | - vm_name - QemuUtil instance name. Type: string
1312 | | ...
1313 | | ... | *Example:*
1314 | | ...
1315 | | ... | \| Guest VM with Linux Bridge connected via vhost-user is setup \
1316 | | ... | \| ${nodes['DUT1']} \| /tmp/sock1 \| /tmp/sock2 \| DUT1_VM \|
1317 | | [Arguments] | ${dut_node} | ${sock1} | ${sock2} | ${vm_name}
1318 | | Import Library | resources.libraries.python.QemuUtils
1319 | | ...            | WITH NAME | ${vm_name}
1320 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock1}
1321 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock2}
1322 | | Run keyword | ${vm_name}.Qemu Set Node | ${dut_node}
1323 | | Run keyword | ${vm_name}.Qemu Set Smp | 3 | 3 | 1 | 1
1324 | | Run keyword | ${vm_name}.Qemu Set Mem Size | 2048
1325 | | Run keyword | ${vm_name}.Qemu Set Huge Allocate
1326 | | Run keyword | ${vm_name}.Qemu Set Disk Image | ${glob_vm_image}
1327 | | ${vm}= | Run keyword | ${vm_name}.Qemu Start
1328 | | Run keyword | ${vm_name}.Qemu Set Affinity | 5 | 6 | 7
1329 | | ${br}= | Set Variable | br0
1330 | | ${vhost1}= | Get Vhost User If Name By Sock | ${vm} | ${sock1}
1331 | | ${vhost2}= | Get Vhost User If Name By Sock | ${vm} | ${sock2}
1332 | | Linux Add Bridge | ${vm} | ${br} | ${vhost1} | ${vhost2}
1333 | | Set Interface State | ${vm} | ${vhost1} | up | if_type=name
1334 | | Set Interface State | ${vm} | ${vhost2} | up | if_type=name
1335 | | Set Interface State | ${vm} | ${br} | up | if_type=name
1336 | | Return From Keyword | ${vm}
1337
1338 | Guest VM with dpdk-testpmd Teardown
1339 | | [Documentation]
1340 | | ... | Stop all qemu processes with dpdk-testpmd running on ${dut_node}.
1341 | | ... | Argument is dictionary of all qemu nodes running with its names.
1342 | | ... | Dpdk-testpmd is stopped gracefully with printing stats.
1343 | | ... |
1344 | | ... | *Arguments:*
1345 | | ... | - dut_node - Node where to clean qemu. Type: dictionary
1346 | | ... | - dut_vm_refs - VM references on node. Type: dictionary
1347 | | ...
1348 | | ... | *Example:*
1349 | | ...
1350 | | ... | \| Guest VM with dpdk-testpmd Teardown \| ${node['DUT1']} \
1351 | | ... | \| ${dut_vm_refs} \|
1352 | | ...
1353 | | [Arguments] | ${dut_node} | ${dut_vm_refs}
1354 | | :FOR | ${vm_name} | IN | @{dut_vm_refs}
1355 | | | ${vm}= | Get From Dictionary | ${dut_vm_refs} | ${vm_name}
1356 | | | Dpdk Testpmd Stop | ${vm}
1357 | | | Run Keyword | ${vm_name}.Qemu Set Node | ${dut_node}
1358 | | | Run Keyword | ${vm_name}.Qemu Kill
1359 | | | Run Keyword | ${vm_name}.Qemu Clear Socks
1360
1361 | Guest VM Teardown
1362 | | [Documentation]
1363 | | ... | Stop all qemu processes running on ${dut_node}.
1364 | | ... | Argument is dictionary of all qemu nodes running with its names.
1365 | | ... |
1366 | | ... | *Arguments:*
1367 | | ... | - dut_node - Node where to clean qemu. Type: dictionary
1368 | | ... | - dut_vm_refs - VM references on node. Type: dictionary
1369 | | ...
1370 | | ... | *Example:*
1371 | | ...
1372 | | ... | \| Guest VM Teardown \| ${node['DUT1']} \
1373 | | ... | \| ${dut_vm_refs} \|
1374 | | ...
1375 | | [Arguments] | ${dut_node} | ${dut_vm_refs}
1376 | | :FOR | ${vm_name} | IN | @{dut_vm_refs}
1377 | | | ${vm}= | Get From Dictionary | ${dut_vm_refs} | ${vm_name}
1378 | | | Run Keyword | ${vm_name}.Qemu Set Node | ${dut_node}
1379 | | | Run Keyword | ${vm_name}.Qemu Kill
1380 | | | Run Keyword | ${vm_name}.Qemu Clear Socks
1381
1382 | Lisp IPv4 forwarding initialized in a 3-node circular topology
1383 | | [Documentation] | Custom setup of IPv4 addresses on all DUT nodes and TG \
1384 | | ...             | Don`t set route.
1385 | | ...
1386 | | ... | *Arguments:*
1387 | | ... | -${dut1_dut2_address} - Ip address from DUT1 to DUT2. Type: string
1388 | | ... | -${dut1_tg_address} - Ip address from DUT1 to tg. Type: string
1389 | | ... | -${dut2_dut1_address} - Ip address from DUT2 to DUT1. Type: string
1390 | | ... | -${dut1_tg_address} - Ip address from DUT1 to tg. Type: string
1391 | | ... | -${duts_prefix} - ip prefix. Type: int
1392 | | ...
1393 | | ... | *Return:*
1394 | | ... | - No value returned
1395 | | ...
1396 | | ... | *Example:*
1397 | | ... | \| Lisp IPv4 forwarding initialized in a 3-node circular topology \
1398 | | ... | \| ${dut1_dut2_address} \| ${dut1_tg_address} \
1399 | | ... | \| ${dut2_dut1_address} \| ${dut2_tg_address} \| ${duts_prefix} \|
1400 | | ...
1401 | | [Arguments] | ${dut1_dut2_address} | ${dut1_tg_address}
1402 | | ...         | ${dut2_dut1_address} | ${dut2_tg_address}
1403 | | ...         | ${duts_prefix}
1404 | | Set Interface State | ${dut1} | ${dut1_if1} | up
1405 | | Set Interface State | ${dut1} | ${dut1_if2} | up
1406 | | Set Interface State | ${dut2} | ${dut2_if1} | up
1407 | | Set Interface State | ${dut2} | ${dut2_if2} | up
1408 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
1409 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
1410 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
1411 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
1412 | | dut1_v4.set_arp | ${dut1_if1} | 10.10.10.2 | ${tg1_if1_mac}
1413 | | dut1_v4.set_arp | ${dut1_if2} | ${dut2_dut1_address} | ${dut2_if1_mac}
1414 | | dut2_v4.set_arp | ${dut2_if1} | ${dut1_dut2_address} | ${dut1_if2_mac}
1415 | | dut2_v4.set_arp | ${dut2_if2} | 20.20.20.2 | ${tg1_if2_mac}
1416 | | dut1_v4.set_ip | ${dut1_if1} | ${dut1_tg_address} | ${duts_prefix}
1417 | | dut1_v4.set_ip | ${dut1_if2} | ${dut1_dut2_address} | ${duts_prefix}
1418 | | dut2_v4.set_ip | ${dut2_if1} | ${dut2_dut1_address} | ${duts_prefix}
1419 | | dut2_v4.set_ip | ${dut2_if2} | ${dut2_tg_address} | ${duts_prefix}
1420 | | All Vpp Interfaces Ready Wait | ${nodes}
1421
1422 | Lisp IPv6 forwarding initialized in a 3-node circular topology
1423 | | [Documentation] | Custom setup of IPv6 topology on all DUT nodes \
1424 | | ...             | Don`t set route.
1425 | | ...
1426 | | ... | *Arguments:*
1427 | | ... | -${dut1_dut2_address} - Ip address from DUT1 to DUT2. Type: string
1428 | | ... | -${dut1_tg_address} - Ip address from DUT1 to tg. Type: string
1429 | | ... | -${dut2_dut1_address} - Ip address from DUT2 to DUT1. Type: string
1430 | | ... | -${dut1_tg_address} - Ip address from DUT1 to tg. Type: string
1431 | | ... | -${duts_prefix} - ip prefix. Type: int
1432 | | ...
1433 | | ... | *Return:*
1434 | | ... | - No value returned
1435 | | ...
1436 | | ... | *Example:*
1437 | | ... | \| Lisp IPv6 forwarding initialized in a 3-node circular topology \
1438 | | ... | \| ${dut1_dut2_address} \| ${dut1_tg_address} \
1439 | | ... | \| ${dut2_dut1_address} \| ${dut2_tg_address} \| ${duts_prefix} \|
1440 | | ...
1441 | | [Arguments] | ${dut1_dut2_address} | ${dut1_tg_address}
1442 | | ...         | ${dut2_dut1_address} | ${dut2_tg_address}
1443 | | ...         | ${prefix}
1444 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
1445 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
1446 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
1447 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
1448 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if1} | ${dut1_tg_address}
1449 | | ...                  | ${prefix}
1450 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if2} | ${dut1_dut2_address}
1451 | | ...                  | ${prefix}
1452 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if1} | ${dut2_dut1_address}
1453 | | ...                  | ${prefix}
1454 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if2} | ${dut2_tg_address}
1455 | | ...                  | ${prefix}
1456 | | Vpp nodes ra suppress link layer | ${nodes}
1457 | | Add Ip Neighbor | ${dut1} | ${dut1_if1} | 2001:1::2
1458 | | ...             | ${tg1_if1_mac}
1459 | | Add Ip Neighbor | ${dut2} | ${dut2_if2} | 2001:2::2
1460 | | ...             | ${tg1_if2_mac}
1461 | | Add Ip Neighbor | ${dut1} | ${dut1_if2} | ${dut2_dut1_address}
1462 | | ...             | ${dut2_if1_mac}
1463 | | Add Ip Neighbor | ${dut2} | ${dut2_if1} | ${dut1_dut2_address}
1464 | | ...             | ${dut1_if2_mac}
1465
1466 | Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology
1467 | | [Documentation] | Custom setup of IPv4 over IPv6 topology on all DUT nodes \
1468 | | ...             | Don`t set route.
1469 | | ...
1470 | | ... | *Arguments:*
1471 | | ... | -${dut1_dut2_ip6_address} - IPv6 address from DUT1 to DUT2.
1472 | | ... |                             Type: string
1473 | | ... | -${dut1_tg_ip4_address} - IPv4 address from DUT1 to tg. Type: string
1474 | | ... | -${dut2_dut1_ip6_address} - IPv6 address from DUT2 to DUT1.
1475 | | ... |                             Type: string
1476 | | ... | -${dut1_tg_ip4_address} - IPv4 address from DUT1 to tg. Type: string
1477 | | ... | -${prefix4} - IPv4 prefix. Type: int
1478 | | ... | -${prefix6} - IPv6 prefix. Type: int
1479 | | ...
1480 | | ... | *Return:*
1481 | | ... | - No value returned
1482 | | ...
1483 | | ... | *Example:*
1484 | | ... | \| Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology \
1485 | | ... | \| ${dut1_dut2_ip6_address} \| ${dut1_tg_ip4_address} \
1486 | | ... | \| ${dut2_dut1_ip6_address} \| ${dut2_tg_ip4_address} \
1487 | | ... | \| ${prefix4} \| ${prefix6} \|
1488 | | ...
1489 | | [Arguments] | ${dut1_dut2_ip6_address} | ${dut1_tg_ip4_address}
1490 | | ...         | ${dut2_dut1_ip6_address} | ${dut2_tg_ip4_address}
1491 | | ...         | ${prefix4} | ${prefix6}
1492 | | Set Interface State | ${dut1} | ${dut1_if1} | up
1493 | | Set Interface State | ${dut1} | ${dut1_if2} | up
1494 | | Set Interface State | ${dut2} | ${dut2_if1} | up
1495 | | Set Interface State | ${dut2} | ${dut2_if2} | up
1496 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
1497 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
1498 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
1499 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
1500 | | dut1_v4.set_ip | ${dut1_if1} | ${dut1_tg_ip4_address} | ${prefix4}
1501 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if2} | ${dut1_dut2_ip6_address}
1502 | | ...                  | ${prefix6}
1503 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if1} | ${dut2_dut1_ip6_address}
1504 | | ...                  | ${prefix6}
1505 | | dut2_v4.set_ip | ${dut2_if2} | ${dut2_tg_ip4_address} | ${prefix4}
1506 | | Vpp nodes ra suppress link layer | ${nodes}
1507 | | dut1_v4.set_arp | ${dut1_if1} | 10.10.10.2 | ${tg1_if1_mac}
1508 | | dut2_v4.set_arp | ${dut2_if2} | 20.20.20.2 | ${tg1_if2_mac}
1509 | | Add Ip Neighbor | ${dut1} | ${dut1_if2} | ${dut2_dut1_ip6_address}
1510 | | ...             | ${dut2_if1_mac}
1511 | | Add Ip Neighbor | ${dut2} | ${dut2_if1} | ${dut1_dut2_ip6_address}
1512 | | ...             | ${dut1_if2_mac}
1513
1514 | Lisp IPv6 over IPv4 forwarding initialized in a 3-node circular topology
1515 | | [Documentation] | Custom setup of IPv4 over IPv6 topology on all DUT nodes \
1516 | | ...             | Don`t set route.
1517 | | ...
1518 | | ... | *Arguments:*
1519 | | ... | -${dut1_dut2_ip4_address} - IPv4 address from DUT1 to DUT2.
1520 | | ... |                             Type: string
1521 | | ... | -${dut1_tg_ip6_address} - IPv6 address from DUT1 to tg. Type: string
1522 | | ... | -${dut2_dut1_ip4_address} - IPv4 address from DUT2 to DUT1.
1523 | | ... |                             Type: string
1524 | | ... | -${dut1_tg_ip6_address} - IPv6 address from DUT1 to tg. Type: string
1525 | | ... | -${prefix4} - IPv4 prefix. Type: int
1526 | | ... | -${prefix6} - IPv6 prefix. Type: int
1527 | | ...
1528 | | ... | *Return:*
1529 | | ... | - No value returned
1530 | | ...
1531 | | ... | *Example:*
1532 | | ... | \| Lisp IPv6 over IPv4 forwarding initialized in a 3-node circular topology \
1533 | | ... | \| ${dut1_dut2_ip4_address} \| ${dut1_tg_ip6_address} \
1534 | | ... | \| ${dut2_dut1_ip4_address} \| ${dut2_tg_ip6_address} \
1535 | | ... | \| ${prefix4} \| ${prefix6} \|
1536 | | ...
1537 | | [Arguments] | ${dut1_dut2_ip4_address} | ${dut1_tg_ip6_address}
1538 | | ...         | ${dut2_dut1_ip4_address} | ${dut2_tg_ip6_address}
1539 | | ...         | ${prefix4} | ${prefix6}
1540 | | Set Interface State | ${dut1} | ${dut1_if1} | up
1541 | | Set Interface State | ${dut1} | ${dut1_if2} | up
1542 | | Set Interface State | ${dut2} | ${dut2_if1} | up
1543 | | Set Interface State | ${dut2} | ${dut2_if2} | up
1544 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
1545 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
1546 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
1547 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
1548 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if1} | ${dut1_tg_ip6_address}
1549 | | ...                  | ${prefix6}
1550 | | dut1_v4.set_ip | ${dut1_if2} | ${dut1_dut2_ip4_address} | ${prefix4}
1551 | | dut2_v4.set_ip | ${dut2_if1} | ${dut2_dut1_ip4_address} | ${prefix4}
1552 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if2} | ${dut2_tg_ip6_address}
1553 | | ...                  | ${prefix6}
1554 | | Vpp nodes ra suppress link layer | ${nodes}
1555 | | Add Ip Neighbor | ${dut1} | ${dut1_if1} | 2001:1::2 | ${tg1_if1_mac}
1556 | | Add Ip Neighbor | ${dut2} | ${dut2_if2} | 2001:2::2 | ${tg1_if2_mac}
1557 | | dut1_v4.set_arp | ${dut1_if2} | ${dut2_dut1_ip4_address} | ${dut2_if1_mac}
1558 | | dut2_v4.set_arp | ${dut2_if1} | ${dut1_dut2_ip4_address} | ${dut1_if2_mac}
1559