]> git.puffer.fish Git - mirror/pve-network.git/commitdiff
fix: register details in pve ipam db for add_next_freeip
authorLou Lecrivain <lou.lecrivain@wdz.de>
Fri, 13 Dec 2024 19:45:39 +0000 (20:45 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 7 Apr 2025 15:58:20 +0000 (17:58 +0200)
Signed-off-by: lou lecrivain <lou.lecrivain@wdz.de>
Tested-by: Stefan Hanreich <s.hanreich@proxmox.com>
Reviewed-by: Stefan Hanreich <s.hanreich@proxmox.com>
Tested-by: Hannes Duerr <h.duerr@proxmox.com>
Link: https://lore.proxmox.com/mailman.187.1734119229.332.pve-devel@lists.proxmox.com
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/Network/SDN/Ipams/PVEPlugin.pm

index 59ad4eae93debeb1cb7a17ad06c9438e6cbbb0cb..5e72e651a48056d2875b963e67ac2d728c98fce4 100644 (file)
@@ -201,7 +201,11 @@ sub add_next_freeip {
 
        die "can't find free ip in subnet '$cidr'\n" if !$freeip;
 
-       $dbsubnet->{ips}->{$freeip} = {};
+       $dbsubnet->{ips}->{$freeip} = {
+           mac => $mac,
+           hostname => $hostname,
+           vmid => $vmid
+       };
 
        write_db($db);
     });