we already have this informations in vm/ct config, and we are limited in space in pmxcfs
Signed-off-by: Alexandre Derumier <aderum...@odiso.com> --- PVE/Network/SDN/Ipams/PVEPlugin.pm | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/PVE/Network/SDN/Ipams/PVEPlugin.pm b/PVE/Network/SDN/Ipams/PVEPlugin.pm index a2e7d86..4925274 100644 --- a/PVE/Network/SDN/Ipams/PVEPlugin.pm +++ b/PVE/Network/SDN/Ipams/PVEPlugin.pm @@ -98,10 +98,7 @@ sub add_ip { die "IP '$ip' already exist\n" if defined($dbsubnet->{ips}->{$ip}); - $dbsubnet->{ips}->{$ip} = { - hostname => $hostname, - description => $description, - }; + $dbsubnet->{ips}->{$ip} = {}; write_db($db); }); @@ -144,10 +141,7 @@ sub add_next_freeip { die "can't find free ip in subnet '$cidr'\n" if !$freeip; - $dbsubnet->{ips}->{$freeip} = { - hostname => $hostname, - description => $description, - }; + $dbsubnet->{ips}->{$freeip} = {}; write_db($db); }); -- 2.20.1 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel