Project

General

Profile

Actions

Bug #38524

closed

preseed network setup gateway differs between IPv4 and IPv6

Added by Bastian Blank 7 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Templates
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

The handling of gateways differs between IPv4 and IPv6 in the template snippet `preseed_network_setup`.
For IPv4, it writes a gateway entry only for the primary interface.
For IPv6, it writes a gateway for all interfaces.

However the test in the template is also wrong (in Ruby an empty string is true) and for IPv6 it writes an empty address, which is a parse error.

<% if host_subnet6.gateway -%>
    gateway <%= host_subnet6.gateway %>
<% end -%>

IPv4 and IPv6 should be configured equivalent by Foreman, aka gateway only on the primary network until it can setup source routing required for multiple default routes.

Actions #1

Updated by The Foreman Bot 7 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/10583 added
Actions #2

Updated by The Foreman Bot 7 months ago

  • Fixed in Releases 3.16.0 added
Actions #3

Updated by Bastian Blank 7 months ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF