[pve-devel] [PATCH pve-container] sdn: fix wrong vmid parameter in prestart-hook

Stefan Hanreich s.hanreich at proxmox.com
Tue Nov 21 18:50:16 CET 2023


Signed-off-by: Stefan Hanreich <s.hanreich at proxmox.com>
---
 src/lxc-pve-prestart-hook | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lxc-pve-prestart-hook b/src/lxc-pve-prestart-hook
index 4f5c7e2..6a60856 100755
--- a/src/lxc-pve-prestart-hook
+++ b/src/lxc-pve-prestart-hook
@@ -210,7 +210,7 @@ PVE::LXC::Tools::lxc_hook('pre-start', 'lxc', sub {
 	    next if $k !~ /^net(\d+)/;
 	    my $net = PVE::LXC::Config->parse_lxc_network($conf->{$k});
 	    next if $net->{type} ne 'veth';
-	    PVE::Network::SDN::Vnets::add_dhcp_mapping($net->{bridge}, $net->{hwaddr}, $conf->{vmid}, $conf->{hostname});
+	    PVE::Network::SDN::Vnets::add_dhcp_mapping($net->{bridge}, $net->{hwaddr}, $vmid, $conf->{hostname});
 	}
     }
 });
-- 
2.39.2





More information about the pve-devel mailing list