How to use get_dpdk_version method in lisa

Best Python code snippet using lisa_python

dpdktestpmd.py

Source:dpdktestpmd.py Github

copy

Full Screen

...120 return False121 @property122 def dependencies(self) -> List[Type[Tool]]:123 return [Git, Wget, Lscpu]124 def get_dpdk_version(self) -> VersionInfo:125 return self._dpdk_version_info126 def has_tx_ip_flag(self) -> bool:127 dpdk_version = self.get_dpdk_version()128 if not dpdk_version:129 fail(130 "Test suite bug: dpdk version was not set prior "131 "to querying the version information."132 )133 # black doesn't like to direct return VersionInfo comparison134 return bool(dpdk_version >= "19.11.0") # appease the type checker135 def use_package_manager_install(self) -> bool:136 assert_that(hasattr(self, "_dpdk_source")).described_as(137 "_dpdk_source was not set in DpdkTestpmd instance. "138 "set_dpdk_source must be called before instantiation."139 ).is_true()140 if self._dpdk_source == PACKAGE_MANAGER_SOURCE:141 return True...

Full Screen

Full Screen

dpdkovs.py

Source:dpdkovs.py Github

copy

Full Screen

...89 )90 self.ovs_version = VersionInfo(major, minor, patch)91 return True92 def _check_ovs_dpdk_compatibility(self, dpdk_tool: DpdkTestpmd) -> None:93 dpdk_version = dpdk_tool.get_dpdk_version()94 # confirm supported ovs:dpdk version pairing based on95 # https://docs.openvswitch.org/en/latest/faq/releases/96 # to account for minor releases check release is below a major version threshold97 dpdk_to_ovs_minimum_version = {98 19: "2.13.0",99 20: "2.15.0",100 21: "2.17.0",101 22: "3.0.0",102 }103 # check if dpdk version too low104 if dpdk_version < "19.11.0":105 raise SkippedException(106 f"Dpdk version {dpdk_version} is not supported by this test."107 )...

Full Screen

Full Screen

DPDKTools.py

Source:DPDKTools.py Github

copy

Full Screen

...66 f"{nic_driver} {pci_address1} {pci_address2}"67 message = u"Cleanup the DPDK failed!"68 exec_cmd_no_error(node, command, timeout=1200, message=message)69 @staticmethod70 def get_dpdk_version(node):71 """Log and return the installed DPDK version.72 The logged string ends with newline, the returned one is stripped.73 :param node: Node from topology file.74 :type node: dict75 :returns: Stripped DPDK version string.76 :rtype: str77 :raises RuntimeError: If command returns nonzero return code.78 """79 command = f"cat {Constants.REMOTE_FW_DIR}/dpdk*/VERSION"80 message = u"Get DPDK version failed!"81 stdout, _ = exec_cmd_no_error(node, command, message=message)82 # TODO: PAL should already tolerate stripped value in the log.83 logger.info(f"DPDK Version: {stdout}")84 return stdout.strip()85 @staticmethod86 def install_dpdk_framework(node):87 """88 Prepare the DPDK framework on the DUT node.89 :param node: Node from topology file.90 :type node: dict91 :raises RuntimeError: If command returns nonzero return code.92 """93 command = f"{Constants.REMOTE_FW_DIR}/{Constants.RESOURCES_LIB_SH}" \94 f"/entry/install_dpdk.sh"95 message = u"Install the DPDK failed!"96 exec_cmd_no_error(node, command, timeout=3600, message=message)97 DPDKTools.get_dpdk_version(node)98 @staticmethod99 def install_dpdk_framework_on_all_duts(nodes):100 """101 Prepare the DPDK framework on all DUTs.102 :param nodes: Nodes from topology file.103 :type nodes: dict104 """105 for node in list(nodes.values()):106 if node[u"type"] == NodeType.DUT:...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run lisa automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful