mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-10-04 22:53:08 +00:00
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 <d.limbeck@proxmox.com>
This commit is contained in:
parent
56cd7f6981
commit
c701be3243
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user