add use_dhcp_assigned_default_route setting to allow for dhcp bridged interfaces which have a default route assigned by dhcp

This commit is contained in:
Justin Lynn 2012-04-05 09:21:09 -07:00
parent 00c4193b43
commit bf3d3b0245
2 changed files with 4 additions and 1 deletions

View File

@ -315,7 +315,8 @@ module Vagrant
:adapter => nil,
:mac => nil,
:bridge => nil,
:auto_config => true
:auto_config => true,
:use_dhcp_assigned_default_route => false
}.merge(options)
end

View File

@ -2,5 +2,7 @@
# The contents below are automatically generated by Vagrant. Do not modify.
auto eth<%= options[:interface] %>
iface eth<%= options[:interface] %> inet dhcp
<% unless options[:use_dhcp_assigned_default_route] %>
post-up route del default dev $IFACE
<% end %>
#VAGRANT-END