This commit is contained in:
Davis Phillips 2017-02-03 12:57:19 -06:00 committed by jctanner
parent d1a6b07fe1
commit 00fdec1d60

View file

@ -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):