- Cleanup the DPDK test environment on the DUT node.
- Unbind the NIC from the igb_uio and bind them to the kernel driver.
-
- :param dut_node: Will cleanup the DPDK on this node.
- :param dut_if1: DUT interface name.
- :param dut_if2: DUT interface name.
- :type dut_node: dict
- :type dut_if1: str
- :type dut_if2: str
- :returns: none
- :raises RuntimeError: If it fails to cleanup the dpdk.
+ Prepare the DPDK framework on the DUT node.
+
+ :param node: Node from topology file.
+ :type node: dict
+ :raises RuntimeError: If command returns nonzero return code.
+ """
+ command = f"{Constants.REMOTE_FW_DIR}/{Constants.RESOURCES_LIB_SH}" \
+ f"/entry/install_dpdk.sh"
+ message = u"Install the DPDK failed!"
+ exec_cmd_no_error(node, command, timeout=600, message=message)
+
+ command = f"cat {Constants.REMOTE_FW_DIR}/dpdk*/VERSION"
+ message = u"Get DPDK version failed!"
+ stdout, _ = exec_cmd_no_error(node, command, message=message)
+
+ logger.info(f"DPDK Version: {stdout}")
+
+ @staticmethod
+ def install_dpdk_framework_on_all_duts(nodes):
+ """
+ Prepare the DPDK framework on all DUTs.
+
+ :param nodes: Nodes from topology file.
+ :type nodes: dict