[pve-devel] [RFC qemu-server 5/6] do not remove DHCP mapping on VM stop
Stefan Lendl
s.lendl at proxmox.com
Fri Oct 27 13:29:59 CEST 2023
Signed-off-by: Stefan Lendl <s.lendl at proxmox.com>
---
PVE/QemuServer.pm | 2 --
vm-network-scripts/pve-bridgedown | 4 ----
2 files changed, 6 deletions(-)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 6c1e463..710259b 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -6143,8 +6143,6 @@ sub vm_stop_cleanup {
cleanup_pci_devices($vmid, $conf);
- cleanup_sdn_dhcp($vmid, $conf);
-
vmconfig_apply_pending($vmid, $conf, $storecfg) if $apply_pending_changes;
};
warn $@ if $@; # avoid errors - just warn
diff --git a/vm-network-scripts/pve-bridgedown b/vm-network-scripts/pve-bridgedown
index a220660..8d58947 100755
--- a/vm-network-scripts/pve-bridgedown
+++ b/vm-network-scripts/pve-bridgedown
@@ -26,10 +26,6 @@ my $conf = PVE::QemuConfig->load_config($vmid);
my $netconf = $conf->{$netid};
my $net = PVE::QemuServer::parse_net($netconf);
-if ($have_sdn) {
- PVE::Network::SDN::Dhcp::remove_mapping($net->{bridge}, $net->{macaddr});
-}
-
PVE::Network::tap_unplug($iface);
exit 0;
--
2.41.0
More information about the pve-devel
mailing list