FIX: Race condition
[csit.git] / resources / libraries / robot / shared / interfaces.robot
index 7d27ac5..4fdc1ee 100644 (file)
 | | ${index}= | Get Index From List | ${TEST TAGS} | DPDK
 | | Run Keyword If | ${index} >= 0 | Return From Keyword
 | | FOR | ${dut} | IN | @{duts}
+| | | Stop VPP Service | ${nodes['${dut}']}
+| | | PCI Driver Unbind List | ${nodes['${dut}']} | @{${dut}_pf_pci}
 | | | Run keyword | ${dut}.Add DPDK Dev | @{${dut}_pf_pci}
 | | | Run Keyword If | ${dpdk_no_tx_checksum_offload}
 | | | ... | ${dut}.Add DPDK No Tx Checksum Offload
 | | | ... | dut=${dut} | pf=${pf} | id=${id} | vlan_per_chain=${vlan_per_chain}
 | | | # First id results in non-None indices, after that _1_ are defined.
 | | | ${_dot1q}= | Set Variable If | '${_dot1q}' == '${NONE}'
-| | | ... | ${${dut}_dot1q${pf}_1} | ${_dot1q}
+| | | ... | ${${dut}_dot1q${pf}_1}[0] | ${_dot1q}
 | | | ${_dot1q}= | Create List | ${_dot1q}
 | | | Set Test Variable | ${${dut}_dot1q${pf}_${id}} | ${_dot1q}
 | | END
 | | [Arguments] | ${dut} | ${pf} | ${id} | ${vlan_per_chain}=${True}
 | |
 | | Return From Keyword If | ${id} != ${1} and not ${vlan_per_chain}
-| | ... | ${NONE} | ${NONE}
+| | ... | ${NONE}
 | | ${_default}= | Evaluate | ${pf} * ${100} + ${id} - ${1}
 | | ${_vlan}= | Get Variable Value | \${${dut}_pf${pf}_vlan}
 | | ${_vlan}= | Set Variable If | '${_vlan}[0]' != '${NONE}'