Refactor VHOST code
[csit.git] / resources / libraries / robot / shared / default.robot
1 # Copyright (c) 2018 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 | Resource | resources/libraries/robot/vm/qemu.robot
16 | Resource | resources/libraries/robot/vm/double_qemu_setup.robot
17 | Variables | resources/libraries/python/topology.py
18 | Variables | resources/libraries/python/VatHistory.py
19 | Library | resources.libraries.python.topology.Topology
20 | Library | resources.libraries.python.VatHistory
21 | Library | resources.libraries.python.CpuUtils
22 | Library | resources.libraries.python.DUTSetup
23 | Library | resources.libraries.python.SchedUtils
24 | Library | resources.libraries.python.TGSetup
25 | Library | resources.libraries.python.L2Util
26 | Library | resources.libraries.python.Tap
27 | Library | resources.libraries.python.VppCounters
28 | Library | resources.libraries.python.VPPUtil
29 | Library | resources.libraries.python.Trace
30 | Library | Collections
31
32 *** Keywords ***
33 | Configure all DUTs before test
34 | | [Documentation] | Setup all DUTs in topology before test execution.
35 | | ...
36 | | Setup All DUTs | ${nodes}
37
38 | Configure all TGs for traffic script
39 | | [Documentation] | Prepare all TGs before traffic scripts execution.
40 | | ...
41 | | All TGs Set Interface Default Driver | ${nodes}
42
43 | Show Vpp Errors On All DUTs
44 | | [Documentation] | Show VPP errors verbose on all DUTs.
45 | | ...
46 | | ${duts}= | Get Matches | ${nodes} | DUT*
47 | | :FOR | ${dut} | IN | @{duts}
48 | | | Vpp Show Errors | ${nodes['${dut}']}
49
50 | Show VPP trace dump on all DUTs
51 | | [Documentation] | Save API trace and dump output on all DUTs.
52 | | ...
53 | | ${duts}= | Get Matches | ${nodes} | DUT*
54 | | :FOR | ${dut} | IN | @{duts}
55 | | | Vpp api trace save | ${nodes['${dut}']}
56 | | | Vpp api trace dump | ${nodes['${dut}']}
57
58 | Show Bridge Domain Data On All DUTs
59 | | [Documentation] | Show Bridge Domain data on all DUTs.
60 | | ...
61 | | ${duts}= | Get Matches | ${nodes} | DUT*
62 | | :FOR | ${dut} | IN | @{duts}
63 | | | Vpp Get Bridge Domain Data | ${nodes['${dut}']}
64
65 | Setup Scheduler Policy for Vpp On All DUTs
66 | | [Documentation] | Set realtime scheduling policy (SCHED_RR) with priority 1
67 | | ... | on all VPP worker threads on all DUTs.
68 | | ...
69 | | ${duts}= | Get Matches | ${nodes} | DUT*
70 | | :FOR | ${dut} | IN | @{duts}
71 | | | Set VPP Scheduling rr | ${nodes['${dut}']}
72
73 | Configure crypto device on all DUTs
74 | | [Documentation] | Verify if Crypto QAT device virtual functions are
75 | | ... | initialized on all DUTs. If parameter force_init is set to True, then
76 | | ... | try to initialize/disable.
77 | | ...
78 | | ... | *Arguments:*
79 | | ... | - force_init - Force to initialize. Type: boolean
80 | | ... | - numvfs - Number of VFs to initialize, 0 - disable the VFs
81 | | ... | (Optional). Type: integer, default value: ${32}
82 | | ...
83 | | ... | *Example:*
84 | | ...
85 | | ... | \| Configure crypto device on all DUTs \| ${True} \|
86 | | ...
87 | | [Arguments] | ${force_init}=${False} | ${numvfs}=${32}
88 | | ...
89 | | ${duts}= | Get Matches | ${nodes} | DUT*
90 | | :FOR | ${dut} | IN | @{duts}
91 | | | Crypto Device Verify | ${nodes['${dut}']} | force_init=${force_init}
92 | | | ... | numvfs=${numvfs}
93
94 | Configure kernel module on all DUTs
95 | | [Documentation] | Verify if specific kernel module is loaded on all DUTs.
96 | | ... | If parameter force_load is set to True, then try to initialize.
97 | | ...
98 | | ... | *Arguments:*
99 | | ... | - module - Module to verify. Type: string
100 | | ... | - force_load - Try to load module. Type: boolean
101 | | ...
102 | | ... | *Example:*
103 | | ...
104 | | ... | \| Configure kernel module on all DUTs \| ${True} \|
105 | | ...
106 | | [Arguments] | ${module} | ${force_load}=${False}
107 | | ...
108 | | ${duts}= | Get Matches | ${nodes} | DUT*
109 | | :FOR | ${dut} | IN | @{duts}
110 | | | Kernel Module Verify | ${nodes['${dut}']} | ${module}
111 | | | ... | force_load=${force_load}
112
113 | Create base startup configuration of VPP on all DUTs
114 | | [Documentation] | Create base startup configuration of VPP to all DUTs.
115 | | ...
116 | | ${duts}= | Get Matches | ${nodes} | DUT*
117 | | :FOR | ${dut} | IN | @{duts}
118 | | | Import Library | resources.libraries.python.VppConfigGenerator
119 | | | ... | WITH NAME | ${dut}
120 | | | Run keyword | ${dut}.Set Node |  ${nodes['${dut}']}
121 | | | Run keyword | ${dut}.Add Unix Log
122 | | | Run keyword | ${dut}.Add Unix CLI Listen
123 | | | Run keyword | ${dut}.Add Unix Nodaemon
124 | | | Run keyword | ${dut}.Add Unix Coredump
125 | | | Run keyword | ${dut}.Add DPDK Socketmem | 1024,1024
126 | | | Run keyword | ${dut}.Add DPDK No Tx Checksum Offload
127 | | | Run keyword | ${dut}.Add DPDK Log Level | debug
128 | | | Run keyword | ${dut}.Add DPDK Uio Driver
129 | | | Run keyword | ${dut}.Add Heapsize | 4G
130 | | | Run keyword | ${dut}.Add Statseg size | 4G
131 | | | Run keyword | ${dut}.Add Plugin | disable | default
132 | | | Run keyword | ${dut}.Add Plugin | enable | @{plugins_to_enable}
133 | | | Run keyword | ${dut}.Add IP6 Hash Buckets | 2000000
134 | | | Run keyword | ${dut}.Add IP6 Heap Size | 4G
135 | | | Run keyword | ${dut}.Add IP Heap Size | 4G
136
137 | Add worker threads and rxqueues to all DUTs
138 | | [Documentation] | Setup worker threads and rxqueues in vpp startup
139 | | ... | configuration on all DUTs. Based on the SMT configuration of DUT if
140 | | ... | enabled keyword will automatically map also the sibling logical cores.
141 | | ... | Keyword will automatically set the appropriate test TAGs in format
142 | | ... | mTnC, where m=logical_core_count and n=physical_core_count.
143 | | ...
144 | | ... | *Arguments:*
145 | | ... | - phy_cores - Number of physical cores to use. Type: integer
146 | | ... | - rx_queues - Number of RX queues. Type: integer
147 | | ...
148 | | ... | *Example:*
149 | | ...
150 | | ... | \| Add worker threads and rxqueues to all DUTs \| ${1} \| ${1} \|
151 | | ...
152 | | [Arguments] | ${phy_cores} | ${rx_queues}=${None}
153 | | ...
154 | | ${cpu_count_int} | Convert to Integer | ${phy_cores}
155 | | ${thr_count_int} | Convert to Integer | ${phy_cores}
156 | | ${num_mbufs_int} | Convert to Integer | 16384
157 | | ${duts}= | Get Matches | ${nodes} | DUT*
158 | | :FOR | ${dut} | IN | @{duts}
159 | | | ${numa}= | Get interfaces numa node | ${nodes['${dut}']}
160 | | | ... | ${${dut}_if1} | ${${dut}_if2}
161 | | | ${smt_used}= | Is SMT enabled | ${nodes['${dut}']['cpuinfo']}
162 | | | ${cpu_main}= | Cpu list per node str | ${nodes['${dut}']} | ${numa}
163 | | | ... | skip_cnt=${1} | cpu_cnt=${1}
164 | | | ${cpu_wt}= | Cpu list per node str | ${nodes['${dut}']} | ${numa}
165 | | | ... | skip_cnt=${2} | cpu_cnt=${cpu_count_int} | smt_used=${smt_used}
166 | | | ${thr_count_int}= | Run keyword if | ${smt_used}
167 | | | ... | Evaluate | int(${cpu_count_int}*2)
168 | | | ... | ELSE | Set variable | ${thr_count_int}
169 | | | ${rxq_count_int}= | Run keyword if | ${rx_queues}
170 | | | ... | Set variable | ${rx_queues}
171 | | | ... | ELSE | Evaluate | int(${thr_count_int}/2)
172 | | | ${rxq_count_int}= | Run keyword if | ${rxq_count_int} == 0
173 | | | ... | Set variable | ${1}
174 | | | ... | ELSE | Set variable | ${rxq_count_int}
175 | | | ${num_mbufs_int}= | Evaluate | int(${num_mbufs_int}*${rxq_count_int})
176 | | | Run keyword | ${dut}.Add CPU Main Core | ${cpu_main}
177 | | | Run keyword | ${dut}.Add CPU Corelist Workers | ${cpu_wt}
178 | | | Run keyword | ${dut}.Add DPDK Dev Default RXQ | ${rxq_count_int}
179 | | | Run keyword | ${dut}.Add DPDK Num Mbufs | ${num_mbufs_int}
180 | | | Run keyword if | ${thr_count_int} > 1
181 | | | ... | Set Tags | MTHREAD | ELSE | Set Tags | STHREAD
182 | | | Set Tags | ${thr_count_int}T${cpu_count_int}C
183 | | Set Test Variable | ${smt_used}
184 | | Set Test Variable | ${thr_count_int}
185 | | Set Test Variable | ${cpu_count_int}
186 | | Set Test Variable | ${rxq_count_int}
187
188 | Create Kubernetes VSWITCH startup config on all DUTs
189 | | [Documentation] | Create base startup configuration of VSWITCH in Kubernetes
190 | | ... | deploy to all DUTs.
191 | | ...
192 | | ... | *Arguments:*
193 | | ... | - ${jumbo} - Jumbo packet. Type: boolean
194 | | ... | - ${phy_cores} - Physical cores. Type: integer
195 | | ... | - ${rxq} - RX queues. Type: integer
196 | | ...
197 | | ... | *Example:*
198 | | ...
199 | | ... | \| Create Kubernetes VSWITCH startup config on all DUTs \| ${True} \
200 | | ... | \| ${1} \| ${1}
201 | | ...
202 | | [Arguments] | ${phy_cores} | ${rx_queues}=${None} | ${jumbo}=${False}
203 | | ...
204 | | ${cpu_count_int} | Convert to Integer | ${phy_cores}
205 | | ${thr_count_int} | Convert to Integer | ${phy_cores}
206 | | ${num_mbufs_int} | Convert to Integer | 16384
207 | | ${duts}= | Get Matches | ${nodes} | DUT*
208 | | :FOR | ${dut} | IN | @{duts}
209 | | | ${numa}= | Get interfaces numa node | ${nodes['${dut}']}
210 | | | ... | ${${dut}_if1} | ${${dut}_if2}
211 | | | ${smt_used}= | Is SMT enabled | ${nodes['${dut}']['cpuinfo']}
212 | | | ${if1_pci}= | Get Interface PCI Addr | ${nodes['${dut}']} | ${${dut}_if1}
213 | | | ${if2_pci}= | Get Interface PCI Addr | ${nodes['${dut}']} | ${${dut}_if2}
214 | | | ${thr_count_int}= | Run keyword if | ${smt_used}
215 | | | ... | Evaluate | int(${cpu_count_int}*2)
216 | | | ... | ELSE | Set variable | ${thr_count_int}
217 | | | ${rxq_count_int}= | Run keyword if | ${rx_queues}
218 | | | ... | Set variable | ${rx_queues}
219 | | | ... | ELSE | Evaluate | int(${thr_count_int}/2)
220 | | | ${rxq_count_int}= | Run keyword if | ${rxq_count_int} == 0
221 | | | ... | Set variable | ${1}
222 | | | ... | ELSE | Set variable | ${rxq_count_int}
223 | | | ${num_mbufs_int}= | Evaluate | int(${num_mbufs_int}*${rxq_count_int})
224 | | | ${config}= | Run keyword | Create Kubernetes VSWITCH startup config
225 | | | ... | node=${nodes['${dut}']} | phy_cores=${phy_cores}
226 | | | ... | cpu_node=${numa} | jumbo=${jumbo} | rxq_count_int=${rxq_count_int}
227 | | | ... | num_mbufs_int=${num_mbufs_int}
228 | | | ... | filename=/tmp/vswitch.conf | if1=${if1_pci} | if2=${if2_pci}
229 | | | Run keyword if | ${thr_count_int} > 1
230 | | | ... | Set Tags | MTHREAD | ELSE | Set Tags | STHREAD
231 | | | Set Tags | ${thr_count_int}T${cpu_count_int}C
232 | | Set Test Variable | ${smt_used}
233 | | Set Test Variable | ${thr_count_int}
234 | | Set Test Variable | ${cpu_count_int}
235 | | Set Test Variable | ${rxq_count_int}
236
237 | Create Kubernetes VNF'${i}' startup config on all DUTs
238 | | [Documentation] | Create base startup configuration of VNF in Kubernetes
239 | | ... | deploy to all DUTs.
240 | | ...
241 | | ${i_int}= | Convert To Integer | ${i}
242 | | ${cpu_skip}= | Evaluate | ${vswitch_cpus}+${system_cpus}
243 | | ${dut1_numa}= | Get interfaces numa node | ${dut1}
244 | | ... | ${dut1_if1} | ${dut1_if2}
245 | | ${dut2_numa}= | Get interfaces numa node | ${dut2}
246 | | ... | ${dut2_if1} | ${dut2_if2}
247 | | ${config}= | Run keyword | Create Kubernetes VNF startup config
248 | | ... | node=${dut1} | phy_cores=${vnf_cpus} | cpu_node=${dut1_numa}
249 | | ... | cpu_skip=${cpu_skip} | filename=/tmp/vnf${i}.conf
250 | | ... | i=${i_int}
251 | | ${config}= | Run keyword | Create Kubernetes VNF startup config
252 | | ... | node=${dut2} | phy_cores=${vnf_cpus} | cpu_node=${dut2_numa}
253 | | ... | cpu_skip=${cpu_skip} | filename=/tmp/vnf${i}.conf
254 | | ... | i=${i_int}
255
256 | Add no multi seg to all DUTs
257 | | [Documentation] | Add No Multi Seg to VPP startup configuration to all DUTs.
258 | | ...
259 | | ${duts}= | Get Matches | ${nodes} | DUT*
260 | | :FOR | ${dut} | IN | @{duts}
261 | | | Run keyword | ${dut}.Add DPDK No Multi Seg
262
263 | Add DPDK dev default RXD to all DUTs
264 | | [Documentation] | Add DPDK num-rx-desc to VPP startup configuration to all
265 | | ... | DUTs.
266 | | ...
267 | | ... | *Arguments:*
268 | | ... | - rxd - Number of RX descriptors. Type: string
269 | | ...
270 | | ... | *Example:*
271 | | ...
272 | | ... | \| Add DPDK dev default RXD to all DUTs \| ${rxd} \|
273 | | ...
274 | | [Arguments] | ${rxd}
275 | | ...
276 | | ${duts}= | Get Matches | ${nodes} | DUT*
277 | | :FOR | ${dut} | IN | @{duts}
278 | | | Run keyword | ${dut}.Add DPDK Dev Default RXD | ${rxd}
279
280 | Add DPDK dev default TXD to all DUTs
281 | | [Documentation] | Add DPDK num-tx-desc to VPP startup configuration to all
282 | | ... | DUTs.
283 | | ...
284 | | ... | *Arguments:*
285 | | ... | - txd - Number of TX descriptors. Type: string
286 | | ...
287 | | ... | *Example:*
288 | | ...
289 | | ... | \| Add DPDK dev default TXD to all DUTs \| ${txd} \|
290 | | ...
291 | | [Arguments] | ${txd}
292 | | ...
293 | | ${duts}= | Get Matches | ${nodes} | DUT*
294 | | :FOR | ${dut} | IN | @{duts}
295 | | | Run keyword | ${dut}.Add DPDK Dev Default TXD | ${txd}
296
297 | Add DPDK Uio Driver on all DUTs
298 | | [Documentation] | Add DPDK uio driver to VPP startup configuration on all
299 | | ... | DUTs.
300 | | ...
301 | | ... | *Arguments:*
302 | | ... | - uio_driver - Required uio driver. Type: string
303 | | ...
304 | | ... | *Example:*
305 | | ...
306 | | ... | \| Add DPDK Uio Driver on all DUTs \| igb_uio \|
307 | | ...
308 | | [Arguments] | ${uio_driver}
309 | | ...
310 | | ${duts}= | Get Matches | ${nodes} | DUT*
311 | | :FOR | ${dut} | IN | @{duts}
312 | | | Run keyword | ${dut}.Add DPDK Uio Driver | ${uio_driver}
313
314 | Add NAT to all DUTs
315 | | [Documentation] | Add NAT configuration to all DUTs.
316 | | ...
317 | | ${duts}= | Get Matches | ${nodes} | DUT*
318 | | :FOR | ${dut} | IN | @{duts}
319 | | | Run keyword | ${dut}.Add NAT
320
321 | Add cryptodev to all DUTs
322 | | [Documentation] | Add Cryptodev to VPP startup configuration to all DUTs.
323 | | ...
324 | | ... | *Arguments:*
325 | | ... | - count - Number of QAT devices. Type: integer
326 | | ...
327 | | ... | *Example:*
328 | | ...
329 | | ... | \| Add cryptodev to all DUTs \| ${4} \|
330 | | ...
331 | | [Arguments] | ${count}
332 | | ${duts}= | Get Matches | ${nodes} | DUT*
333 | | :FOR | ${dut} | IN | @{duts}
334 | | | ${smt_used}= | Is SMT enabled | ${nodes['${dut}']['cpuinfo']}
335 | | | ${thr_count_int}= | Run keyword if | ${smt_used}
336 | | | ... | Evaluate | int(${count}*2)
337 | | | ... | ELSE | Set variable | ${count}
338 | | | Run keyword | ${dut}.Add DPDK Cryptodev | ${thr_count_int}
339
340 | Add DPDK SW cryptodev on DUTs in 3-node single-link circular topology
341 | | [Documentation] | Add required number of SW crypto devices of given type
342 | | ... | to VPP startup configuration on all DUTs in 3-node single-link
343 | | ... | circular topology.
344 | | ...
345 | | ... | *Arguments:*
346 | | ... | - sw_pmd_type - PMD type of SW crypto device. Type: string
347 | | ... | - count - Number of SW crypto devices. Type: string
348 | | ...
349 | | ... | *Example:*
350 | | ...
351 | | ... | \| Add DPDK SW cryptodev on DUTs in 3-node single-link circular\
352 | | ... | topology \| aesni-mb \| ${2} \|
353 | | ...
354 | | [Arguments] | ${sw_pmd_type} | ${count}
355 | | ${smt_used}= | Is SMT enabled | ${nodes['DUT1']['cpuinfo']}
356 | | ${thr_count_int}= | Run keyword if | ${smt_used}
357 | | ... | Evaluate | int(${count}*2)
358 | | ... | ELSE | Set variable | ${count}
359 | | ${socket_id}= | Get Interface Numa Node | ${nodes['DUT1']} | ${dut1_if2}
360 | | Run keyword | DUT1.Add DPDK SW Cryptodev | ${sw_pmd_type} | ${socket_id}
361 | | ... | ${thr_count_int}
362 | | ${smt_used}= | Is SMT enabled | ${nodes['DUT2']['cpuinfo']}
363 | | ${thr_count_int}= | Run keyword if | ${smt_used}
364 | | ... | Evaluate | int(${count}*2)
365 | | ... | ELSE | Set variable | ${count}
366 | | ${socket_id}= | Get Interface Numa Node | ${nodes['DUT2']} | ${dut2_if1}
367 | | Run keyword | DUT2.Add DPDK SW Cryptodev | ${sw_pmd_type} | ${socket_id}
368 | | ... | ${thr_count_int}
369
370 | Apply startup configuration on all VPP DUTs
371 | | [Documentation] | Write startup configuration and restart VPP on all DUTs.
372 | | ...
373 | | ... | *Arguments:*
374 | | ... | - restart_vpp - Whether to restart VPP (Optional). Type: boolean
375 | | ...
376 | | ... | *Example:*
377 | | ...
378 | | ... | \| Apply startup configuration on all VPP DUTs \| ${False} \|
379 | | ...
380 | | [Arguments] | ${restart_vpp}=${True}
381 | | ...
382 | | ${duts}= | Get Matches | ${nodes} | DUT*
383 | | :FOR | ${dut} | IN | @{duts}
384 | | | Run keyword | ${dut}.Apply Config | restart_vpp=${restart_vpp}
385 | | Update All Interface Data On All Nodes | ${nodes} | skip_tg=${True}
386
387 | Save VPP PIDs
388 | | [Documentation] | Get PIDs of VPP processes from all DUTs in topology and\
389 | | ... | set it as a test variable. The PIDs are stored as dictionary items\
390 | | ... | where the key is the host and the value is the PID.
391 | | ...
392 | | ${setup_vpp_pids}= | Get VPP PIDs | ${nodes}
393 | | ${keys}= | Get Dictionary Keys | ${setup_vpp_pids}
394 | | :FOR | ${key} | IN | @{keys}
395 | | | ${pid}= | Get From Dictionary | ${setup_vpp_pids} | ${key}
396 | | | Run Keyword If | $pid is None | FAIL | No VPP PID found on node ${key}
397 | | | Run Keyword If | ',' in '${pid}'
398 | | | ... | FAIL | More then one VPP PID found on node ${key}: ${pid}
399 | | Set Test Variable | ${setup_vpp_pids}
400
401 | Verify VPP PID in Teardown
402 | | [Documentation] | Check if the VPP PIDs on all DUTs are the same at the end\
403 | | ... | of test as they were at the begining. If they are not, only a message\
404 | | ... | is printed on console and to log. The test will not fail.
405 | | ...
406 | | ${teardown_vpp_pids}= | Get VPP PIDs | ${nodes}
407 | | ${err_msg}= | Catenate | ${SUITE NAME} - ${TEST NAME}
408 | | ... | \nThe VPP PIDs are not equal!\nTest Setup VPP PIDs:
409 | | ... | ${setup_vpp_pids}\nTest Teardown VPP PIDs: ${teardown_vpp_pids}
410 | | ${rc} | ${msg}= | Run keyword and ignore error
411 | | ... | Dictionaries Should Be Equal
412 | | ... | ${setup_vpp_pids} | ${teardown_vpp_pids}
413 | | Run Keyword And Return If | '${rc}'=='FAIL' | Log | ${err_msg}
414 | | ... | console=yes | level=WARN
415
416 | Set up functional test
417 | | [Documentation] | Common test setup for functional tests.
418 | | ...
419 | | Configure all DUTs before test
420 | | Save VPP PIDs
421 | | Configure all TGs for traffic script
422 | | Update All Interface Data On All Nodes | ${nodes}
423 | | Reset VAT History On All DUTs | ${nodes}
424
425 | Tear down functional test
426 | | [Documentation] | Common test teardown for functional tests.
427 | | ...
428 | | Remove All Added Ports On All DUTs From Topology | ${nodes}
429 | | Show Packet Trace on All DUTs | ${nodes}
430 | | Show VAT History On All DUTs | ${nodes}
431 | | Vpp Show Errors On All DUTs | ${nodes}
432 | | Verify VPP PID in Teardown
433
434 | Tear down LISP functional test
435 | | [Documentation] | Common test teardown for functional tests with LISP.
436 | | ...
437 | | Remove All Added Ports On All DUTs From Topology | ${nodes}
438 | | Show Packet Trace on All DUTs | ${nodes}
439 | | Show VAT History On All DUTs | ${nodes}
440 | | Show Vpp Settings | ${nodes['DUT1']}
441 | | Show Vpp Settings | ${nodes['DUT2']}
442 | | Vpp Show Errors On All DUTs | ${nodes}
443 | | Verify VPP PID in Teardown
444
445 | Tear down LISP functional test with QEMU
446 | | [Documentation] | Common test teardown for functional tests with LISP and\
447 | | ... | QEMU.
448 | | ...
449 | | ... | *Arguments:*
450 | | ... | - vm_node - VM to stop. Type: string
451 | | ...
452 | | ... | *Example:*
453 | | ...
454 | | ... | \| Tear down LISP functional test with QEMU \| ${vm_node} \|
455 | | ...
456 | | [Arguments] | ${vm_node}
457 | | ...
458 | | Remove All Added Ports On All DUTs From Topology | ${nodes}
459 | | Show Packet Trace on All DUTs | ${nodes}
460 | | Show VAT History On All DUTs | ${nodes}
461 | | Show Vpp Settings | ${nodes['DUT1']}
462 | | Show Vpp Settings | ${nodes['DUT2']}
463 | | Vpp Show Errors On All DUTs | ${nodes}
464 | | Stop and clear QEMU | ${nodes['DUT1']} | ${vm_node}
465 | | Verify VPP PID in Teardown
466
467 | Set up TAP functional test
468 | | [Documentation] | Common test setup for functional tests with TAP.
469 | | ...
470 | | Set up functional test
471 | | Clean Up Namespaces | ${nodes['DUT1']}
472
473 | Tear down TAP functional test
474 | | [Documentation] | Common test teardown for functional tests with TAP.
475 | | ...
476 | | Tear down functional test
477 | | Clean Up Namespaces | ${nodes['DUT1']}
478
479 | Tear down TAP functional test with Linux bridge
480 | | [Documentation] | Common test teardown for functional tests with TAP and
481 | | ... | a Linux bridge.
482 | | ...
483 | | ... | *Arguments:*
484 | | ... | - bid_TAP - Bridge name. Type: string
485 | | ...
486 | | ... | *Example:*
487 | | ...
488 | | ... | \| Tear down TAP functional test with Linux bridge \| ${bid_TAP} \|
489 | | ...
490 | | [Arguments] | ${bid_TAP}
491 | | ...
492 | | Tear down functional test
493 | | Linux Del Bridge | ${nodes['DUT1']} | ${bid_TAP}
494 | | Clean Up Namespaces | ${nodes['DUT1']}
495
496 | Tear down FDS functional test
497 | | [Documentation] | Common test teardown for FDS functional tests.
498 | | ...
499 | | ... | *Arguments:*
500 | | ... | - dut1_node - Node Nr.1 where to clean qemu. Type: dictionary
501 | | ... | - qemu_node1 - VM Nr.1 node info dictionary. Type: string
502 | | ... | - dut2_node - Node Nr.2 where to clean qemu. Type: dictionary
503 | | ... | - qemu_node2 - VM Nr.2 node info dictionary. Type: string
504 | | ...
505 | | ... | *Example:*
506 | | ...
507 | | ... | \| Tear down FDS functional test \| ${dut1_node} \| ${qemu_node1}\
508 | | ... | \| ${dut2_node} \| ${qemu_node2} \|
509 | | ...
510 | | [Arguments] | ${dut1_node} | ${qemu_node1} | ${dut2_node}
511 | | ... | ${qemu_node2}
512 | | ...
513 | | Tear down functional test
514 | | Tear down QEMU | ${dut1_node} | ${qemu_node1} | qemu_node1
515 | | Tear down QEMU | ${dut2_node} | ${qemu_node2} | qemu_node2
516
517 | Stop VPP Service on DUT
518 | | [Documentation] | Stop the VPP service on the specified node.
519 | | ...
520 | | ... | *Arguments:*
521 | | ... | - node - information about a DUT node. Type: dictionary
522 | | ...
523 | | ... | *Example:*
524 | | ...
525 | | ... | \| Stop VPP Service on DUT \| ${nodes['DUT1']} \|
526 | | ...
527 | | [Arguments] | ${node}
528 | | Stop VPP Service | ${node}
529
530 | Start VPP Service on DUT
531 | | [Documentation] | Start the VPP service on the specified node.
532 | | ...
533 | | ... | *Arguments:*
534 | | ... | - node - information about a DUT node. Type: dictionary
535 | | ...
536 | | ... | *Example:*
537 | | ...
538 | | ... | \| Start VPP Service on DUT \| ${nodes['DUT1']} \|
539 | | ...
540 | | [Arguments] | ${node}
541 | | Start VPP Service | ${node}