Merge pull request #9261 from vStone/bugfix/gentoo-static-ip-with-ifplugd
Disable if/netplugd when setting up a static ip on a gentoo guest using openrc.
This commit is contained in:
commit
78f317f55a
|
@ -1,6 +1,7 @@
|
|||
#VAGRANT-BEGIN
|
||||
# The contents below are automatically generated by Vagrant. Do not modify.
|
||||
config_<%= options[:device] %>=("<%= options[:ip] %> netmask <%= options[:netmask] %>")
|
||||
modules_<%= options[:device] %>=("!plug")
|
||||
<% if options[:gateway] -%>
|
||||
gateways_<%= options[:device] %>="<%= options[:gateway] %>"
|
||||
<% end -%>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#VAGRANT-BEGIN
|
||||
# The contents below are automatically generated by Vagrant. Do not modify.
|
||||
config_<%= options[:device] %>="<%= options[:ip] %>/<%= options[:netmask] %>"
|
||||
modules_<%= options[:device] %>="!plug"
|
||||
<% if options[:gateway] -%>
|
||||
gateways_<%= options[:device] %>="<%= options[:gateway] %>"
|
||||
<% end -%>
|
||||
|
|
|
@ -15,6 +15,7 @@ describe "templates/guests/gentoo/network_static" do
|
|||
#VAGRANT-BEGIN
|
||||
# The contents below are automatically generated by Vagrant. Do not modify.
|
||||
config_en0=("1.1.1.1 netmask 255.255.0.0")
|
||||
modules_en0=("!plug")
|
||||
#VAGRANT-END
|
||||
EOH
|
||||
end
|
||||
|
@ -30,6 +31,7 @@ describe "templates/guests/gentoo/network_static" do
|
|||
#VAGRANT-BEGIN
|
||||
# The contents below are automatically generated by Vagrant. Do not modify.
|
||||
config_en0=("1.1.1.1 netmask 255.255.0.0")
|
||||
modules_en0=("!plug")
|
||||
gateways_en0="1.2.3.4"
|
||||
#VAGRANT-END
|
||||
EOH
|
||||
|
|
Loading…
Reference in New Issue