|
|
@ -768,8 +768,9 @@ class PyVmomiHelper(PyVmomi):
|
|
|
|
# VDS switch
|
|
|
|
# VDS switch
|
|
|
|
pg_obj = find_obj(self.content, [vim.dvs.DistributedVirtualPortgroup], network_devices[key]['name'])
|
|
|
|
pg_obj = find_obj(self.content, [vim.dvs.DistributedVirtualPortgroup], network_devices[key]['name'])
|
|
|
|
|
|
|
|
|
|
|
|
if (nic.device.backing and
|
|
|
|
if (nic.device.backing and not hasattr(nic.device.backing, 'port')):
|
|
|
|
(nic.device.backing.port.portgroupKey != pg_obj.key or
|
|
|
|
nic_change_detected = True
|
|
|
|
|
|
|
|
elif (nic.device.backing and (nic.device.backing.port.portgroupKey != pg_obj.key or
|
|
|
|
nic.device.backing.port.switchUuid != pg_obj.config.distributedVirtualSwitch.uuid)):
|
|
|
|
nic.device.backing.port.switchUuid != pg_obj.config.distributedVirtualSwitch.uuid)):
|
|
|
|
nic_change_detected = True
|
|
|
|
nic_change_detected = True
|
|
|
|
|
|
|
|
|
|
|
|