Improve comment for PCI port binding update
This commit expands the comment block for PCI logic in _update_port_binding_for_instance() to explain the cases where a migration may or may not be present. Change-Id: I1e699367576fbabe78fae0949588b3f40fe08da4 Related-Bug: #1677621
This commit is contained in:
parent
7e383b68d3
commit
44a55d65e2
|
@ -2401,7 +2401,10 @@ class API(base_api.NetworkAPI):
|
|||
|
||||
# Update port with newly allocated PCI devices. Even if the
|
||||
# resize is happening on the same host, a new PCI device can be
|
||||
# allocated.
|
||||
# allocated. Note that this only needs to happen if a migration
|
||||
# is in progress such as in a resize / migrate. It is possible
|
||||
# that this function is called without a migration object, such
|
||||
# as in an unshelve operation.
|
||||
vnic_type = p.get('binding:vnic_type')
|
||||
if (vnic_type in network_model.VNIC_TYPES_SRIOV
|
||||
and migration is not None):
|
||||
|
|
Loading…
Reference in New Issue