mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-06-21 19:58:20 +00:00
vmconfig_update_net: do not call vm_deviceplug() if hotplug == 0
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
parent
a05cff86e7
commit
38c590d9f6
@ -3808,10 +3808,16 @@ sub vmconfig_update_net {
|
|||||||
PVE::Network::tap_unplug($iface);
|
PVE::Network::tap_unplug($iface);
|
||||||
PVE::Network::tap_plug($iface, $newnet->{bridge}, $newnet->{tag}, $newnet->{firewall});
|
PVE::Network::tap_plug($iface, $newnet->{bridge}, $newnet->{tag}, $newnet->{firewall});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
vm_deviceplug($storecfg, $conf, $vmid, $opt, $newnet);
|
if ($conf->{hotplug}) {
|
||||||
|
vm_deviceplug($storecfg, $conf, $vmid, $opt, $newnet);
|
||||||
|
} else {
|
||||||
|
die "skip\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sub vmconfig_update_disk {
|
sub vmconfig_update_disk {
|
||||||
|
Loading…
Reference in New Issue
Block a user