You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I got the issue with this code when run sriov test!
status, output = utils_misc.cmd_status_output(
"lspci |awk '/Ethernet/ {print $1}'", shell=True, session=session)
if status or not output:
raise exceptions.TestError("Unable to get Ethernet controllers. status: %s,"
"stdout: %s." % (status, output))
for pci in output.split():
_, output = utils_misc.cmd_status_output("lspci -v -s %s" % pci,
shell=True,
session=session)
if re.search("SR-IOV", output):
pf_driver = re.search('driver in use: (.*)', output)[1]
tmp_info = {'driver': pf_driver, 'pci_id': '0000:%s' % pci}
iface_name = get_iface_name('0000:%s' % pci, session=session)
This code work when command "lspci |awk '/Ethernet/ {print $1}'" return pcie bus with short format like 02:00.0 Ethernet ... mean domain numbers are omitted since they are all equal to zero!
but, on my system return output with the domain numbers are highlighted.
eg:
Hi,
I got the issue with this code when run sriov test!
This code work when command "lspci |awk '/Ethernet/ {print $1}'" return pcie bus with short format like
02:00.0 Ethernet ...
mean domain numbers are omitted since they are all equal to zero!but, on my system return output with the domain numbers are highlighted.
eg:
I suggest using
-D
in commandlspci
and remove prefix0000:
Thanks,
The text was updated successfully, but these errors were encountered: