]> git.proxmox.com Git - pve-network.git/commitdiff
ipam : pve: don't register hostname/description
authorAlexandre Derumier <aderumier@odiso.com>
Thu, 3 Dec 2020 09:19:39 +0000 (10:19 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 18 Dec 2020 16:58:22 +0000 (17:58 +0100)
we already have this informations in vm/ct config,
and we are limited in space in pmxcfs

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
PVE/Network/SDN/Ipams/PVEPlugin.pm

index a2e7d86a91d69310708952f390ca8bf9f1ec26b0..49252745230c08ce032a5b860a0c49abacaae0e2 100644 (file)
@@ -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);
     });