* [PATCH pve-container] lxc: pass hostname correctly when giving up an ip address
@ 2026-08-19 13:34 Hannes Laimer
0 siblings, 0 replies; only message in thread
From: Hannes Laimer @ 2026-08-19 13:34 UTC (permalink / raw)
To: pve-devel
A container has no `name`, only a `hostname`. This led to left behind
DNS records.
Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
---
src/PVE/LXC/Config.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PVE/LXC/Config.pm b/src/PVE/LXC/Config.pm
index 7c81834..41dd22f 100644
--- a/src/PVE/LXC/Config.pm
+++ b/src/PVE/LXC/Config.pm
@@ -1850,7 +1850,7 @@ sub vmconfig_apply_pending {
PVE::Network::SDN::Vnets::del_ips_from_mac(
$old_net->{bridge},
$old_net->{hwaddr},
- $conf->{name},
+ $conf->{hostname},
);
PVE::Network::SDN::Vnets::add_next_free_cidr(
$net->{bridge},
--
2.47.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-19 13:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-19 13:34 [PATCH pve-container] lxc: pass hostname correctly when giving up an ip address Hannes Laimer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.