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:
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 | 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
33 | Configure all DUTs before test
34 | | [Documentation] | Setup all DUTs in topology before test execution.
36 | | Setup All DUTs | ${nodes}
38 | Configure all TGs for traffic script
39 | | [Documentation] | Prepare all TGs before traffic scripts execution.
41 | | All TGs Set Interface Default Driver | ${nodes}
43 | Show Vpp Errors On All DUTs
44 | | [Documentation] | Show VPP errors verbose on all DUTs.
46 | | ${duts}= | Get Matches | ${nodes} | DUT*
47 | | :FOR | ${dut} | IN | @{duts}
48 | | | Vpp Show Errors | ${nodes['${dut}']}
50 | Show VPP trace dump on all DUTs
51 | | [Documentation] | Save API trace and dump output on all DUTs.
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}']}
58 | Show Bridge Domain Data On All DUTs
59 | | [Documentation] | Show Bridge Domain data on all DUTs.
61 | | ${duts}= | Get Matches | ${nodes} | DUT*
62 | | :FOR | ${dut} | IN | @{duts}
63 | | | Vpp Get Bridge Domain Data | ${nodes['${dut}']}
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.
69 | | ${duts}= | Get Matches | ${nodes} | DUT*
70 | | :FOR | ${dut} | IN | @{duts}
71 | | | Set VPP Scheduling rr | ${nodes['${dut}']}
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.
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}
85 | | ... | \| Configure crypto device on all DUTs \| ${True} \|
87 | | [Arguments] | ${force_init}=${False} | ${numvfs}=${32}
89 | | ${duts}= | Get Matches | ${nodes} | DUT*
90 | | :FOR | ${dut} | IN | @{duts}
91 | | | Crypto Device Verify | ${nodes['${dut}']} | force_init=${force_init}
92 | | | ... | numvfs=${numvfs}
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.
98 | | ... | *Arguments:*
99 | | ... | - module - Module to verify. Type: string
100 | | ... | - force_load - Try to load module. Type: boolean
104 | | ... | \| Configure kernel module on all DUTs \| ${True} \|
106 | | [Arguments] | ${module} | ${force_load}=${False}
108 | | ${duts}= | Get Matches | ${nodes} | DUT*
109 | | :FOR | ${dut} | IN | @{duts}
110 | | | Kernel Module Verify | ${nodes['${dut}']} | ${module}
111 | | | ... | force_load=${force_load}
113 | Create base startup configuration of VPP on all DUTs
114 | | [Documentation] | Create base startup configuration of VPP to all DUTs.
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
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.
144 | | ... | *Arguments:*
145 | | ... | - phy_cores - Number of physical cores to use. Type: integer
146 | | ... | - rx_queues - Number of RX queues. Type: integer
150 | | ... | \| Add worker threads and rxqueues to all DUTs \| ${1} \| ${1} \|
152 | | [Arguments] | ${phy_cores} | ${rx_queues}=${None}
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 | | | ${if1_status} | ${value}= | Run Keyword And Ignore Error
160 | | | ... | Variable Should Exist | ${${dut}_if1}
161 | | | @{if_list}= | Run Keyword If | '${if1_status}' == 'PASS'
162 | | | ... | Create List | ${${dut}_if1}
163 | | | ... | ELSE | Create List | ${${dut}_if1_1} | ${${dut}_if1_2}
164 | | | ${if2_status} | ${value}= | Run Keyword And Ignore Error
165 | | | ... | Variable Should Exist | ${${dut}_if2}
166 | | | Run Keyword If | '${if2_status}' == 'PASS'
167 | | | ... | Append To List | ${if_list} | ${${dut}_if2}
169 | | | ... | Append To List | ${if_list} | ${${dut}_if2_1} | ${${dut}_if2_2}
170 | | | ${numa}= | Get interfaces numa node | ${nodes['${dut}']} | @{if_list}
171 | | | ${smt_used}= | Is SMT enabled | ${nodes['${dut}']['cpuinfo']}
172 | | | ${cpu_main}= | Cpu list per node str | ${nodes['${dut}']} | ${numa}
173 | | | ... | skip_cnt=${1} | cpu_cnt=${1}
174 | | | ${cpu_wt}= | Cpu list per node str | ${nodes['${dut}']} | ${numa}
175 | | | ... | skip_cnt=${2} | cpu_cnt=${cpu_count_int} | smt_used=${smt_used}
176 | | | ${thr_count_int}= | Run keyword if | ${smt_used}
177 | | | ... | Evaluate | int(${cpu_count_int}*2)
178 | | | ... | ELSE | Set variable | ${thr_count_int}
179 | | | ${rxq_count_int}= | Run keyword if | ${rx_queues}
180 | | | ... | Set variable | ${rx_queues}
181 | | | ... | ELSE | Evaluate | int(${thr_count_int}/2)
182 | | | ${rxq_count_int}= | Run keyword if | ${rxq_count_int} == 0
183 | | | ... | Set variable | ${1}
184 | | | ... | ELSE | Set variable | ${rxq_count_int}
185 | | | ${num_mbufs_int}= | Evaluate | int(${num_mbufs_int}*${rxq_count_int})
186 | | | Run keyword | ${dut}.Add CPU Main Core | ${cpu_main}
187 | | | Run keyword | ${dut}.Add CPU Corelist Workers | ${cpu_wt}
188 | | | Run keyword | ${dut}.Add DPDK Dev Default RXQ | ${rxq_count_int}
189 | | | Run keyword | ${dut}.Add DPDK Num Mbufs | ${num_mbufs_int}
190 | | | Run keyword if | ${thr_count_int} > 1
191 | | | ... | Set Tags | MTHREAD | ELSE | Set Tags | STHREAD
192 | | | Set Tags | ${thr_count_int}T${cpu_count_int}C
193 | | Set Test Variable | ${smt_used}
194 | | Set Test Variable | ${thr_count_int}
195 | | Set Test Variable | ${cpu_count_int}
196 | | Set Test Variable | ${rxq_count_int}
198 | Create Kubernetes VSWITCH startup config on all DUTs
199 | | [Documentation] | Create base startup configuration of VSWITCH in Kubernetes
200 | | ... | deploy to all DUTs.
202 | | ... | *Arguments:*
203 | | ... | - ${jumbo} - Jumbo packet. Type: boolean
204 | | ... | - ${phy_cores} - Physical cores. Type: integer
205 | | ... | - ${rxq} - RX queues. Type: integer
209 | | ... | \| Create Kubernetes VSWITCH startup config on all DUTs \| ${True} \
210 | | ... | \| ${1} \| ${1}
212 | | [Arguments] | ${phy_cores} | ${rx_queues}=${None} | ${jumbo}=${False}
214 | | ${cpu_count_int} | Convert to Integer | ${phy_cores}
215 | | ${thr_count_int} | Convert to Integer | ${phy_cores}
216 | | ${num_mbufs_int} | Convert to Integer | 16384
217 | | ${duts}= | Get Matches | ${nodes} | DUT*
218 | | :FOR | ${dut} | IN | @{duts}
219 | | | ${numa}= | Get interfaces numa node | ${nodes['${dut}']}
220 | | | ... | ${${dut}_if1} | ${${dut}_if2}
221 | | | ${smt_used}= | Is SMT enabled | ${nodes['${dut}']['cpuinfo']}
222 | | | ${if1_pci}= | Get Interface PCI Addr | ${nodes['${dut}']} | ${${dut}_if1}
223 | | | ${if2_pci}= | Get Interface PCI Addr | ${nodes['${dut}']} | ${${dut}_if2}
224 | | | ${thr_count_int}= | Run keyword if | ${smt_used}
225 | | | ... | Evaluate | int(${cpu_count_int}*2)
226 | | | ... | ELSE | Set variable | ${thr_count_int}
227 | | | ${rxq_count_int}= | Run keyword if | ${rx_queues}
228 | | | ... | Set variable | ${rx_queues}
229 | | | ... | ELSE | Evaluate | int(${thr_count_int}/2)
230 | | | ${rxq_count_int}= | Run keyword if | ${rxq_count_int} == 0
231 | | | ... | Set variable | ${1}
232 | | | ... | ELSE | Set variable | ${rxq_count_int}
233 | | | ${num_mbufs_int}= | Evaluate | int(${num_mbufs_int}*${rxq_count_int})
234 | | | ${config}= | Run keyword | Create Kubernetes VSWITCH startup config
235 | | | ... | node=${nodes['${dut}']} | phy_cores=${phy_cores}
236 | | | ... | cpu_node=${numa} | jumbo=${jumbo} | rxq_count_int=${rxq_count_int}
237 | | | ... | num_mbufs_int=${num_mbufs_int}
238 | | | ... | filename=/tmp/vswitch.conf | if1=${if1_pci} | if2=${if2_pci}
239 | | | Run keyword if | ${thr_count_int} > 1
240 | | | ... | Set Tags | MTHREAD | ELSE | Set Tags | STHREAD
241 | | | Set Tags | ${thr_count_int}T${cpu_count_int}C
242 | | Set Test Variable | ${smt_used}
243 | | Set Test Variable | ${thr_count_int}
244 | | Set Test Variable | ${cpu_count_int}
245 | | Set Test Variable | ${rxq_count_int}
247 | Create Kubernetes VNF'${i}' startup config on all DUTs
248 | | [Documentation] | Create base startup configuration of VNF in Kubernetes
249 | | ... | deploy to all DUTs.
251 | | ${i_int}= | Convert To Integer | ${i}
252 | | ${cpu_skip}= | Evaluate | ${vswitch_cpus}+${system_cpus}
253 | | ${dut1_numa}= | Get interfaces numa node | ${dut1}
254 | | ... | ${dut1_if1} | ${dut1_if2}
255 | | ${dut2_numa}= | Get interfaces numa node | ${dut2}
256 | | ... | ${dut2_if1} | ${dut2_if2}
257 | | ${config}= | Run keyword | Create Kubernetes VNF startup config
258 | | ... | node=${dut1} | phy_cores=${vnf_cpus} | cpu_node=${dut1_numa}
259 | | ... | cpu_skip=${cpu_skip} | filename=/tmp/vnf${i}.conf
261 | | ${config}= | Run keyword | Create Kubernetes VNF startup config
262 | | ... | node=${dut2} | phy_cores=${vnf_cpus} | cpu_node=${dut2_numa}
263 | | ... | cpu_skip=${cpu_skip} | filename=/tmp/vnf${i}.conf
266 | Add no multi seg to all DUTs
267 | | [Documentation] | Add No Multi Seg to VPP startup configuration to all DUTs.
269 | | ${duts}= | Get Matches | ${nodes} | DUT*
270 | | :FOR | ${dut} | IN | @{duts}
271 | | | Run keyword | ${dut}.Add DPDK No Multi Seg
273 | Add DPDK dev default RXD to all DUTs
274 | | [Documentation] | Add DPDK num-rx-desc to VPP startup configuration to all
277 | | ... | *Arguments:*
278 | | ... | - rxd - Number of RX descriptors. Type: string
282 | | ... | \| Add DPDK dev default RXD to all DUTs \| ${rxd} \|
284 | | [Arguments] | ${rxd}
286 | | ${duts}= | Get Matches | ${nodes} | DUT*
287 | | :FOR | ${dut} | IN | @{duts}
288 | | | Run keyword | ${dut}.Add DPDK Dev Default RXD | ${rxd}
290 | Add DPDK dev default TXD to all DUTs
291 | | [Documentation] | Add DPDK num-tx-desc to VPP startup configuration to all
294 | | ... | *Arguments:*
295 | | ... | - txd - Number of TX descriptors. Type: string
299 | | ... | \| Add DPDK dev default TXD to all DUTs \| ${txd} \|
301 | | [Arguments] | ${txd}
303 | | ${duts}= | Get Matches | ${nodes} | DUT*
304 | | :FOR | ${dut} | IN | @{duts}
305 | | | Run keyword | ${dut}.Add DPDK Dev Default TXD | ${txd}
307 | Add DPDK Uio Driver on all DUTs
308 | | [Documentation] | Add DPDK uio driver to VPP startup configuration on all
311 | | ... | *Arguments:*
312 | | ... | - uio_driver - Required uio driver. Type: string
316 | | ... | \| Add DPDK Uio Driver on all DUTs \| igb_uio \|
318 | | [Arguments] | ${uio_driver}
320 | | ${duts}= | Get Matches | ${nodes} | DUT*
321 | | :FOR | ${dut} | IN | @{duts}
322 | | | Run keyword | ${dut}.Add DPDK Uio Driver | ${uio_driver}
324 | Add NAT to all DUTs
325 | | [Documentation] | Add NAT configuration to all DUTs.
327 | | ${duts}= | Get Matches | ${nodes} | DUT*
328 | | :FOR | ${dut} | IN | @{duts}
329 | | | Run keyword | ${dut}.Add NAT
331 | Add cryptodev to all DUTs
332 | | [Documentation] | Add Cryptodev to VPP startup configuration to all DUTs.
334 | | ... | *Arguments:*
335 | | ... | - count - Number of QAT devices. Type: integer
339 | | ... | \| Add cryptodev to all DUTs \| ${4} \|
341 | | [Arguments] | ${count}
342 | | ${duts}= | Get Matches | ${nodes} | DUT*
343 | | :FOR | ${dut} | IN | @{duts}
344 | | | ${smt_used}= | Is SMT enabled | ${nodes['${dut}']['cpuinfo']}
345 | | | ${thr_count_int}= | Run keyword if | ${smt_used}
346 | | | ... | Evaluate | int(${count}*2)
347 | | | ... | ELSE | Set variable | ${count}
348 | | | Run keyword | ${dut}.Add DPDK Cryptodev | ${thr_count_int}
350 | Add DPDK SW cryptodev on DUTs in 3-node single-link circular topology
351 | | [Documentation] | Add required number of SW crypto devices of given type
352 | | ... | to VPP startup configuration on all DUTs in 3-node single-link
353 | | ... | circular topology.
355 | | ... | *Arguments:*
356 | | ... | - sw_pmd_type - PMD type of SW crypto device. Type: string
357 | | ... | - count - Number of SW crypto devices. Type: string
361 | | ... | \| Add DPDK SW cryptodev on DUTs in 3-node single-link circular\
362 | | ... | topology \| aesni-mb \| ${2} \|
364 | | [Arguments] | ${sw_pmd_type} | ${count}
365 | | ${smt_used}= | Is SMT enabled | ${nodes['DUT1']['cpuinfo']}
366 | | ${thr_count_int}= | Run keyword if | ${smt_used}
367 | | ... | Evaluate | int(${count}*2)
368 | | ... | ELSE | Set variable | ${count}
369 | | ${socket_id}= | Get Interface Numa Node | ${nodes['DUT1']} | ${dut1_if2}
370 | | Run keyword | DUT1.Add DPDK SW Cryptodev | ${sw_pmd_type} | ${socket_id}
371 | | ... | ${thr_count_int}
372 | | ${smt_used}= | Is SMT enabled | ${nodes['DUT2']['cpuinfo']}
373 | | ${thr_count_int}= | Run keyword if | ${smt_used}
374 | | ... | Evaluate | int(${count}*2)
375 | | ... | ELSE | Set variable | ${count}
376 | | ${socket_id}= | Get Interface Numa Node | ${nodes['DUT2']} | ${dut2_if1}
377 | | Run keyword | DUT2.Add DPDK SW Cryptodev | ${sw_pmd_type} | ${socket_id}
378 | | ... | ${thr_count_int}
380 | Apply startup configuration on all VPP DUTs
381 | | [Documentation] | Write startup configuration and restart VPP on all DUTs.
383 | | ... | *Arguments:*
384 | | ... | - restart_vpp - Whether to restart VPP (Optional). Type: boolean
388 | | ... | \| Apply startup configuration on all VPP DUTs \| ${False} \|
390 | | [Arguments] | ${restart_vpp}=${True}
392 | | ${duts}= | Get Matches | ${nodes} | DUT*
393 | | :FOR | ${dut} | IN | @{duts}
394 | | | Run keyword | ${dut}.Apply Config | restart_vpp=${restart_vpp}
395 | | Update All Interface Data On All Nodes | ${nodes} | skip_tg=${True}
398 | | [Documentation] | Get PIDs of VPP processes from all DUTs in topology and\
399 | | ... | set it as a test variable. The PIDs are stored as dictionary items\
400 | | ... | where the key is the host and the value is the PID.
402 | | ${setup_vpp_pids}= | Get VPP PIDs | ${nodes}
403 | | ${keys}= | Get Dictionary Keys | ${setup_vpp_pids}
404 | | :FOR | ${key} | IN | @{keys}
405 | | | ${pid}= | Get From Dictionary | ${setup_vpp_pids} | ${key}
406 | | | Run Keyword If | $pid is None | FAIL | No VPP PID found on node ${key}
407 | | | Run Keyword If | ',' in '${pid}'
408 | | | ... | FAIL | More then one VPP PID found on node ${key}: ${pid}
409 | | Set Test Variable | ${setup_vpp_pids}
411 | Verify VPP PID in Teardown
412 | | [Documentation] | Check if the VPP PIDs on all DUTs are the same at the end\
413 | | ... | of test as they were at the begining. If they are not, only a message\
414 | | ... | is printed on console and to log. The test will not fail.
416 | | ${teardown_vpp_pids}= | Get VPP PIDs | ${nodes}
417 | | ${err_msg}= | Catenate | ${SUITE NAME} - ${TEST NAME}
418 | | ... | \nThe VPP PIDs are not equal!\nTest Setup VPP PIDs:
419 | | ... | ${setup_vpp_pids}\nTest Teardown VPP PIDs: ${teardown_vpp_pids}
420 | | ${rc} | ${msg}= | Run keyword and ignore error
421 | | ... | Dictionaries Should Be Equal
422 | | ... | ${setup_vpp_pids} | ${teardown_vpp_pids}
423 | | Run Keyword And Return If | '${rc}'=='FAIL' | Log | ${err_msg}
424 | | ... | console=yes | level=WARN
426 | Set up functional test
427 | | [Documentation] | Common test setup for functional tests.
429 | | Configure all DUTs before test
431 | | Configure all TGs for traffic script
432 | | Update All Interface Data On All Nodes | ${nodes}
433 | | Reset VAT History On All DUTs | ${nodes}
435 | Tear down functional test
436 | | [Documentation] | Common test teardown for functional tests.
438 | | Remove All Added Ports On All DUTs From Topology | ${nodes}
439 | | Show Packet Trace on All DUTs | ${nodes}
440 | | Show VAT History On All DUTs | ${nodes}
441 | | Vpp Show Errors On All DUTs | ${nodes}
442 | | Verify VPP PID in Teardown
444 | Tear down LISP functional test
445 | | [Documentation] | Common test teardown for functional tests with LISP.
447 | | Remove All Added Ports On All DUTs From Topology | ${nodes}
448 | | Show Packet Trace on All DUTs | ${nodes}
449 | | Show VAT History On All DUTs | ${nodes}
450 | | Show Vpp Settings | ${nodes['DUT1']}
451 | | Show Vpp Settings | ${nodes['DUT2']}
452 | | Vpp Show Errors On All DUTs | ${nodes}
453 | | Verify VPP PID in Teardown
455 | Tear down LISP functional test with QEMU
456 | | [Documentation] | Common test teardown for functional tests with LISP and\
459 | | ... | *Arguments:*
460 | | ... | - vm_node - VM to stop. Type: string
464 | | ... | \| Tear down LISP functional test with QEMU \| ${vm_node} \|
466 | | [Arguments] | ${vm_node}
468 | | Remove All Added Ports On All DUTs From Topology | ${nodes}
469 | | Show Packet Trace on All DUTs | ${nodes}
470 | | Show VAT History On All DUTs | ${nodes}
471 | | Show Vpp Settings | ${nodes['DUT1']}
472 | | Show Vpp Settings | ${nodes['DUT2']}
473 | | Vpp Show Errors On All DUTs | ${nodes}
474 | | Stop and clear QEMU | ${nodes['DUT1']} | ${vm_node}
475 | | Verify VPP PID in Teardown
477 | Set up TAP functional test
478 | | [Documentation] | Common test setup for functional tests with TAP.
480 | | Set up functional test
481 | | Clean Up Namespaces | ${nodes['DUT1']}
483 | Tear down TAP functional test
484 | | [Documentation] | Common test teardown for functional tests with TAP.
486 | | Tear down functional test
487 | | Clean Up Namespaces | ${nodes['DUT1']}
489 | Tear down TAP functional test with Linux bridge
490 | | [Documentation] | Common test teardown for functional tests with TAP and
491 | | ... | a Linux bridge.
493 | | ... | *Arguments:*
494 | | ... | - bid_TAP - Bridge name. Type: string
498 | | ... | \| Tear down TAP functional test with Linux bridge \| ${bid_TAP} \|
500 | | [Arguments] | ${bid_TAP}
502 | | Tear down functional test
503 | | Linux Del Bridge | ${nodes['DUT1']} | ${bid_TAP}
504 | | Clean Up Namespaces | ${nodes['DUT1']}
506 | Tear down FDS functional test
507 | | [Documentation] | Common test teardown for FDS functional tests.
509 | | ... | *Arguments:*
510 | | ... | - dut1_node - Node Nr.1 where to clean qemu. Type: dictionary
511 | | ... | - qemu_node1 - VM Nr.1 node info dictionary. Type: string
512 | | ... | - dut2_node - Node Nr.2 where to clean qemu. Type: dictionary
513 | | ... | - qemu_node2 - VM Nr.2 node info dictionary. Type: string
517 | | ... | \| Tear down FDS functional test \| ${dut1_node} \| ${qemu_node1}\
518 | | ... | \| ${dut2_node} \| ${qemu_node2} \|
520 | | [Arguments] | ${dut1_node} | ${qemu_node1} | ${dut2_node}
521 | | ... | ${qemu_node2}
523 | | Tear down functional test
524 | | Tear down QEMU | ${dut1_node} | ${qemu_node1} | qemu_node1
525 | | Tear down QEMU | ${dut2_node} | ${qemu_node2} | qemu_node2
527 | Stop VPP Service on DUT
528 | | [Documentation] | Stop the VPP service on the specified node.
530 | | ... | *Arguments:*
531 | | ... | - node - information about a DUT node. Type: dictionary
535 | | ... | \| Stop VPP Service on DUT \| ${nodes['DUT1']} \|
537 | | [Arguments] | ${node}
538 | | Stop VPP Service | ${node}
540 | Start VPP Service on DUT
541 | | [Documentation] | Start the VPP service on the specified node.
543 | | ... | *Arguments:*
544 | | ... | - node - information about a DUT node. Type: dictionary
548 | | ... | \| Start VPP Service on DUT \| ${nodes['DUT1']} \|
550 | | [Arguments] | ${node}
551 | | Start VPP Service | ${node}