:raises RuntimeError: If cannot get the information about interfaces.
"""
cmd = f"grep '{pci_addr}' /sys/class/net/*/device/uevent"
- ret_code, stdout, stderr = exec_cmd(node, cmd, timeout=30)
- if ret_code != 0:
- return None
-
+ msg = "Could not get information about interfaces"
+ stdout, stderr = exec_cmd_no_error(node, cmd, timeout=30, err_msg=msg)
try:
- stdout.split("/")[4]
+ return stdout.split("/")[4]
except IndexError:
- raise RuntimeError(
- f"Could not get information about interfaces:\n{stderr}"
- )
+ raise RuntimeError(f"{msg}:\n{stderr}")
@staticmethod
def set_linux_interface_up(
-# Copyright (c) 2023 Cisco and/or its affiliates.
+# Copyright (c) 2024 Cisco and/or its affiliates.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
|
| Force Tags | 2_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | MRR
| ... | NIC_Intel-X710 | IP4FWD | BASE | IP4BASE | DRV_VHOST
-| ... | RXQ_SIZE_1024 | TXQ_SIZE_1024 | GSO_TRUE
+| ... | RXQ_SIZE_1024 | TXQ_SIZE_1024 | GSO_FALSE
| ... | ethip4-ip4base-2vhost-iperf3
|
| Suite Setup | Setup suite topology interfaces | iPerf3