Project

General

Profile

Actions

Bug #37409

open

preseed_netplan_generic_interface generates invalid config for non-DHCP6 subnet

Added by Dan Ports 27 days ago. Updated 27 days ago.

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

Description

When provisioning an Ubuntu host via autoinstall, the generated userdata template has an invalid netplan config when the subnet is not using DHCPv6, e.g.:

  network:
    version: 2
    ethernets:
      ens160:
        dhcp4: true
        dhcp6:

This is caused by @dhcp6 being nil and rendering to "" rather than "false" in preseed_netplan_generic_interface.

(Simple) PR to follow.

Actions

Also available in: Atom PDF