Skip to content

Commit

Permalink
Replace deprecated IPForward with IPv{4,6}Forwarding
Browse files Browse the repository at this point in the history
  • Loading branch information
hashworks committed Jul 12, 2024
1 parent e69f10b commit add54d8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion spec/fixtures/test_files/peers.network
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ Name=as1234
[Network]
DHCP=no
IPv6AcceptRA=false
IPForward=yes
IPv4Forwarding=yes
IPv6Forwarding=yes

# for networkd >= 244 KeepConfiguration stops networkd from
# removing routes on this interface when restarting
Expand Down
3 changes: 2 additions & 1 deletion spec/fixtures/test_files/peers_routes.network
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ Name=as1234
[Network]
DHCP=no
IPv6AcceptRA=false
IPForward=yes
IPv4Forwarding=yes
IPv6Forwarding=yes

# for networkd >= 244 KeepConfiguration stops networkd from
# removing routes on this interface when restarting
Expand Down
3 changes: 2 additions & 1 deletion templates/network.epp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ Name=<%= $interface %>
[Network]
DHCP=no
IPv6AcceptRA=false
IPForward=yes
IPv4Forwarding=yes
IPv6Forwarding=yes

# for networkd >= 244 KeepConfiguration stops networkd from
# removing routes on this interface when restarting
Expand Down

0 comments on commit add54d8

Please sign in to comment.