fix #3314: IPv6 requires type 'static6'

A fix was also provided in bugzilla by user wsapplegate:
https://bugzilla.proxmox.com/show_bug.cgi?id=3314

Tested on Ubuntu 20.04, CentOS 8 and Debian 10.

Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
This commit is contained in:
Mira Limbeck 2021-03-29 14:07:14 +02:00 committed by Thomas Lamprecht
parent 190c846141
commit 617a864ac2

View File

@ -452,7 +452,7 @@ sub nocloud_network {
# SLAAC is not supported by cloud-init, this fallback should work with an up-to-date netplan at least
$content .= "${i}- type: dhcp6\n";
} else {
$content .= "${i}- type: static\n"
$content .= "${i}- type: static6\n"
. "${i} address: '$ip'\n";
if (defined(my $gw = $ipconfig->{gw6})) {
$content .= "${i} gateway: '$gw'\n";