From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 2453EA0792 for ; Thu, 9 Nov 2023 01:25:56 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 06645E5C1 for ; Thu, 9 Nov 2023 01:25:26 +0100 (CET) Received: from bastionodiso.odiso.net (bastionodiso.odiso.net [IPv6:2a0a:1580:2000::2d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Thu, 9 Nov 2023 01:25:20 +0100 (CET) Received: from kvmformation3.odiso.net (formationkvm3.odiso.net [10.3.94.12]) by bastionodiso.odiso.net (Postfix) with ESMTP id 430F88106; Thu, 9 Nov 2023 01:25:13 +0100 (CET) Received: by kvmformation3.odiso.net (Postfix, from userid 0) id 1DD2B135A92; Thu, 9 Nov 2023 01:25:13 +0100 (CET) From: Alexandre Derumier To: pve-devel@lists.proxmox.com Date: Thu, 9 Nov 2023 01:25:07 +0100 Message-Id: <20231109002510.470617-1-aderumier@odiso.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.020 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy HEADER_FROM_DIFFERENT_DOMAINS 0.25 From and EnvelopeFrom 2nd level mail domains are different KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment KAM_LAZY_DOMAIN_SECURITY 1 Sending domain does not have any anti-forgery methods SPF_NONE 0.001 SPF: sender does not publish an SPF Record T_SCC_BODY_TEXT_LINE -0.01 - T_SPF_HELO_TEMPERROR 0.01 SPF: test of HELO record failed (temperror) URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [plugin.pm, simpleplugin.pm, sdn.pm, subnets.pm, subnetplugin.pm, dnsmasq.pm, zones.pm, pveplugin.pm, dhcp.pm, vnets.pm] Subject: [pve-devel] [WIP pve-network 0/3] dhcp changes X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Nov 2023 00:25:56 -0000 Here my current work, based on wip2 Stefan Hanreich It's not yet completed, I'll try to send a more complete serie next week - patch1: remove need of dhcp.cfg, and declare dhcp plugin type in zone directly. each zone is a dhcpserver , that's make sense, as 2 zones can have same subnets in differents vrf. - patch2/3: need more patches, but my idea is to split the ipam add|del ip && the dhcp server ip-mac reservation file genreation. at vm|nic create : find a free ip in dhcp range and register ip/mac in ipam at vm start : search ip from mac in ipam, and add add it to local dhcp reversation file also reuse currently vnet add_next_free_ip, as it's already plugged with dns too. Alexandre Derumier (3): define dhcpplugin in zone dhcp : add|del_ip_mapping: only add|del dhcp reservervation vnet|subnet: add_next_free_ip : implement dhcprange ipam search src/PVE/API2/Network/SDN/Zones.pm | 1 + src/PVE/Network/SDN.pm | 4 +- src/PVE/Network/SDN/Dhcp.pm | 166 ++++++---------------- src/PVE/Network/SDN/Dhcp/Dnsmasq.pm | 32 ++--- src/PVE/Network/SDN/Dhcp/Plugin.pm | 28 +--- src/PVE/Network/SDN/Ipams/PVEPlugin.pm | 12 +- src/PVE/Network/SDN/Ipams/Plugin.pm | 7 + src/PVE/Network/SDN/SubnetPlugin.pm | 4 - src/PVE/Network/SDN/Subnets.pm | 22 ++- src/PVE/Network/SDN/Vnets.pm | 4 +- src/PVE/Network/SDN/Zones/SimplePlugin.pm | 7 +- 11 files changed, 106 insertions(+), 181 deletions(-) -- 2.39.2