FreeBSD: Fix rcvar in network_static templates
The rcvar should be `defaultrouter` instead: https://www.freebsd.org/doc/handbook/network-routing.html
This commit is contained in:
parent
e4a3eb5d14
commit
5ab323733f
|
@ -1,6 +1,6 @@
|
||||||
#VAGRANT-BEGIN
|
#VAGRANT-BEGIN
|
||||||
ifconfig_<%= options[:device] %>="inet <%= options[:ip] %> netmask <%= options[:netmask] %>"
|
ifconfig_<%= options[:device] %>="inet <%= options[:ip] %> netmask <%= options[:netmask] %>"
|
||||||
<% if options[:gateway] %>
|
<% if options[:gateway] %>
|
||||||
default_router="<%= options[:gateway] %>"
|
defaultrouter="<%= options[:gateway] %>"
|
||||||
<% end %>
|
<% end %>
|
||||||
#VAGRANT-END
|
#VAGRANT-END
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#VAGRANT-BEGIN
|
#VAGRANT-BEGIN
|
||||||
ifconfig_<%= options[:device] %>_ipv6="inet6 <%= options[:ip] %> prefixlen <%= options[:netmask] %>"
|
ifconfig_<%= options[:device] %>_ipv6="inet6 <%= options[:ip] %> prefixlen <%= options[:netmask] %>"
|
||||||
<% if options[:gateway] %>
|
<% if options[:gateway] %>
|
||||||
ipv6_default_router="<%= options[:gateway] %>"
|
ipv6_defaultrouter="<%= options[:gateway] %>"
|
||||||
<% end %>
|
<% end %>
|
||||||
#VAGRANT-END
|
#VAGRANT-END
|
||||||
|
|
|
@ -28,7 +28,7 @@ describe "templates/guests/freebsd/network_static" do
|
||||||
expect(result).to eq <<-EOH.gsub(/^ {6}/, "")
|
expect(result).to eq <<-EOH.gsub(/^ {6}/, "")
|
||||||
#VAGRANT-BEGIN
|
#VAGRANT-BEGIN
|
||||||
ifconfig_eth1="inet 1.1.1.1 netmask 255.255.0.0"
|
ifconfig_eth1="inet 1.1.1.1 netmask 255.255.0.0"
|
||||||
default_router="1.2.3.4"
|
defaultrouter="1.2.3.4"
|
||||||
#VAGRANT-END
|
#VAGRANT-END
|
||||||
EOH
|
EOH
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue