Project

General

Profile

Actions

Bug #36181

open

pressed netplan provisioning template should treat no subnet consistently with finished template

Added by Damon Maria over 1 year ago. Updated over 1 year ago.

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

Description

In the preseed_default_finish.erb template no ipv4 subnet implies dhcp:

<% subnet = @host.subnet -%>
<% if @static -%>
  <%- dhcp = false -%>
<% elsif subnet.nil? -%>
  <%- dhcp = true -%>

The preseed_netplan_setup.erb template does not:

:dhcp => bond.subnet.nil? ? false : bond.subnet.dhcp_boot_mode?

This means a host setup with no subnet works everywhere else but creates an invalid netplan.

IMHO no subnet should imply dhcp.

Actions

Also available in: Atom PDF