parent
d1a6b07fe1
commit
00fdec1d60
1 changed files with 1 additions and 0 deletions
|
@ -801,6 +801,7 @@ class PyVmomiHelper(object):
|
||||||
dvs_port_connection.switchUuid = pg_obj.config.distributedVirtualSwitch.uuid
|
dvs_port_connection.switchUuid = pg_obj.config.distributedVirtualSwitch.uuid
|
||||||
nic.device.backing = vim.vm.device.VirtualEthernetCard.DistributedVirtualPortBackingInfo()
|
nic.device.backing = vim.vm.device.VirtualEthernetCard.DistributedVirtualPortBackingInfo()
|
||||||
nic.device.backing.port = dvs_port_connection
|
nic.device.backing.port = dvs_port_connection
|
||||||
|
nic_change_detected = True
|
||||||
else:
|
else:
|
||||||
# vSwitch
|
# vSwitch
|
||||||
if not isinstance(nic.device.backing, vim.vm.device.VirtualEthernetCard.NetworkBackingInfo):
|
if not isinstance(nic.device.backing, vim.vm.device.VirtualEthernetCard.NetworkBackingInfo):
|
||||||
|
|
Loading…
Reference in a new issue