lib/rubber/cloud/vsphere.rb in rubber-2.15.2 vs lib/rubber/cloud/vsphere.rb in rubber-2.16.0
- old
+ new
@@ -85,11 +85,11 @@
# Destroy all existing NICs. We need the public and private IPs to line up with the NICs attached to the
# correct virtual switches. Rather than take the cross-product and try to work that out, it's easier to
# just start fresh and guarantee everything works as intended.
server.interfaces.each(&:destroy)
- server.interfaces.create(:network => env.public_network_name) if host_env.public_nic
- server.interfaces.create(:network => env.private_network_name) if host_env.private_nic
+ server.interfaces.create(:network => env.public_network_name, :type => 'VirtualVmxnet3') if host_env.public_nic
+ server.interfaces.create(:network => env.private_network_name, :type => 'VirtualVmxnet3') if host_env.private_nic
vm_ref = compute_provider.send(:get_vm_ref, server.id)
vm_ref.CustomizeVM_Task(:spec => customization_spec(instance_alias, nics))
server.start