From 48995f6036a91a397c402379238c24019d9cfbef Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 11 Jan 2013 15:22:46 -0800 Subject: [PATCH] Support mac address and nic_type for host only networks --- plugins/providers/virtualbox/action/network.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/providers/virtualbox/action/network.rb b/plugins/providers/virtualbox/action/network.rb index 6caf4e939..3a807cf06 100644 --- a/plugins/providers/virtualbox/action/network.rb +++ b/plugins/providers/virtualbox/action/network.rb @@ -246,7 +246,9 @@ module VagrantPlugins :adapter_ip => adapter_ip, :auto_config => options[:auto_config], :ip => ip, + :mac => nil, :netmask => options[:netmask], + :nic_type => nil, :type => :static } end @@ -271,8 +273,10 @@ module VagrantPlugins return { :adapter => config[:adapter], - :type => :hostonly, - :hostonly => interface[:name] + :hostonly => interface[:name], + :mac => config[:mac], + :nic_type => config[:nic_type], + :type => :hostonly } end