public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Alexandre Derumier <aderumier@odiso.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH pve-network 4/4] ipam : pve: don't register hostname/description
Date: Mon, 30 Nov 2020 12:35:04 +0100	[thread overview]
Message-ID: <20201130113505.4014340-5-aderumier@odiso.com> (raw)
In-Reply-To: <20201130113505.4014340-1-aderumier@odiso.com>

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 | 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




      parent reply	other threads:[~2020-11-30 11:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-30 11:35 [pve-devel] [PATCH pve-network 0/4] various cleanups Alexandre Derumier
2020-11-30 11:35 ` [pve-devel] [PATCH pve-network 1/4] evpn: frr: use datacenter default profile (lower timeouts) Alexandre Derumier
2020-11-30 11:35 ` [pve-devel] [PATCH pve-network 2/4] get_local_vnets: display vnet alias in comments Alexandre Derumier
2020-11-30 11:35 ` [pve-devel] [PATCH pve-network 3/4] use canonical ipv6 address (RFC 5952) everywhere Alexandre Derumier
2020-11-30 11:35 ` Alexandre Derumier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201130113505.4014340-5-aderumier@odiso.com \
    --to=aderumier@odiso.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal