osdict: Don't return virtio1.0-net as a valid device name (bug 1399083)
We can't depend on libosinfo device names being valid libvirt network model names, so use a whitelist https://bugzilla.redhat.com/show_bug.cgi?id=1399083
This commit is contained in:
parent
435de2d40c
commit
617b92710f
|
@ -453,7 +453,7 @@ class _OsVariant(object):
|
|||
devs = self._os.get_all_devices(fltr)
|
||||
for idx in range(devs.get_length()):
|
||||
devname = devs.get_nth(idx).get_name()
|
||||
if devname != "virtio-net":
|
||||
if devname in ["pcnet", "ne2k_pci", "rtl8139", "e1000"]:
|
||||
return devname
|
||||
return None
|
||||
|
||||
|
|
Loading…
Reference in New Issue