Support mac address and nic_type for host only networks

This commit is contained in:
Mitchell Hashimoto 2013-01-11 15:22:46 -08:00
parent d09dc91d1b
commit 48995f6036
1 changed files with 6 additions and 2 deletions

View File

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