[pve-devel] [RFC qemu-server 1/5] don't remove dhcp mapping on stop
Alexandre Derumier
aderumier at odiso.com
Mon Nov 13 11:04:07 CET 2023
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
vm-network-scripts/pve-bridgedown | 19 -------------------
1 file changed, 19 deletions(-)
diff --git a/vm-network-scripts/pve-bridgedown b/vm-network-scripts/pve-bridgedown
index a220660..d18d88f 100755
--- a/vm-network-scripts/pve-bridgedown
+++ b/vm-network-scripts/pve-bridgedown
@@ -4,13 +4,6 @@ use strict;
use warnings;
use PVE::Network;
-my $have_sdn;
-eval {
- require PVE::Network::SDN::Zones;
- require PVE::Network::SDN::Dhcp;
- $have_sdn = 1;
-};
-
my $iface = shift;
die "no interface specified\n" if !$iface;
@@ -18,18 +11,6 @@ die "no interface specified\n" if !$iface;
die "got strange interface name '$iface'\n"
if $iface !~ m/^tap(\d+)i(\d+)$/;
-my $vmid = $1;
-my $netid = "net$2";
-
-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.39.2
More information about the pve-devel
mailing list