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:
6 # http://www.apache.org/licenses/LICENSE-2.0
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.
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
33 | Setup performance rate Variables
35 | | ... | Setup performance linerates as Suite Variables. Variables are used
36 | | ... | as search boundaries in RFC2544 throughput search.
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
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
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
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
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
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
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
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
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
197 | | ... | Calculate pps for given rate and L2 frame size,
198 | | ... | additional 20B are added to L2 frame size as padding.
200 | | ... | *Arguments*
201 | | ... | - bps - Rate in bps. Type: integer
202 | | ... | - framesize - L2 frame size in Bytes. Type: integer
205 | | ... | - Calculated pps. Type: integer
209 | | ... | \| Calculate pps \| 10000000000 | 64
210 | | [Arguments] | ${bps} | ${framesize}
211 | | ${ret}= | Evaluate | (${bps}/((${framesize}+20)*8)).__trunc__()
212 | | Return From Keyword | ${ret}
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.
220 | | ... | *Arguments:*
221 | | ... | - framesize - Framesize. Type: integer or string
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}
231 | Setup performance global Variables
233 | | ... | Setup suite Variables. Variables are used across performance testing.
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
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
244 | 2-node circular Topology Variables Setup
246 | | ... | Compute path for testing on two given nodes in circular
247 | | ... | topology and set corresponding suite variables.
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.
257 | | Append Nodes | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['TG']}
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}
270 | 3-node circular Topology Variables Setup
272 | | ... | Compute path for testing on three given nodes in circular
273 | | ... | topology and set corresponding suite variables.
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.
286 | | Append Nodes | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']}
287 | | ... | ${nodes['TG']}
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}
305 | 2-node circular Topology Variables Setup with DUT interface model
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.
311 | | ... | *Arguments:*
312 | | ... | - iface_model - Interface model. Type: string
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.
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']}
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}
343 | 3-node circular Topology Variables Setup with DUT interface model
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.
349 | | ... | *Arguments:*
350 | | ... | - iface_model - Interface model. Type: string
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.
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']}
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}
390 | VPP interfaces in path are up in a 2-node circular topology
392 | | ... | *Set UP state on VPP interfaces in path on nodes in 2-node circular
395 | | Set Interface State | ${dut1} | ${dut1_if1} | up
396 | | Set Interface State | ${dut1} | ${dut1_if2} | up
397 | | Vpp Node Interfaces Ready Wait | ${dut1}
399 | VPP interfaces in path are up in a 3-node circular topology
401 | | ... | *Set UP state on VPP interfaces in path on nodes in 3-node circular
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}
411 | IPv4 forwarding initialized in a 3-node circular topology
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.
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}
439 | Scale IPv4 forwarding initialized in a 3-node circular topology
441 | | ... | Custom setup of IPv4 topology with scalability of ip routes on all
442 | | ... | DUT nodes in 3-node circular topology
444 | | ... | *Arguments:*
445 | | ... | - ${count} - IP route count. Type: integer
448 | | ... | - No value returned
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}
481 | IPv4 forwarding with vhost initialized in a 3-node circular topology
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.
492 | | ... | *Arguments:*
493 | | ... | - sock1 - Sock path for first Vhost-User interface. Type: string
494 | | ... | - sock2 - Sock path for second Vhost-User interface. Type: string
497 | | ... | - No value returned
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}
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}
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}
608 | IPv4 policer 2r3c-${t} initialized in a 3-node circular topology
610 | | ... | Setup of 2r3c color-aware or color-blind policer with dst ip match
611 | | ... | on all DUT nodes in 3-node circular topology. Policer is applied on
612 | | ... | links TG - DUT1 and DUT2 - TG.
614 | | ${dscp}= | DSCP AF22
615 | | Policer Set Name | policer1
616 | | Policer Set CIR | ${cir}
617 | | Policer Set EIR | ${eir}
618 | | Policer Set CB | ${cb}
619 | | Policer Set EB | ${eb}
620 | | Policer Set Rate Type pps
621 | | Policer Set Round Type Closest
622 | | Policer Set Type 2R3C 2698
623 | | Policer Set Conform Action Transmit
624 | | Policer Set Exceed Action Mark and Transmit | ${dscp}
625 | | Policer Set Violate Action Transmit
626 | | Policer Enable Color Aware
627 | | Run Keyword If | ${t} == 'ca' | Policer Enable Color Aware
628 | | Policer Classify Set Precolor Exceed
629 | | Policer Set Node | ${dut1}
630 | | Policer Classify Set Interface | ${dut1_if1}
631 | | Policer Classify Set Match IP | 20.20.20.2 | ${False}
632 | | Policer Set Configuration
633 | | Policer Set Node | ${dut2}
634 | | Policer Classify Set Interface | ${dut2_if2}
635 | | Policer Classify Set Match IP | 10.10.10.2 | ${False}
636 | | Policer Set Configuration
638 | IPv6 forwarding initialized in a 3-node circular topology
640 | | ... | Set UP state on VPP interfaces in path on nodes in 3-node circular
641 | | ... | topology. Get the interface MAC addresses and setup neighbour on all
642 | | ... | VPP interfaces. Setup IPv6 addresses with /128 prefixes on all
643 | | ... | interfaces. Set routing on both DUT nodes with prefix /64 and
644 | | ... | next hop of neighbour DUT interface IPv6 address.
646 | | ${prefix}= | Set Variable | 64
647 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
648 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
649 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
650 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
651 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if1} | 2001:1::1 | ${prefix}
652 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if2} | 2001:3::1 | ${prefix}
653 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if1} | 2001:3::2 | ${prefix}
654 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if2} | 2001:2::1 | ${prefix}
655 | | Vpp nodes ra suppress link layer | ${nodes}
656 | | Add Ip Neighbor | ${dut1} | ${dut1_if1} | 2001:1::2 | ${tg1_if1_mac}
657 | | Add Ip Neighbor | ${dut2} | ${dut2_if2} | 2001:2::2 | ${tg1_if2_mac}
658 | | Add Ip Neighbor | ${dut1} | ${dut1_if2} | 2001:3::2 | ${dut2_if1_mac}
659 | | Add Ip Neighbor | ${dut2} | ${dut2_if1} | 2001:3::1 | ${dut1_if2_mac}
660 | | Vpp Route Add | ${dut1} | 2001:2::0 | ${prefix} | 2001:3::2 | ${dut1_if2}
661 | | Vpp Route Add | ${dut2} | 2001:1::0 | ${prefix} | 2001:3::1 | ${dut2_if1}
663 | Scale IPv6 forwarding initialized in a 3-node circular topology
665 | | ... | Custom setup of IPv6 topology with scalability of ip routes on all
666 | | ... | DUT nodes in 3-node circular topology
668 | | ... | *Arguments:*
669 | | ... | - ${count} - IP route count. Type: integer
672 | | ... | - No value returned
676 | | ... | \| Scale IPv6 forwarding initialized in a 3-node circular topology \
677 | | ... | \| 100000 \|
678 | | [Arguments] | ${count}
679 | | ${subn_prefix}= | Set Variable | 64
680 | | ${host_prefix}= | Set Variable | 128
681 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if1} | 2001:3::1 | ${subn_prefix}
682 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if2} | 2001:4::1 | ${subn_prefix}
683 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if1} | 2001:4::2 | ${subn_prefix}
684 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if2} | 2001:5::1 | ${subn_prefix}
685 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
686 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
687 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
688 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
689 | | Vpp nodes ra suppress link layer | ${nodes}
690 | | Add Ip Neighbor | ${dut1} | ${dut1_if1} | 2001:3::2 | ${tg1_if1_mac}
691 | | Add Ip Neighbor | ${dut1} | ${dut1_if2} | 2001:4::2 | ${dut2_if1_mac}
692 | | Add Ip Neighbor | ${dut2} | ${dut2_if1} | 2001:4::1 | ${dut1_if2_mac}
693 | | Add Ip Neighbor | ${dut2} | ${dut2_if2} | 2001:5::2 | ${tg1_if2_mac}
694 | | Vpp Route Add | ${dut1} | 2001:2::0 | ${host_prefix} | 2001:4::2
695 | | ... | interface=${dut1_if2} | count=${count}
696 | | Vpp Route Add | ${dut1} | 2001:1::0 | ${host_prefix} | 2001:3::2
697 | | ... | interface=${dut1_if1} | count=${count}
698 | | Vpp Route Add | ${dut2} | 2001:1::0 | ${host_prefix} | 2001:4::1
699 | | ... | interface=${dut2_if2} | count=${count}
700 | | Vpp Route Add | ${dut2} | 2001:2::0 | ${host_prefix} | 2001:5::2
701 | | ... | interface=${dut2_if1} | count=${count}
703 | IPv6 iAcl whitelist initialized in a 3-node circular topology
705 | | ... | Creates classify L3 table on DUTs. IPv6 iAcl security whitelist
706 | | ... | ingress /64 filter entries applied on links TG - DUT1 and DUT2 - TG.
708 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
709 | | ... | ${dut1} | ip6 | dst
710 | | And Vpp Configures Classify Session L3
711 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
712 | | ... | ip6 | dst | 2001:2::2
713 | | And Vpp Enable Input Acl Interface
714 | | ... | ${dut1} | ${dut1_if1} | ip6 | ${table_idx}
715 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
716 | | ... | ${dut2} | ip6 | dst
717 | | And Vpp Configures Classify Session L3
718 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
719 | | ... | ip6 | dst | 2001:1::2
720 | | And Vpp Enable Input Acl Interface
721 | | ... | ${dut2} | ${dut2_if2} | ip6 | ${table_idx}
723 | L2 xconnect initialized in a 3-node circular topology
725 | | ... | Setup L2 xconnect topology by cross connecting two interfaces on
726 | | ... | each DUT. Interfaces are brought up.
728 | | L2 setup xconnect on DUT | ${dut1} | ${dut1_if1} | ${dut1_if2}
729 | | L2 setup xconnect on DUT | ${dut2} | ${dut2_if1} | ${dut2_if2}
730 | | All Vpp Interfaces Ready Wait | ${nodes}
732 | L2 xconnect with VXLANoIPv4 initialized in a 3-node circular topology
734 | | ... | Setup L2 xconnect topology with VXLANoIPv4 by cross connecting
735 | | ... | physical and vxlan interfaces on each DUT. All interfaces are brought
736 | | ... | up. IPv4 addresses with prefix /24 are configured on interfaces
737 | | ... | between DUTs. VXLAN sub-interfaces has same IPv4 address as
738 | | ... | interfaces.
740 | | VPP interfaces in path are up in a 3-node circular topology
741 | | IP addresses are set on interfaces | ${dut1} | ${dut1_if2} | 172.16.0.1
743 | | IP addresses are set on interfaces | ${dut2} | ${dut2_if1} | 172.16.0.2
745 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
746 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
747 | | Add arp on dut | ${dut1} | ${dut1_if2} | 172.16.0.2 | ${dut2_if1_mac}
748 | | Add arp on dut | ${dut2} | ${dut2_if1} | 172.16.0.1 | ${dut1_if2_mac}
749 | | ${dut1s_vxlan}= | Create VXLAN interface | ${dut1} | 24
750 | | ... | 172.16.0.1 | 172.16.0.2
751 | | L2 setup xconnect on DUT | ${dut1} | ${dut1_if1} | ${dut1s_vxlan}
752 | | ${dut2s_vxlan}= | Create VXLAN interface | ${dut2} | 24
753 | | ... | 172.16.0.2 | 172.16.0.1
754 | | L2 setup xconnect on DUT | ${dut2} | ${dut2_if2} | ${dut2s_vxlan}
756 | L2 xconnect with Vhost-User initialized in a 3-node circular topology
758 | | ... | Create two Vhost-User interfaces on all defined VPP nodes. Cross
759 | | ... | connect each Vhost interface with one physical interface.
761 | | ... | *Arguments:*
762 | | ... | - sock1 - Socket path for first Vhost-User interface. Type: string
763 | | ... | - sock2 - Socket path for second Vhost-User interface. Type: string
767 | | ... | \| L2 xconnect with Vhost-User initialized in a 3-node \
768 | | ... | circular topology \| /tmp/sock1 \| /tmp/sock2 \|
769 | | [Arguments] | ${sock1} | ${sock2}
770 | | VPP Vhost interfaces for L2BD forwarding are setup | ${dut1}
773 | | L2 setup xconnect on DUT | ${dut1} | ${dut1_if1} | ${vhost_if1}
774 | | L2 setup xconnect on DUT | ${dut1} | ${dut1_if2} | ${vhost_if2}
775 | | VPP Vhost interfaces for L2BD forwarding are setup | ${dut2}
778 | | L2 setup xconnect on DUT | ${dut2} | ${dut2_if1} | ${vhost_if1}
779 | | L2 setup xconnect on DUT | ${dut2} | ${dut2_if2} | ${vhost_if2}
780 | | All Vpp Interfaces Ready Wait | ${nodes}
782 | L2 bridge domain initialized in a 3-node circular topology
784 | | ... | Setup L2 DB topology by adding two interfaces on each DUT into BD
785 | | ... | that is created automatically with index 1. Learning is enabled.
786 | | ... | Interfaces are brought up.
788 | | Vpp l2bd forwarding setup | ${dut1} | ${dut1_if1} | ${dut1_if2}
789 | | Vpp l2bd forwarding setup | ${dut2} | ${dut2_if1} | ${dut2_if2}
790 | | All Vpp Interfaces Ready Wait | ${nodes}
792 | L2 bridge domains with Vhost-User initialized in a 3-node circular topology
794 | | ... | Create two Vhost-User interfaces on all defined VPP nodes. Add each
795 | | ... | Vhost-User interface into L2 bridge domains with learning enabled
796 | | ... | with physical inteface.
798 | | ... | *Arguments:*
799 | | ... | - bd_id1 - Bridge domain ID. Type: integer
800 | | ... | - bd_id2 - Bridge domain ID. Type: integer
801 | | ... | - sock1 - Sock path for first Vhost-User interface. Type: string
802 | | ... | - sock2 - Sock path for second Vhost-User interface. Type: string
806 | | ... | \| L2 bridge domains with Vhost-User initialized in a 3-node \
807 | | ... | circular topology \| 1 \| 2 \| /tmp/sock1 \| /tmp/sock2 \|
808 | | [Arguments] | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
809 | | VPP Vhost interfaces for L2BD forwarding are setup | ${dut1}
812 | | Interface is added to bridge domain | ${dut1} | ${dut1_if1} | ${bd_id1}
813 | | Interface is added to bridge domain | ${dut1} | ${vhost_if1} | ${bd_id1}
814 | | Interface is added to bridge domain | ${dut1} | ${dut1_if2} | ${bd_id2}
815 | | Interface is added to bridge domain | ${dut1} | ${vhost_if2} | ${bd_id2}
816 | | VPP Vhost interfaces for L2BD forwarding are setup | ${dut2}
819 | | Interface is added to bridge domain | ${dut2} | ${dut2_if1} | ${bd_id1}
820 | | Interface is added to bridge domain | ${dut2} | ${vhost_if1} | ${bd_id1}
821 | | Interface is added to bridge domain | ${dut2} | ${dut2_if2} | ${bd_id2}
822 | | Interface is added to bridge domain | ${dut2} | ${vhost_if2} | ${bd_id2}
823 | | All Vpp Interfaces Ready Wait | ${nodes}
825 2-node Performance Suite Setup with DUT's NIC model
827 | | ... | Suite preparation phase that setup default startup configuration of
828 | | ... | VPP on all DUTs. Updates interfaces on all nodes and setup global
829 | | ... | variables used in test cases based on interface model provided as an
830 | | ... | argument. Initializes traffic generator.
832 | | ... | *Arguments:*
833 | | ... | - topology_type - Topology type. Type: string
834 | | ... | - nic_model - Interface model. Type: string
838 | | ... | \| 2-node Performance Suite Setup \| L2 \| Intel-X520-DA2 \|
839 | | [Arguments] | ${topology_type} | ${nic_model}
840 | | Setup default startup configuration of VPP on all DUTs
841 | | Show vpp version on all DUTs
842 | | Setup performance rate Variables
843 | | Setup performance global Variables
844 | | 2-node circular Topology Variables Setup with DUT interface model
845 | | ... | ${nic_model}
846 | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2}
847 | | ... | ${dut1} | ${dut1_if1}
848 | | ... | ${dut1} | ${dut1_if2}
849 | | ... | ${topology_type}
851 3-node Performance Suite Setup with DUT's NIC model
853 | | ... | Suite preparation phase that setup default startup configuration of
854 | | ... | VPP on all DUTs. Updates interfaces on all nodes and setup global
855 | | ... | variables used in test cases based on interface model provided as an
856 | | ... | argument. Initializes traffic generator.
858 | | ... | *Arguments:*
859 | | ... | - topology_type - Topology type. Type: string
860 | | ... | - nic_model - Interface model. Type: string
864 | | ... | \| 3-node Performance Suite Setup \| L2 \| Intel-X520-DA2 \|
865 | | [Arguments] | ${topology_type} | ${nic_model}
866 | | Setup default startup configuration of VPP on all DUTs
867 | | Show vpp version on all DUTs
868 | | Setup performance rate Variables
869 | | Setup performance global Variables
870 | | 3-node circular Topology Variables Setup with DUT interface model
871 | | ... | ${nic_model}
872 | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2}
873 | | ... | ${dut1} | ${dut1_if1}
874 | | ... | ${dut2} | ${dut2_if2}
875 | | ... | ${topology_type}
877 | 3-node Performance Suite Teardown
879 | | ... | Suite teardown phase with traffic generator teardown.
881 | | Teardown traffic generator | ${tg}
883 | Find NDR using linear search and pps
885 | | ... | Find throughput by using RFC2544 linear search with non drop rate.
887 | | ... | *Arguments:*
888 | | ... | - framesize - L2 Frame Size [B]. Type: integer
889 | | ... | - start_rate - Initial start rate [pps]. Type: float
890 | | ... | - step_rate - Step of linear search [pps]. Type: float
891 | | ... | - topology_type - Topology type. Type: string
892 | | ... | - min_rate - Lower limit of search [pps]. Type: float
893 | | ... | - max_rate - Upper limit of search [pps]. Type: float
896 | | ... | - No value returned
900 | | ... | \| Find NDR using linear search and pps \| 64 \| 5000000 \| \
901 | | ... | \| 100000 \| 3-node-IPv4 \| 100000 \| 14880952
902 | | [Arguments] | ${framesize} | ${start_rate} | ${step_rate}
903 | | ... | ${topology_type} | ${min_rate} | ${max_rate}
904 | | ${duration}= | Set Variable | 10
905 | | Set Duration | ${duration}
906 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
907 | | Set Search Linear Step | ${step_rate}
908 | | Set Search Frame Size | ${framesize}
909 | | Set Search Rate Type pps
910 | | Linear Search | ${start_rate} | ${topology_type}
911 | | ${rate_per_stream} | ${latency}= | Verify Search Result
912 | | Display result of NDR search | ${rate_per_stream} | ${framesize} | 2
914 | | Traffic should pass with no loss | ${duration} | ${rate_per_stream}pps
915 | | ... | ${framesize} | ${topology_type}
916 | | ... | fail_on_loss=${False}
918 | Find PDR using linear search and pps
920 | | ... | Find throughput by using RFC2544 linear search with partial drop rate
921 | | ... | with PDR threshold and type specified by parameter.
923 | | ... | *Arguments:*
924 | | ... | - framesize - L2 Frame Size [B]. Type: integer
925 | | ... | - start_rate - Initial start rate [pps]. Type: float
926 | | ... | - step_rate - Step of linear search [pps]. Type: float
927 | | ... | - topology_type - Topology type. Type: string
928 | | ... | - min_rate - Lower limit of search [pps]. Type: float
929 | | ... | - max_rate - Upper limit of search [pps]. Type: float
930 | | ... | - loss_acceptance - Accepted loss during search. Type: float
931 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
935 | | ... | \| Find PDR using linear search and pps \| 64 \| 5000000 \
936 | | ... | \| 100000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 0.5 \| percentage
937 | | [Arguments] | ${framesize} | ${start_rate} | ${step_rate}
938 | | ... | ${topology_type} | ${min_rate} | ${max_rate}
939 | | ... | ${loss_acceptance}=0 | ${loss_acceptance_type}='frames'
940 | | ${duration}= | Set Variable | 10
941 | | Set Duration | ${duration}
942 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
943 | | Set Search Linear Step | ${step_rate}
944 | | Set Search Frame Size | ${framesize}
945 | | Set Search Rate Type pps
946 | | Set Loss Acceptance | ${loss_acceptance}
947 | | Run Keyword If | '${loss_acceptance_type}' == 'percentage'
948 | | ... | Set Loss Acceptance Type Percentage
949 | | Linear Search | ${start_rate} | ${topology_type}
950 | | ${rate_per_stream} | ${latency}= | Verify Search Result
951 | | Display result of PDR search | ${rate_per_stream} | ${framesize} | 2
952 | | ... | ${loss_acceptance} | ${loss_acceptance_type}
954 | | Traffic should pass with partial loss | ${duration} | ${rate_per_stream}pps
955 | | ... | ${framesize} | ${topology_type}
956 | | ... | ${loss_acceptance}
957 | | ... | ${loss_acceptance_type}
958 | | ... | fail_on_loss=${False}
960 | Find NDR using binary search and pps
962 | | ... | Find throughput by using RFC2544 binary search with non drop rate.
964 | | ... | *Arguments:*
965 | | ... | - framesize - L2 Frame Size [B]. Type: integer
966 | | ... | - binary_min - Lower boundary of search [pps]. Type: float
967 | | ... | - binary_max - Upper boundary of search [pps]. Type: float
968 | | ... | - topology_type - Topology type. Type: string
969 | | ... | - min_rate - Lower limit of search [pps]. Type: float
970 | | ... | - max_rate - Upper limit of search [pps]. Type: float
971 | | ... | - threshold - Threshold to stop search [pps]. Type: integer
975 | | ... | \| Find NDR using binary search and pps \| 64 \| 6000000 \
976 | | ... | \| 12000000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 50000
977 | | [Arguments] | ${framesize} | ${binary_min} | ${binary_max}
978 | | ... | ${topology_type} | ${min_rate} | ${max_rate} | ${threshold}
979 | | ${duration}= | Set Variable | 10
980 | | Set Duration | ${duration}
981 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
982 | | Set Search Frame Size | ${framesize}
983 | | Set Search Rate Type pps
984 | | Set Binary Convergence Threshold | ${threshold}
985 | | Binary Search | ${binary_min} | ${binary_max} | ${topology_type}
986 | | ${rate_per_stream} | ${latency}= | Verify Search Result
987 | | Display result of NDR search | ${rate_per_stream} | ${framesize} | 2
989 | | Traffic should pass with no loss | ${duration} | ${rate_per_stream}pps
990 | | ... | ${framesize} | ${topology_type}
991 | | ... | fail_on_loss=${False}
993 | Find PDR using binary search and pps
995 | | ... | Find throughput by using RFC2544 binary search with partial drop rate
996 | | ... | with PDR threshold and type specified by parameter.
998 | | ... | *Arguments:*
999 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1000 | | ... | - binary_min - Lower boundary of search [pps]. Type: float
1001 | | ... | - binary_max - Upper boundary of search [pps]. Type: float
1002 | | ... | - topology_type - Topology type. Type: string
1003 | | ... | - min_rate - Lower limit of search [pps]. Type: float
1004 | | ... | - max_rate - Upper limit of search [pps]. Type: float
1005 | | ... | - threshold - Threshold to stop search [pps]. Type: integer
1006 | | ... | - loss_acceptance - Accepted loss during search. Type: float
1007 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
1009 | | ... | *Example:*
1011 | | ... | \| Find PDR using binary search and pps \| 64 \| 6000000 \
1012 | | ... | \| 12000000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 50000 \| 0.5 \
1013 | | ... | \| percentage
1014 | | [Arguments] | ${framesize} | ${binary_min} | ${binary_max}
1015 | | ... | ${topology_type} | ${min_rate} | ${max_rate} | ${threshold}
1016 | | ... | ${loss_acceptance}=0 | ${loss_acceptance_type}='frames'
1017 | | ${duration}= | Set Variable | 10
1018 | | Set Duration | ${duration}
1019 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
1020 | | Set Search Frame Size | ${framesize}
1021 | | Set Search Rate Type pps
1022 | | Set Loss Acceptance | ${loss_acceptance}
1023 | | Run Keyword If | '${loss_acceptance_type}' == 'percentage'
1024 | | ... | Set Loss Acceptance Type Percentage
1025 | | Set Binary Convergence Threshold | ${threshold}
1026 | | Binary Search | ${binary_min} | ${binary_max} | ${topology_type}
1027 | | ${rate_per_stream} | ${latency}= | Verify Search Result
1028 | | Display result of PDR search | ${rate_per_stream} | ${framesize} | 2
1029 | | ... | ${loss_acceptance} | ${loss_acceptance_type}
1030 | | ... | ${latency}
1031 | | Traffic should pass with partial loss | ${duration} | ${rate_per_stream}pps
1032 | | ... | ${framesize} | ${topology_type}
1033 | | ... | ${loss_acceptance}
1034 | | ... | ${loss_acceptance_type}
1035 | | ... | fail_on_loss=${False}
1037 | Find NDR using combined search and pps
1039 | | ... | Find throughput by using RFC2544 combined search (linear+binary) with
1040 | | ... | non drop rate.
1042 | | ... | *Arguments:*
1043 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1044 | | ... | - start_rate - Initial start rate [pps]. Type: float
1045 | | ... | - step_rate - Step of linear search [pps]. Type: float
1046 | | ... | - topology_type - Topology type. Type: string
1047 | | ... | - min_rate - Lower limit of search [pps]. Type: float
1048 | | ... | - max_rate - Upper limit of search [pps]. Type: float
1049 | | ... | - threshold - Threshold to stop search [pps]. Type: integer
1051 | | ... | *Example:*
1053 | | ... | \| Find NDR using combined search and pps \| 64 \| 5000000 \
1054 | | ... | \| 100000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 5000
1055 | | [Arguments] | ${framesize} | ${start_rate} | ${step_rate}
1056 | | ... | ${topology_type} | ${min_rate} | ${max_rate} | ${threshold}
1057 | | ${duration}= | Set Variable | 10
1058 | | Set Duration | ${duration}
1059 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
1060 | | Set Search Linear Step | ${step_rate}
1061 | | Set Search Frame Size | ${framesize}
1062 | | Set Search Rate Type pps
1063 | | Set Binary Convergence Threshold | ${threshold}
1064 | | Combined Search | ${start_rate} | ${topology_type}
1065 | | ${rate_per_stream} | ${latency}= | Verify Search Result
1066 | | Display result of NDR search | ${rate_per_stream} | ${framesize} | 2
1067 | | ... | ${latency}
1068 | | Traffic should pass with no loss | ${duration} | ${rate_per_stream}pps
1069 | | ... | ${framesize} | ${topology_type}
1070 | | ... | fail_on_loss=${False}
1072 | Find PDR using combined search and pps
1074 | | ... | Find throughput by using RFC2544 combined search (linear+binary) with
1075 | | ... | partial drop rate with PDR threshold and type specified by parameter.
1077 | | ... | *Arguments:*
1078 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1079 | | ... | - start_rate - Initial start rate [pps]. Type: float
1080 | | ... | - step_rate - Step of linear search [pps]. Type: float
1081 | | ... | - topology_type - Topology type. Type: string
1082 | | ... | - min_rate - Lower limit of search [pps]. Type: float
1083 | | ... | - max_rate - Upper limit of search [pps]. Type: float
1084 | | ... | - threshold - Threshold to stop search [pps]. Type: integer
1085 | | ... | - loss_acceptance - Accepted loss during search. Type: float
1086 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
1088 | | ... | *Example:*
1090 | | ... | \| Find PDR using combined search and pps \| 64 \| 5000000 \
1091 | | ... | \| 100000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 5000 \| 0.5 \
1092 | | ... | \| percentage
1093 | | [Arguments] | ${framesize} | ${start_rate} | ${step_rate}
1094 | | ... | ${topology_type} | ${min_rate} | ${max_rate} | ${threshold}
1095 | | ... | ${loss_acceptance}=0 | ${loss_acceptance_type}='frames'
1096 | | ${duration}= | Set Variable | 10
1097 | | Set Duration | ${duration}
1098 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
1099 | | Set Search Linear Step | ${step_rate}
1100 | | Set Search Frame Size | ${framesize}
1101 | | Set Search Rate Type pps
1102 | | Set Loss Acceptance | ${loss_acceptance}
1103 | | Run Keyword If | '${loss_acceptance_type}' == 'percentage'
1104 | | ... | Set Loss Acceptance Type Percentage
1105 | | Set Binary Convergence Threshold | ${threshold}
1106 | | Combined Search | ${start_rate} | ${topology_type}
1107 | | ${rate_per_stream} | ${latency}= | Verify Search Result
1108 | | Display result of PDR search | ${rate_per_stream} | ${framesize} | 2
1109 | | ... | ${loss_acceptance} | ${loss_acceptance_type}
1110 | | ... | ${latency}
1111 | | Traffic should pass with partial loss | ${duration} | ${rate_per_stream}pps
1112 | | ... | ${framesize} | ${topology_type}
1113 | | ... | ${loss_acceptance}
1114 | | ... | ${loss_acceptance_type}
1115 | | ... | fail_on_loss=${False}
1117 | Display result of NDR search
1119 | | ... | Display result of NDR search in packet per seconds (total and per
1120 | | ... | stream) and Gbps total bandwidth with untagged packet.
1121 | | ... | Througput is calculated as:
1122 | | ... | Measured rate per stream * Total number of streams
1123 | | ... | Bandwidth is calculated as:
1124 | | ... | (Througput * (L2 Frame Size + IPG) * 8) / Max bitrate of NIC
1126 | | ... | *Arguments:*
1127 | | ... | - rate_per_stream - Measured rate per stream [pps]. Type: string
1128 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1129 | | ... | - nr_streams - Total number of streams. Type: integer
1130 | | ... | - latency - Latency stats. Type: dictionary
1132 | | ... | *Example:*
1134 | | ... | \| Display result of NDR search \| 4400000 \| 64 \| 2 \
1135 | | ... | \| (0, 10/10/10) \|
1136 | | [Arguments] | ${rate_per_stream} | ${framesize} | ${nr_streams}
1137 | | ... | ${latency}
1138 | | ${framesize}= | Get Frame Size | ${framesize}
1139 | | ${rate_total}= | Evaluate | ${rate_per_stream}*${nr_streams}
1140 | | ${bandwidth_total}= | Evaluate | ${rate_total}*(${framesize}+20)*8/(10**9)
1141 | | Set Test Message | FINAL_RATE: ${rate_total} pps
1142 | | Set Test Message | (${nr_streams}x ${rate_per_stream} pps)
1143 | | ... | append=yes
1144 | | Set Test Message | ${\n}FINAL_BANDWIDTH: ${bandwidth_total} Gbps (untagged)
1145 | | ... | append=yes
1146 | | :FOR | ${idx} | ${lat} | IN ENUMERATE | @{latency}
1147 | | | Set Test Message | ${\n}LATENCY_STREAM_${idx}: ${lat} usec (min/avg/max)
1148 | | ... | append=yes
1150 | Display result of PDR search
1152 | | ... | Display result of PDR search in packet per seconds (total and per
1153 | | ... | stream) and Gbps total bandwidth with untagged packet.
1154 | | ... | Througput is calculated as:
1155 | | ... | Measured rate per stream * Total number of streams
1156 | | ... | Bandwidth is calculated as:
1157 | | ... | (Througput * (L2 Frame Size + IPG) * 8) / Max bitrate of NIC
1159 | | ... | *Arguments:*
1160 | | ... | - rate_per_stream - Measured rate per stream [pps]. Type: string
1161 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1162 | | ... | - nr_streams - Total number of streams. Type: integer
1163 | | ... | - loss_acceptance - Accepted loss during search. Type: float
1164 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
1165 | | ... | - latency - Latency stats. Type: dictionary
1167 | | ... | *Example:*
1169 | | ... | \| Display result of PDR search \| 4400000 \| 64 \| 2 \| 0.5 \
1170 | | ... | \| percentage \| (0, 10/10/10) \|
1171 | | [Arguments] | ${rate_per_stream} | ${framesize} | ${nr_streams}
1172 | | ... | ${loss_acceptance} | ${loss_acceptance_type} | ${latency}
1173 | | ${framesize}= | Get Frame Size | ${framesize}
1174 | | ${rate_total}= | Evaluate | ${rate_per_stream}*${nr_streams}
1175 | | ${bandwidth_total}= | Evaluate | ${rate_total}*(${framesize}+20)*8/(10**9)
1176 | | Set Test Message | FINAL_RATE: ${rate_total} pps
1177 | | Set Test Message | (${nr_streams}x ${rate_per_stream} pps)
1178 | | ... | append=yes
1179 | | Set Test Message | ${\n}FINAL_BANDWIDTH: ${bandwidth_total} Gbps (untagged)
1180 | | ... | append=yes
1181 | | :FOR | ${idx} | ${lat} | IN ENUMERATE | @{latency}
1182 | | | Set Test Message | ${\n}LATENCY_STREAM_${idx}: ${lat} usec (min/avg/max)
1183 | | ... | append=yes
1184 | | Set Test Message | ${\n}LOSS_ACCEPTANCE: ${loss_acceptance} ${loss_acceptance_type}
1185 | | ... | append=yes
1187 | Traffic should pass with no loss
1189 | | ... | Send traffic at specified rate. No packet loss is accepted at loss
1190 | | ... | evaluation.
1192 | | ... | *Arguments:*
1193 | | ... | - duration - Duration of traffic run [s]. Type: integer
1194 | | ... | - rate - Rate for sending packets. Type: string
1195 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1196 | | ... | - topology_type - Topology type. Type: string
1198 | | ... | *Example:*
1200 | | ... | \| Traffic should pass with no loss \| 10 \| 4.0mpps \| 64 \
1201 | | ... | \| 3-node-IPv4
1202 | | [Arguments] | ${duration} | ${rate} | ${framesize} | ${topology_type}
1203 | | ... | ${fail_on_loss}=${True}
1204 | | Clear and show runtime counters with running traffic | ${duration}
1205 | | ... | ${rate} | ${framesize} | ${topology_type}
1206 | | Clear all counters on all DUTs
1207 | | Send traffic on tg | ${duration} | ${rate} | ${framesize}
1208 | | ... | ${topology_type} | warmup_time=0
1209 | | Show statistics on all DUTs
1210 | | Run Keyword If | ${fail_on_loss} | No traffic loss occurred
1212 | Traffic should pass with partial loss
1214 | | ... | Send traffic at specified rate. Partial packet loss is accepted
1215 | | ... | within loss acceptance value specified as argument.
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 | | ... | - loss_acceptance - Accepted loss during search. Type: float
1223 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
1225 | | ... | *Example:*
1227 | | ... | \| Traffic should pass with partial loss \| 10 \| 4.0mpps \| 64 \
1228 | | ... | \| 3-node-IPv4 \| 0.5 \| percentage
1229 | | [Arguments] | ${duration} | ${rate} | ${framesize} | ${topology_type}
1230 | | ... | ${loss_acceptance} | ${loss_acceptance_type}
1231 | | ... | ${fail_on_loss}=${True}
1232 | | Clear and show runtime counters with running traffic | ${duration}
1233 | | ... | ${rate} | ${framesize} | ${topology_type}
1234 | | Clear all counters on all DUTs
1235 | | Send traffic on tg | ${duration} | ${rate} | ${framesize}
1236 | | ... | ${topology_type} | warmup_time=0
1237 | | Show statistics on all DUTs
1238 | | Run Keyword If | ${fail_on_loss} | Partial traffic loss accepted
1239 | | ... | ${loss_acceptance} | ${loss_acceptance_type}
1241 | Clear and show runtime counters with running traffic
1243 | | ... | Start traffic at specified rate then clear runtime counters on all
1244 | | ... | DUTs. Wait for specified amount of time and capture runtime counters
1245 | | ... | on all DUTs. Finally stop traffic
1247 | | ... | *Arguments:*
1248 | | ... | - duration - Duration of traffic run [s]. Type: integer
1249 | | ... | - rate - Rate for sending packets. Type: string
1250 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1251 | | ... | - topology_type - Topology type. Type: string
1253 | | ... | *Example:*
1255 | | ... | \| Traffic should pass with partial loss \| 10 \| 4.0mpps \| 64 \
1256 | | ... | \| 3-node-IPv4 \| 0.5 \| percentage
1257 | | [Arguments] | ${duration} | ${rate} | ${framesize} | ${topology_type}
1258 | | Send traffic on tg | -1 | ${rate} | ${framesize}
1259 | | ... | ${topology_type} | warmup_time=0 | async_call=${True}
1260 | | ... | latency=${False}
1261 | | Clear runtime counters on all DUTs
1262 | | Sleep | ${duration}
1263 | | Show runtime counters on all DUTs
1264 | | Stop traffic on tg
1266 | Add PCI devices to DUTs from 3-node single link topology
1267 | | ${dut1_if1_pci}= | Get Interface PCI Addr | ${dut1} | ${dut1_if1}
1268 | | ${dut1_if2_pci}= | Get Interface PCI Addr | ${dut1} | ${dut1_if2}
1269 | | ${dut2_if1_pci}= | Get Interface PCI Addr | ${dut2} | ${dut2_if1}
1270 | | ${dut2_if2_pci}= | Get Interface PCI Addr | ${dut2} | ${dut2_if2}
1271 | | Add PCI device | ${dut1} | ${dut1_if1_pci} | ${dut1_if2_pci}
1272 | | Add PCI device | ${dut2} | ${dut2_if1_pci} | ${dut2_if2_pci}
1274 | Guest VM with dpdk-testpmd connected via vhost-user is setup
1276 | | ... | Start QEMU guest with two vhost-user interfaces and interconnecting
1277 | | ... | DPDK testpmd. Qemu Guest is using 3 cores pinned to physical cores 5,
1278 | | ... | 6, 7 and 2048M. Testpmd is using 3 cores (1 main core and 2 cores
1279 | | ... | dedicated to io) socket-mem=1024, mem-channel=4, txq/rxq=2048,
1280 | | ... | burst=64, disable-hw-vlan, total-num-mbufs, driver
1281 | | ... | usr/lib/librte_pmd_virtio.so.
1283 | | ... | *Arguments:*
1284 | | ... | - dut_node - DUT node to start guest VM on. Type: dictionary
1285 | | ... | - sock1 - Socket path for first Vhost-User interface. Type: string
1286 | | ... | - sock2 - Socket path for second Vhost-User interface. Type: string
1287 | | ... | - vm_name - QemuUtil instance name. Type: string
1289 | | ... | *Example:*
1291 | | ... | \| Guest VM with dpdk-testpmd connected via vhost-user is setup \
1292 | | ... | \| ${nodes['DUT1']} \| /tmp/sock1 \| /tmp/sock2 \| DUT1_VM \|
1293 | | [Arguments] | ${dut_node} | ${sock1} | ${sock2} | ${vm_name}
1294 | | Import Library | resources.libraries.python.QemuUtils
1295 | | ... | WITH NAME | ${vm_name}
1296 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock1}
1297 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock2}
1298 | | Run keyword | ${vm_name}.Qemu Set Node | ${dut_node}
1299 | | Run keyword | ${vm_name}.Qemu Set Smp | 3 | 3 | 1 | 1
1300 | | Run keyword | ${vm_name}.Qemu Set Mem Size | 2048
1301 | | Run keyword | ${vm_name}.Qemu Set Huge Allocate
1302 | | Run keyword | ${vm_name}.Qemu Set Disk Image | ${glob_vm_image}
1303 | | ${vm}= | Run keyword | ${vm_name}.Qemu Start
1304 | | Run keyword | ${vm_name}.Qemu Set Affinity | 5 | 6 | 7
1305 | | Dpdk Testpmd Start | ${vm} | eal_coremask=0x7
1306 | | ... | eal_mem_channels=4
1307 | | ... | eal_socket_mem=1024
1308 | | ... | pmd_fwd_mode=io
1309 | | ... | pmd_disable_hw_vlan=${True}
1310 | | Return From Keyword | ${vm}
1312 | Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
1314 | | ... | Start QEMU guest with two vhost-user interfaces and interconnecting
1315 | | ... | DPDK testpmd. Qemu Guest is using 3 cores pinned to physical cores 5,
1316 | | ... | 6, 7 and 2048M. Testpmd is using 3 cores (1 main core and 2 cores
1317 | | ... | dedicated to io) socket-mem=1024, mem-channel=4, txq/rxq=2048,
1318 | | ... | burst=64, disable-hw-vlan, total-num-mbufs=65K, driver
1319 | | ... | usr/lib/librte_pmd_virtio.so and fwd mode is mac rewrite.
1321 | | ... | *Arguments:*
1322 | | ... | - dut_node - DUT node to start guest VM on. Type: dictionary
1323 | | ... | - sock1 - Socket path for first Vhost-User interface. Type: string
1324 | | ... | - sock2 - Socket path for second Vhost-User interface. Type: string
1325 | | ... | - vm_name - QemuUtil instance name. Type: string
1326 | | ... | - eth0_mac - MAC address of first Vhost interface. Type: string
1327 | | ... | - eth1_mac - MAC address of second Vhost interface. Type: string
1329 | | ... | *Example:*
1331 | | ... | \| Guest VM with dpdk-testpmd for Vhost L2BD forwarding is setup \
1332 | | ... | \| ${nodes['DUT1']} \| /tmp/sock1 \| /tmp/sock2 \| DUT1_VM \
1333 | | ... | \| 00:00:00:00:00:01 \| 00:00:00:00:00:02 \|
1334 | | [Arguments] | ${dut_node} | ${sock1} | ${sock2} | ${vm_name}
1335 | | ... | ${eth0_mac} | ${eth1_mac}
1336 | | Import Library | resources.libraries.python.QemuUtils
1337 | | ... | WITH NAME | ${vm_name}
1338 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock1}
1339 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock2}
1340 | | Run keyword | ${vm_name}.Qemu Set Node | ${dut_node}
1341 | | Run keyword | ${vm_name}.Qemu Set Smp | 3 | 3 | 1 | 1
1342 | | Run keyword | ${vm_name}.Qemu Set Mem Size | 2048
1343 | | Run keyword | ${vm_name}.Qemu Set Huge Allocate
1344 | | Run keyword | ${vm_name}.Qemu Set Disk Image
1345 | | ... | /var/lib/vm/csit-nested-1.3.img
1346 | | ${vm}= | Run keyword | ${vm_name}.Qemu Start
1347 | | Run keyword | ${vm_name}.Qemu Set Affinity | 5 | 6 | 7
1348 | | Dpdk Testpmd Start | ${vm} | eal_coremask=0x7
1349 | | ... | eal_mem_channels=4
1350 | | ... | eal_socket_mem=1024
1351 | | ... | pmd_fwd_mode=mac
1352 | | ... | pmd_eth_peer_0=0,${eth0_mac}
1353 | | ... | pmd_eth_peer_1=1,${eth1_mac}
1354 | | ... | pmd_disable_hw_vlan=${True}
1355 | | Return From Keyword | ${vm}
1357 | Guest VM with Linux Bridge connected via vhost-user is setup
1359 | | ... | Start QEMU guest with two vhost-user interfaces and interconnecting
1360 | | ... | linux bridge. Qemu Guest is using 3 cores pinned to physical cores 5,
1361 | | ... | 6, 7 and 2048M.
1363 | | ... | *Arguments:*
1364 | | ... | - dut_node - DUT node to start guest VM on. Type: dictionary
1365 | | ... | - sock1 - Socket path for first Vhost-User interface. Type: string
1366 | | ... | - sock2 - Socket path for second Vhost-User interface. Type: string
1367 | | ... | - vm_name - QemuUtil instance name. Type: string
1369 | | ... | *Example:*
1371 | | ... | \| Guest VM with Linux Bridge connected via vhost-user is setup \
1372 | | ... | \| ${nodes['DUT1']} \| /tmp/sock1 \| /tmp/sock2 \| DUT1_VM \|
1373 | | [Arguments] | ${dut_node} | ${sock1} | ${sock2} | ${vm_name}
1374 | | Import Library | resources.libraries.python.QemuUtils
1375 | | ... | WITH NAME | ${vm_name}
1376 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock1}
1377 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock2}
1378 | | Run keyword | ${vm_name}.Qemu Set Node | ${dut_node}
1379 | | Run keyword | ${vm_name}.Qemu Set Smp | 3 | 3 | 1 | 1
1380 | | Run keyword | ${vm_name}.Qemu Set Mem Size | 2048
1381 | | Run keyword | ${vm_name}.Qemu Set Huge Allocate
1382 | | Run keyword | ${vm_name}.Qemu Set Disk Image | ${glob_vm_image}
1383 | | ${vm}= | Run keyword | ${vm_name}.Qemu Start
1384 | | Run keyword | ${vm_name}.Qemu Set Affinity | 5 | 6 | 7
1385 | | ${br}= | Set Variable | br0
1386 | | ${vhost1}= | Get Vhost User If Name By Sock | ${vm} | ${sock1}
1387 | | ${vhost2}= | Get Vhost User If Name By Sock | ${vm} | ${sock2}
1388 | | Linux Add Bridge | ${vm} | ${br} | ${vhost1} | ${vhost2}
1389 | | Set Interface State | ${vm} | ${vhost1} | up | if_type=name
1390 | | Set Interface State | ${vm} | ${vhost2} | up | if_type=name
1391 | | Set Interface State | ${vm} | ${br} | up | if_type=name
1392 | | Return From Keyword | ${vm}
1394 | Guest VM with dpdk-testpmd Teardown
1396 | | ... | Stop all qemu processes with dpdk-testpmd running on ${dut_node}.
1397 | | ... | Argument is dictionary of all qemu nodes running with its names.
1398 | | ... | Dpdk-testpmd is stopped gracefully with printing stats.
1400 | | ... | *Arguments:*
1401 | | ... | - dut_node - Node where to clean qemu. Type: dictionary
1402 | | ... | - dut_vm_refs - VM references on node. Type: dictionary
1404 | | ... | *Example:*
1406 | | ... | \| Guest VM with dpdk-testpmd Teardown \| ${node['DUT1']} \
1407 | | ... | \| ${dut_vm_refs} \|
1409 | | [Arguments] | ${dut_node} | ${dut_vm_refs}
1410 | | :FOR | ${vm_name} | IN | @{dut_vm_refs}
1411 | | | ${vm}= | Get From Dictionary | ${dut_vm_refs} | ${vm_name}
1412 | | | Dpdk Testpmd Stop | ${vm}
1413 | | | Run Keyword | ${vm_name}.Qemu Set Node | ${dut_node}
1414 | | | Run Keyword | ${vm_name}.Qemu Kill
1415 | | | Run Keyword | ${vm_name}.Qemu Clear Socks
1419 | | ... | Stop all qemu processes running on ${dut_node}.
1420 | | ... | Argument is dictionary of all qemu nodes running with its names.
1422 | | ... | *Arguments:*
1423 | | ... | - dut_node - Node where to clean qemu. Type: dictionary
1424 | | ... | - dut_vm_refs - VM references on node. Type: dictionary
1426 | | ... | *Example:*
1428 | | ... | \| Guest VM Teardown \| ${node['DUT1']} \
1429 | | ... | \| ${dut_vm_refs} \|
1431 | | [Arguments] | ${dut_node} | ${dut_vm_refs}
1432 | | :FOR | ${vm_name} | IN | @{dut_vm_refs}
1433 | | | ${vm}= | Get From Dictionary | ${dut_vm_refs} | ${vm_name}
1434 | | | Run Keyword | ${vm_name}.Qemu Set Node | ${dut_node}
1435 | | | Run Keyword | ${vm_name}.Qemu Kill
1436 | | | Run Keyword | ${vm_name}.Qemu Clear Socks
1438 | Lisp IPv4 forwarding initialized in a 3-node circular topology
1439 | | [Documentation] | Custom setup of IPv4 addresses on all DUT nodes and TG \
1440 | | ... | Don`t set route.
1442 | | ... | *Arguments:*
1443 | | ... | -${dut1_dut2_address} - Ip address from DUT1 to DUT2. Type: string
1444 | | ... | -${dut1_tg_address} - Ip address from DUT1 to tg. Type: string
1445 | | ... | -${dut2_dut1_address} - Ip address from DUT2 to DUT1. Type: string
1446 | | ... | -${dut1_tg_address} - Ip address from DUT1 to tg. Type: string
1447 | | ... | -${duts_prefix} - ip prefix. Type: int
1450 | | ... | - No value returned
1452 | | ... | *Example:*
1453 | | ... | \| Lisp IPv4 forwarding initialized in a 3-node circular topology \
1454 | | ... | \| ${dut1_dut2_address} \| ${dut1_tg_address} \
1455 | | ... | \| ${dut2_dut1_address} \| ${dut2_tg_address} \| ${duts_prefix} \|
1457 | | [Arguments] | ${dut1_dut2_address} | ${dut1_tg_address}
1458 | | ... | ${dut2_dut1_address} | ${dut2_tg_address}
1459 | | ... | ${duts_prefix}
1460 | | Set Interface State | ${dut1} | ${dut1_if1} | up
1461 | | Set Interface State | ${dut1} | ${dut1_if2} | up
1462 | | Set Interface State | ${dut2} | ${dut2_if1} | up
1463 | | Set Interface State | ${dut2} | ${dut2_if2} | up
1464 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
1465 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
1466 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
1467 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
1468 | | dut1_v4.set_arp | ${dut1_if1} | 10.10.10.2 | ${tg1_if1_mac}
1469 | | dut1_v4.set_arp | ${dut1_if2} | ${dut2_dut1_address} | ${dut2_if1_mac}
1470 | | dut2_v4.set_arp | ${dut2_if1} | ${dut1_dut2_address} | ${dut1_if2_mac}
1471 | | dut2_v4.set_arp | ${dut2_if2} | 20.20.20.2 | ${tg1_if2_mac}
1472 | | dut1_v4.set_ip | ${dut1_if1} | ${dut1_tg_address} | ${duts_prefix}
1473 | | dut1_v4.set_ip | ${dut1_if2} | ${dut1_dut2_address} | ${duts_prefix}
1474 | | dut2_v4.set_ip | ${dut2_if1} | ${dut2_dut1_address} | ${duts_prefix}
1475 | | dut2_v4.set_ip | ${dut2_if2} | ${dut2_tg_address} | ${duts_prefix}
1476 | | All Vpp Interfaces Ready Wait | ${nodes}
1478 | Lisp IPv6 forwarding initialized in a 3-node circular topology
1479 | | [Documentation] | Custom setup of IPv6 topology on all DUT nodes \
1480 | | ... | Don`t set route.
1482 | | ... | *Arguments:*
1483 | | ... | -${dut1_dut2_address} - Ip address from DUT1 to DUT2. Type: string
1484 | | ... | -${dut1_tg_address} - Ip address from DUT1 to tg. Type: string
1485 | | ... | -${dut2_dut1_address} - Ip address from DUT2 to DUT1. Type: string
1486 | | ... | -${dut1_tg_address} - Ip address from DUT1 to tg. Type: string
1487 | | ... | -${duts_prefix} - ip prefix. Type: int
1490 | | ... | - No value returned
1492 | | ... | *Example:*
1493 | | ... | \| Lisp IPv6 forwarding initialized in a 3-node circular topology \
1494 | | ... | \| ${dut1_dut2_address} \| ${dut1_tg_address} \
1495 | | ... | \| ${dut2_dut1_address} \| ${dut2_tg_address} \| ${duts_prefix} \|
1497 | | [Arguments] | ${dut1_dut2_address} | ${dut1_tg_address}
1498 | | ... | ${dut2_dut1_address} | ${dut2_tg_address}
1500 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
1501 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
1502 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
1503 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
1504 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if1} | ${dut1_tg_address}
1506 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if2} | ${dut1_dut2_address}
1508 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if1} | ${dut2_dut1_address}
1510 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if2} | ${dut2_tg_address}
1512 | | Vpp nodes ra suppress link layer | ${nodes}
1513 | | Add Ip Neighbor | ${dut1} | ${dut1_if1} | 2001:1::2
1514 | | ... | ${tg1_if1_mac}
1515 | | Add Ip Neighbor | ${dut2} | ${dut2_if2} | 2001:2::2
1516 | | ... | ${tg1_if2_mac}
1517 | | Add Ip Neighbor | ${dut1} | ${dut1_if2} | ${dut2_dut1_address}
1518 | | ... | ${dut2_if1_mac}
1519 | | Add Ip Neighbor | ${dut2} | ${dut2_if1} | ${dut1_dut2_address}
1520 | | ... | ${dut1_if2_mac}
1522 | Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology
1523 | | [Documentation] | Custom setup of IPv4 over IPv6 topology on all DUT nodes \
1524 | | ... | Don`t set route.
1526 | | ... | *Arguments:*
1527 | | ... | -${dut1_dut2_ip6_address} - IPv6 address from DUT1 to DUT2.
1528 | | ... | Type: string
1529 | | ... | -${dut1_tg_ip4_address} - IPv4 address from DUT1 to tg. Type: string
1530 | | ... | -${dut2_dut1_ip6_address} - IPv6 address from DUT2 to DUT1.
1531 | | ... | Type: string
1532 | | ... | -${dut1_tg_ip4_address} - IPv4 address from DUT1 to tg. Type: string
1533 | | ... | -${prefix4} - IPv4 prefix. Type: int
1534 | | ... | -${prefix6} - IPv6 prefix. Type: int
1537 | | ... | - No value returned
1539 | | ... | *Example:*
1540 | | ... | \| Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology \
1541 | | ... | \| ${dut1_dut2_ip6_address} \| ${dut1_tg_ip4_address} \
1542 | | ... | \| ${dut2_dut1_ip6_address} \| ${dut2_tg_ip4_address} \
1543 | | ... | \| ${prefix4} \| ${prefix6} \|
1545 | | [Arguments] | ${dut1_dut2_ip6_address} | ${dut1_tg_ip4_address}
1546 | | ... | ${dut2_dut1_ip6_address} | ${dut2_tg_ip4_address}
1547 | | ... | ${prefix4} | ${prefix6}
1548 | | Set Interface State | ${dut1} | ${dut1_if1} | up
1549 | | Set Interface State | ${dut1} | ${dut1_if2} | up
1550 | | Set Interface State | ${dut2} | ${dut2_if1} | up
1551 | | Set Interface State | ${dut2} | ${dut2_if2} | up
1552 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
1553 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
1554 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
1555 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
1556 | | dut1_v4.set_ip | ${dut1_if1} | ${dut1_tg_ip4_address} | ${prefix4}
1557 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if2} | ${dut1_dut2_ip6_address}
1558 | | ... | ${prefix6}
1559 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if1} | ${dut2_dut1_ip6_address}
1560 | | ... | ${prefix6}
1561 | | dut2_v4.set_ip | ${dut2_if2} | ${dut2_tg_ip4_address} | ${prefix4}
1562 | | Vpp nodes ra suppress link layer | ${nodes}
1563 | | dut1_v4.set_arp | ${dut1_if1} | 10.10.10.2 | ${tg1_if1_mac}
1564 | | dut2_v4.set_arp | ${dut2_if2} | 20.20.20.2 | ${tg1_if2_mac}
1565 | | Add Ip Neighbor | ${dut1} | ${dut1_if2} | ${dut2_dut1_ip6_address}
1566 | | ... | ${dut2_if1_mac}
1567 | | Add Ip Neighbor | ${dut2} | ${dut2_if1} | ${dut1_dut2_ip6_address}
1568 | | ... | ${dut1_if2_mac}
1570 | Lisp IPv6 over IPv4 forwarding initialized in a 3-node circular topology
1571 | | [Documentation] | Custom setup of IPv4 over IPv6 topology on all DUT nodes \
1572 | | ... | Don`t set route.
1574 | | ... | *Arguments:*
1575 | | ... | -${dut1_dut2_ip4_address} - IPv4 address from DUT1 to DUT2.
1576 | | ... | Type: string
1577 | | ... | -${dut1_tg_ip6_address} - IPv6 address from DUT1 to tg. Type: string
1578 | | ... | -${dut2_dut1_ip4_address} - IPv4 address from DUT2 to DUT1.
1579 | | ... | Type: string
1580 | | ... | -${dut1_tg_ip6_address} - IPv6 address from DUT1 to tg. Type: string
1581 | | ... | -${prefix4} - IPv4 prefix. Type: int
1582 | | ... | -${prefix6} - IPv6 prefix. Type: int
1585 | | ... | - No value returned
1587 | | ... | *Example:*
1588 | | ... | \| Lisp IPv6 over IPv4 forwarding initialized in a 3-node circular topology \
1589 | | ... | \| ${dut1_dut2_ip4_address} \| ${dut1_tg_ip6_address} \
1590 | | ... | \| ${dut2_dut1_ip4_address} \| ${dut2_tg_ip6_address} \
1591 | | ... | \| ${prefix4} \| ${prefix6} \|
1593 | | [Arguments] | ${dut1_dut2_ip4_address} | ${dut1_tg_ip6_address}
1594 | | ... | ${dut2_dut1_ip4_address} | ${dut2_tg_ip6_address}
1595 | | ... | ${prefix4} | ${prefix6}
1596 | | Set Interface State | ${dut1} | ${dut1_if1} | up
1597 | | Set Interface State | ${dut1} | ${dut1_if2} | up
1598 | | Set Interface State | ${dut2} | ${dut2_if1} | up
1599 | | Set Interface State | ${dut2} | ${dut2_if2} | up
1600 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
1601 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
1602 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
1603 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
1604 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if1} | ${dut1_tg_ip6_address}
1605 | | ... | ${prefix6}
1606 | | dut1_v4.set_ip | ${dut1_if2} | ${dut1_dut2_ip4_address} | ${prefix4}
1607 | | dut2_v4.set_ip | ${dut2_if1} | ${dut2_dut1_ip4_address} | ${prefix4}
1608 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if2} | ${dut2_tg_ip6_address}
1609 | | ... | ${prefix6}
1610 | | Vpp nodes ra suppress link layer | ${nodes}
1611 | | Add Ip Neighbor | ${dut1} | ${dut1_if1} | 2001:1::2 | ${tg1_if1_mac}
1612 | | Add Ip Neighbor | ${dut2} | ${dut2_if2} | 2001:2::2 | ${tg1_if2_mac}
1613 | | dut1_v4.set_arp | ${dut1_if2} | ${dut2_dut1_ip4_address} | ${dut2_if1_mac}
1614 | | dut2_v4.set_arp | ${dut2_if1} | ${dut1_dut2_ip4_address} | ${dut1_if2_mac}