lib/vagrant-windows/guest/windows.rb in vagrant-windows-0.1.0 vs lib/vagrant-windows/guest/windows.rb in vagrant-windows-0.1.1
- old
+ new
@@ -70,11 +70,9 @@
naked_mac = nic[:mac_address].gsub(':','')
if driver_mac_address[naked_mac]
vm_interface_map[driver_mac_address[naked_mac]] = { :name => nic[:net_connection_id], :mac_address => naked_mac, :index => nic[:interface_index] }
end
end
- puts networks
- puts vm_interface_map
networks.each do |network|
if network[:type].to_sym == :static
vm.channel.execute("netsh interface ip set address \"#{vm_interface_map[network[:interface]+1][:name]}\" static #{network[:ip]} #{network[:netmask]}")
elsif network[:type].to_sym == :dhcp
vm.channel.execute("netsh interface ip set address \"#{vm_interface_map[network[:interface]+1][:name]}\" dhcp")
\ No newline at end of file