[pve-devel] [PATCH qemu-server] use safe_string_ne for trunks
Wolfgang Bumiller
w.bumiller at proxmox.com
Mon Jan 18 09:09:05 CET 2016
It's a list of numbers, not just one.
---
PVE/QemuServer.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 2b225ac..d72ed6d 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -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});
--
2.1.4
More information about the pve-devel
mailing list