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:
Jose Luis Duran 2018-12-01 10:07:40 -02:00
parent e4a3eb5d14
commit 5ab323733f
No known key found for this signature in database
GPG Key ID: 8BE8242E460537F4
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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