]> git.proxmox.com Git - qemu-server.git/commitdiff
use safe_string_ne for trunks
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 18 Jan 2016 08:09:05 +0000 (09:09 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 18 Jan 2016 10:00:28 +0000 (11:00 +0100)
It's a list of numbers, not just one.

PVE/QemuServer.pm

index 2b225ac6710868197b6e143f065fd204590d646b..d72ed6d02793b170fcd658cfe8f8ce3a6815959a 100644 (file)
@@ -4340,7 +4340,7 @@ sub vmconfig_update_net {
 
            if (&$safe_string_ne($oldnet->{bridge}, $newnet->{bridge}) ||
                &$safe_num_ne($oldnet->{tag}, $newnet->{tag}) ||
-               &$safe_num_ne($oldnet->{trunks}, $newnet->{trunks}) ||
+               &$safe_string_ne($oldnet->{trunks}, $newnet->{trunks}) ||
                &$safe_num_ne($oldnet->{firewall}, $newnet->{firewall})) {
                PVE::Network::tap_unplug($iface);
                PVE::Network::tap_plug($iface, $newnet->{bridge}, $newnet->{tag}, $newnet->{firewall}, $newnet->{trunks});