Merge pull request #1745 from jheise/master
providers/virtualbox: static ip addresses on public networks
This commit is contained in:
commit
154b32e561
|
@ -202,6 +202,17 @@ module VagrantPlugins
|
|||
end
|
||||
|
||||
def bridged_network_config(config)
|
||||
if config[:ip]
|
||||
options = {
|
||||
:auto_config => true,
|
||||
:mac => nil,
|
||||
:netmask => "255.255.255.0",
|
||||
:type => :static
|
||||
}.merge(config)
|
||||
options[:type] = options[:type].to_sym
|
||||
return options
|
||||
end
|
||||
|
||||
return {
|
||||
:type => :dhcp,
|
||||
:use_dhcp_assigned_default_route => config[:use_dhcp_assigned_default_route]
|
||||
|
|
Loading…
Reference in New Issue