Fixes issue when loading a project using VMware vmnet interfaces. Fixes #319.

This commit is contained in:
grossmj committed 2015-10-14 21:39:17 -06:00
1 parent 57bbd63085
commit 6e36687347
2 files changed
+6 -2

No files matched your search

+2 -1
View File
@@ -820,7 +820,8 @@ class VMwareVM(BaseVM):
raise VMwareError("Sorry, adding a link to a started VMware VM is not supported without uBridge enabled")
self._vmx_pairs["ethernet{}.vnet".format(adapter_number)] = nio.vmnet
self._write_vmx_file()
self._vmnets.append(nio.vmnet)
if nio.vmnet not in self._vmnets:
self._vmnets.append(nio.vmnet)
adapter.add_nio(0, nio)
if self._started and self._use_ubridge:
yield from self._add_ubridge_connection(nio, adapter_number)