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
|
||||
ifconfig_<%= options[:device] %>="inet <%= options[:ip] %> netmask <%= options[:netmask] %>"
|
||||
<% if options[:gateway] %>
|
||||
default_router="<%= options[:gateway] %>"
|
||||
defaultrouter="<%= options[:gateway] %>"
|
||||
<% end %>
|
||||
#VAGRANT-END
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#VAGRANT-BEGIN
|
||||
ifconfig_<%= options[:device] %>_ipv6="inet6 <%= options[:ip] %> prefixlen <%= options[:netmask] %>"
|
||||
<% if options[:gateway] %>
|
||||
ipv6_default_router="<%= options[:gateway] %>"
|
||||
ipv6_defaultrouter="<%= options[:gateway] %>"
|
||||
<% end %>
|
||||
#VAGRANT-END
|
||||
|
|
|
@ -28,7 +28,7 @@ describe "templates/guests/freebsd/network_static" do
|
|||
expect(result).to eq <<-EOH.gsub(/^ {6}/, "")
|
||||
#VAGRANT-BEGIN
|
||||
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
|
||||
EOH
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue