Support mac address and nic_type for host only networks
This commit is contained in:
parent
d09dc91d1b
commit
48995f6036
|
@ -246,7 +246,9 @@ module VagrantPlugins
|
||||||
:adapter_ip => adapter_ip,
|
:adapter_ip => adapter_ip,
|
||||||
:auto_config => options[:auto_config],
|
:auto_config => options[:auto_config],
|
||||||
:ip => ip,
|
:ip => ip,
|
||||||
|
:mac => nil,
|
||||||
:netmask => options[:netmask],
|
:netmask => options[:netmask],
|
||||||
|
:nic_type => nil,
|
||||||
:type => :static
|
:type => :static
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
@ -271,8 +273,10 @@ module VagrantPlugins
|
||||||
|
|
||||||
return {
|
return {
|
||||||
:adapter => config[:adapter],
|
:adapter => config[:adapter],
|
||||||
:type => :hostonly,
|
:hostonly => interface[:name],
|
||||||
:hostonly => interface[:name]
|
:mac => config[:mac],
|
||||||
|
:nic_type => config[:nic_type],
|
||||||
|
:type => :hostonly
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue