We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6a5589b + c000ee6 commit a93599bCopy full SHA for a93599b
1 file changed
xcp/net/biosdevname.py
@@ -75,7 +75,7 @@ def all_devices_all_names():
75
continue
76
77
# Treat USB devices the PCI device of their host adapter
78
- if dinfo.get("Bus Info", "").startswith("usb-"):
+ if dinfo.get("Bus Info", "").startswith("usb-") and "eth" in dinfo["Kernel name"]:
79
dinfo["Bus Info"] = dinfo["Bus Info"].split('-')[1]
80
81
kname = dinfo["Kernel name"]
0 commit comments