From a0881bc6f21525ed636a0cec91249e6eec00ebe9 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Wed, 5 Jun 2019 15:29:10 -0400 Subject: nodedev: Fold PCIDevice into NodeDevice --- virtManager/createnet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'virtManager/createnet.py') diff --git a/virtManager/createnet.py b/virtManager/createnet.py index a323e4fc..272ed63b 100644 --- a/virtManager/createnet.py +++ b/virtManager/createnet.py @@ -159,7 +159,7 @@ class vmmCreateNetwork(vmmGObjectUI): devprettynames = [] ifnames = [] for pcidev in self.conn.filter_nodedevs("pci"): - if pcidev.xmlobj.capability_type != "virt_functions": + if not pcidev.xmlobj.is_pci_sriov(): continue devdesc = pcidev.xmlobj.pretty_name() for netdev in self.conn.filter_nodedevs("net"): -- cgit v1.2.1