]> git.proxmox.com Git - qemu-server.git/commitdiff
fix #1865: CloudInit doesn't add IPv6
authorDavid Limbeck <d.limbeck@proxmox.com>
Wed, 22 Aug 2018 09:35:49 +0000 (11:35 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 22 Aug 2018 10:40:26 +0000 (12:40 +0200)
Acked-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
PVE/QemuServer/Cloudinit.pm

index e90e1c037aa1239cb7d97ccc5ad32ca9e635787f..53f1de9b2428719121a35e4e4e12c17cf3709642 100644 (file)
@@ -341,7 +341,7 @@ sub nocloud_network {
            if ($ip eq 'dhcp') {
                $content .= "${i}- type: dhcp6\n";
            } else {
            if ($ip eq 'dhcp') {
                $content .= "${i}- type: dhcp6\n";
            } else {
-               $content .= "${i}- type: static6\n"
+               $content .= "${i}- type: static\n"
                       . "${i}  address: $ip\n";
                if (defined(my $gw = $ipconfig->{gw6})) {
                    $content .= "${i}  gateway: $gw\n";
                       . "${i}  address: $ip\n";
                if (defined(my $gw = $ipconfig->{gw6})) {
                    $content .= "${i}  gateway: $gw\n";