From c701be32431405e7b45c966d65a1825594e44288 Mon Sep 17 00:00:00 2001 From: David Limbeck Date: Thu, 25 Oct 2018 11:32:45 +0200 Subject: [PATCH] fix #1959: add fallback for 'auto' previously set by SLAAC SLAAC previously set 'auto' which is not supported by nocloud network config. On an up-to-date Ubuntu this should work as it uses 'dhcp' for both dhcp and SLAAC. For others it was invalid anyway. Signed-off-by: David Limbeck --- PVE/QemuServer/Cloudinit.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PVE/QemuServer/Cloudinit.pm b/PVE/QemuServer/Cloudinit.pm index 53f1de9..5be820c 100644 --- a/PVE/QemuServer/Cloudinit.pm +++ b/PVE/QemuServer/Cloudinit.pm @@ -340,6 +340,9 @@ sub nocloud_network { if (defined(my $ip = $ipconfig->{ip6})) { if ($ip eq 'dhcp') { $content .= "${i}- type: dhcp6\n"; + } elsif ($ip eq 'auto') { + # 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" . "${i} address: $ip\n"; -- 2.39.2