From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 861A51FF187 for ; Mon, 22 Sep 2025 11:19:26 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id B638E15E71; Mon, 22 Sep 2025 11:19:53 +0200 (CEST) To: pve-devel@lists.proxmox.com Date: Mon, 22 Sep 2025 11:19:38 +0200 MIME-Version: 1.0 Message-ID: List-Id: Proxmox VE development discussion List-Post: From: Lou Lecrivain via pve-devel Precedence: list Cc: lou.lecrivain@orange.fr X-Mailman-Version: 2.1.29 X-BeenThere: pve-devel@lists.proxmox.com List-Subscribe: , List-Unsubscribe: , List-Archive: Reply-To: Proxmox VE development discussion List-Help: Subject: [pve-devel] [PATCH pve-network v6 0/2] ipam plugin for nautobot >= 2.4.14 Content-Type: multipart/mixed; boundary="===============0591294821520994499==" Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" --===============0591294821520994499== Content-Type: message/rfc822 Content-Disposition: inline Return-Path: X-Original-To: pve-devel@lists.proxmox.com Delivered-To: pve-devel@lists.proxmox.com 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 BE970D35D3 for ; Mon, 22 Sep 2025 11:19:51 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id A892B15E3A for ; Mon, 22 Sep 2025 11:19:51 +0200 (CEST) Received: from smtp.smtpout.orange.fr (smtp-72.smtpout.orange.fr [80.12.242.72]) (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 ; Mon, 22 Sep 2025 11:19:50 +0200 (CEST) Received: from localhost ([176.139.8.107]) by smtp.orange.fr with ESMTPA id 0chzvJS78bGTt0chzv7trZ; Mon, 22 Sep 2025 11:19:43 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orange.fr; s=t20230301; t=1758532784; bh=wgK4b/btTFYa8Q0cz947mJL+mcEMY9D2eAz2N4IzliY=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=YPCQip6ML9xMS9wXm+kNjGuAJtLlfU8RlaYqkrV58mDBSYuegs+GRVgd525O/fGNg gYIsSSOmMi8Puu+z2Z2JAe8m9x3yPNzeqE3DZ7VqhBpHJcDnI3IvUcAvpEt7S9FCxj 4jPuKJruWP80i4kQNqSVgz6GDvSGEFiKokBIxo/hA/02/MZipm0I9YYRkGF/0KBXLm OwO2wYR7BtfNWa83Iplmbmy4EAh1D7djA1emzP9aX8F9fipdTWmHJzrbgXhCDrYH2p q7sfLRhIzseVJIQZIG2PanD9ZkY0XJOor/r6/MKqCLr7lgYUqf8WPR2KPitQ6CyZo2 0KlP6HTYSualg== X-ME-Helo: localhost X-ME-Auth: bG91LmxlY3JpdmFpbkBvcmFuZ2UuZnI= X-ME-Date: Mon, 22 Sep 2025 11:19:44 +0200 X-ME-IP: 176.139.8.107 From: lou.lecrivain@orange.fr To: pve-devel@lists.proxmox.com Subject: [PATCH pve-network v6 0/2] ipam plugin for nautobot >= 2.4.14 Date: Mon, 22 Sep 2025 11:19:38 +0200 Message-ID: <20250922091942.4715-1-lou.lecrivain@orange.fr> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.688 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain DMARC_PASS -0.1 DMARC pass policy FREEMAIL_FROM 0.001 Sender email is commonly abused enduser mail provider RCVD_IN_DNSWL_NONE -0.0001 Sender listed at https://www.dnswl.org/, no trust RCVD_IN_MSPIKE_H5 -1 Excellent reputation (+5) RCVD_IN_MSPIKE_WL -0.01 Mailspike good senders SPF_HELO_PASS -0.001 SPF: HELO matches SPF record SPF_PASS -0.001 SPF: sender matches SPF record From: Lou Lecrivain Dear maintainers, Following last review rounds of Nautobot IPAM plugin, we concluded that it was not possible to have it fully working as expected due to lack of IP range support in Nautobot IPAM. In the meantime, I was able to upstream a PR to Nautobot for allocating IPs within a range, which was released with nautobot 2.4.14. https://github.com/nautobot/nautobot/releases/tag/v2.4.14 This (rebased and edited) version of the Nautobot IPAM plugin includes the necessary logic to use the new allocation scheme. Please note that I also had to include a version check, as this is incompatible with previous versions of Nautobot. BR Lou Lecrivain (2): ipam: add Nautobot plugin ipam: add test cases for nautobot plugin src/PVE/API2/Network/SDN/Ipams.pm | 1 + src/PVE/Network/SDN/Ipams.pm | 3 + src/PVE/Network/SDN/Ipams/Makefile | 2 +- src/PVE/Network/SDN/Ipams/NautobotPlugin.pm | 460 ++++++++++++++++++ src/test/ipams/nautobot/expected.add_ip | 11 + .../ipams/nautobot/expected.add_ip_notgateway | 11 + .../ipams/nautobot/expected.add_next_freeip | 11 + src/test/ipams/nautobot/expected.add_subnet | 11 + src/test/ipams/nautobot/expected.del_ip | 11 + src/test/ipams/nautobot/expected.update_ip | 11 + src/test/ipams/nautobot/ipam_config | 24 + src/test/ipams/nautobot/sdn_config | 20 + src/test/ipams/netbox/ipam_config | 8 +- src/test/ipams/phpipam/ipam_config | 8 +- 14 files changed, 589 insertions(+), 3 deletions(-) create mode 100644 src/PVE/Network/SDN/Ipams/NautobotPlugin.pm create mode 100644 src/test/ipams/nautobot/expected.add_ip create mode 100644 src/test/ipams/nautobot/expected.add_ip_notgateway create mode 100644 src/test/ipams/nautobot/expected.add_next_freeip create mode 100644 src/test/ipams/nautobot/expected.add_subnet create mode 100644 src/test/ipams/nautobot/expected.del_ip create mode 100644 src/test/ipams/nautobot/expected.update_ip create mode 100644 src/test/ipams/nautobot/ipam_config create mode 100644 src/test/ipams/nautobot/sdn_config -- 2.47.3 --===============0591294821520994499== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel --===============0591294821520994499==--