mirror of
git://git.proxmox.com/git/pve-network.git
synced 2025-04-30 11:27:11 +02:00
fix: register details in pve ipam db for add_next_freeip
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>
This commit is contained in:
parent
8794d57125
commit
5a050f4d4c
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue