summaryrefslogtreecommitdiff
path: root/nova/virt/libvirt/driver.py
diff options
context:
space:
mode:
Diffstat (limited to 'nova/virt/libvirt/driver.py')
-rw-r--r--nova/virt/libvirt/driver.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/virt/libvirt/driver.py b/nova/virt/libvirt/driver.py
index 70410dcfbf..9b1cab2151 100644
--- a/nova/virt/libvirt/driver.py
+++ b/nova/virt/libvirt/driver.py
@@ -3252,7 +3252,8 @@ class LibvirtDriver(driver.ComputeDriver):
@staticmethod
def _has_sriov_port(network_info):
for vif in network_info:
- if vif['vnic_type'] == network_model.VNIC_TYPE_DIRECT:
+ if vif['vnic_type'] in [network_model.VNIC_TYPE_DIRECT,
+ network_model.VNIC_TYPE_DIRECT_PHYSICAL]:
return True
return False