vmconfig_update_net: do not call vm_deviceplug() if hotplug == 0

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
Dietmar Maurer 2014-11-25 12:07:02 +01:00
parent a05cff86e7
commit 38c590d9f6

View File

@ -3808,10 +3808,16 @@ sub vmconfig_update_net {
PVE::Network::tap_unplug($iface);
PVE::Network::tap_plug($iface, $newnet->{bridge}, $newnet->{tag}, $newnet->{firewall});
}
return 1;
}
}
if ($conf->{hotplug}) {
vm_deviceplug($storecfg, $conf, $vmid, $opt, $newnet);
} else {
die "skip\n";
}
}
sub vmconfig_update_disk {