diff --git a/qvm-tools/qvm-pci b/qvm-tools/qvm-pci index c9c715ec..90a1aed6 100755 --- a/qvm-tools/qvm-pci +++ b/qvm-tools/qvm-pci @@ -38,8 +38,8 @@ def find_devices_of_class(klass): print "ERROR when executing lspci!" raise IOError - rx_netdev = re.compile(r"^([0-9][0-9]:[0-9][0-9].[0-9]) \"{}".format( - klass)) + rx_netdev = re.compile(r"^([0-9a-f]{2}:[0-9a-f]{2}.[0-9a-f]) \"" + + klass) for dev in str(result[0]).splitlines(): match = rx_netdev.match(dev) if match is not None: