]> git.proxmox.com Git - qemu-server.git/commitdiff
cloud-init: nocloud v1: use lower case mac address
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 6 Jun 2018 14:13:26 +0000 (16:13 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 7 Jun 2018 10:03:52 +0000 (12:03 +0200)
because cloud-init...

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
PVE/QemuServer/Cloudinit.pm

index b63d010e60d7a25d166d6812a99c474c706db43a..e90e1c037aa1239cb7d97ccc5ad32ca9e635787f 100644 (file)
@@ -316,7 +316,7 @@ sub nocloud_network {
        my $net = PVE::QemuServer::parse_net($conf->{$iface});
        my $ipconfig = PVE::QemuServer::parse_ipconfig($conf->{"ipconfig$id"});
 
-       my $mac = $net->{macaddr}
+       my $mac = lc($net->{macaddr})
            or die "network interface '$iface' has no mac address\n";
 
        $content .= "${i}- type: physical\n"