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 EF8591FF187 for ; Mon, 22 Sep 2025 11:19:32 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id B20ED1607B; Mon, 22 Sep 2025 11:20:01 +0200 (CEST) To: pve-devel@lists.proxmox.com Date: Mon, 22 Sep 2025 11:19:42 +0200 In-Reply-To: <20250922091942.4715-1-lou.lecrivain@orange.fr> References: <20250922091942.4715-1-lou.lecrivain@orange.fr> 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-manager v6] ipam: add UI dialog for nautobot ipam plugin Content-Type: multipart/mixed; boundary="===============4085280057054520929==" Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" --===============4085280057054520929== 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 52E70D35DB for ; Mon, 22 Sep 2025 11:20:00 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 212A31603A for ; Mon, 22 Sep 2025 11:20:00 +0200 (CEST) Received: from smtp.smtpout.orange.fr (smtp-17.smtpout.orange.fr [80.12.242.17]) (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:59 +0200 (CEST) Received: from localhost ([176.139.8.107]) by smtp.orange.fr with ESMTPA id 0ci8vzAyrtbSa0ci8vCnIh; Mon, 22 Sep 2025 11:19:52 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orange.fr; s=t20230301; t=1758532792; bh=sQuw+3VhQ5IipmaVFUSgNv2C20XTaXf9fXkuOYM/q0c=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=M2DMXwquYdNz9dYwMhMxa85L6ceXNA8BImEogdjXTSLsBcytdi+NLCJsC22iMbXNx bYUsfeXC5Z5T9V9LFlMY5IN4k3kuFjgzlRujUv9ledpmtEwU4Ud4qkOtGtsWrmz8yH MLMQbx8g8AN6Hjla01y4/gdH+4RWHB0n5jP8aGYbycrzdOXusI7lK6pVABxBQx7Ne3 uiBKbs0FtV9RIYdFJ9fym35FnPsHOAwGGLEUEwGb+qdmLA3UA7vvqctS1TIJY6WB12 uExbu2wq4d19uOHwRTQpK0mtdNHulxu56JacSqAL3sVV5DjAF2zQchPoaHme3qb2uf N9S9M2iyufoBw== X-ME-Helo: localhost X-ME-Auth: bG91LmxlY3JpdmFpbkBvcmFuZ2UuZnI= X-ME-Date: Mon, 22 Sep 2025 11:19:52 +0200 X-ME-IP: 176.139.8.107 From: lou.lecrivain@orange.fr To: pve-devel@lists.proxmox.com Subject: [PATCH pve-manager v6] ipam: add UI dialog for nautobot ipam plugin Date: Mon, 22 Sep 2025 11:19:42 +0200 Message-ID: <20250922091942.4715-5-lou.lecrivain@orange.fr> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20250922091942.4715-1-lou.lecrivain@orange.fr> References: <20250922091942.4715-1-lou.lecrivain@orange.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.110 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_H3 -0.01 Good reputation (+3) 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 Co-authored-by: Jonatan Crystall Co-authored-by: Lou Lecrivain Signed-off-by: Hannes Duerr Signed-off-by: Lou Lecrivain --- www/manager6/Makefile | 1 + www/manager6/Utils.js | 5 +++ www/manager6/sdn/ipams/NautobotEdit.js | 62 ++++++++++++++++++++++++++ 3 files changed, 68 insertions(+) create mode 100644 www/manager6/sdn/ipams/NautobotEdit.js diff --git a/www/manager6/Makefile b/www/manager6/Makefile index 85f9268d..43ecbdba 100644 --- a/www/manager6/Makefile +++ b/www/manager6/Makefile @@ -301,6 +301,7 @@ JSSRC= \ sdn/IpamView.js \ sdn/ipams/Base.js \ sdn/ipams/NetboxEdit.js \ + sdn/ipams/NautobotEdit.js \ sdn/ipams/PVEIpamEdit.js \ sdn/ipams/PhpIpamEdit.js \ sdn/DnsView.js \ diff --git a/www/manager6/Utils.js b/www/manager6/Utils.js index c48ee0b2..851a5267 100644 --- a/www/manager6/Utils.js +++ b/www/manager6/Utils.js @@ -939,6 +939,11 @@ Ext.define('PVE.Utils', { ipanel: 'NetboxInputPanel', faIcon: 'th', }, + nautobot: { + name: 'Nautobot', + ipanel: 'NautobotInputPanel', + faIcon: 'th', + }, phpipam: { name: 'PhpIpam', ipanel: 'PhpIpamInputPanel', diff --git a/www/manager6/sdn/ipams/NautobotEdit.js b/www/manager6/sdn/ipams/NautobotEdit.js new file mode 100644 index 00000000..46162d98 --- /dev/null +++ b/www/manager6/sdn/ipams/NautobotEdit.js @@ -0,0 +1,62 @@ +Ext.define('PVE.sdn.ipams.NautobotInputPanel', { + extend: 'PVE.panel.SDNIpamBase', + + onlineHelp: 'pvesdn_ipam_plugin_nautobot', + + onGetValues: function(values) { + var me = this; + + if (me.isCreate) { + values.type = me.type; + } else { + delete values.ipam; + } + + return values; + }, + + initComponent: function() { + var me = this; + + me.column1 = [ + { + xtype: me.isCreate ? 'textfield' : 'displayfield', + name: 'ipam', + maxLength: 10, + value: me.zone || '', + fieldLabel: 'ID', + allowBlank: false, + }, + { + xtype: 'textfield', + name: 'token', + fieldLabel: gettext('Token'), + allowBlank: false, + }, + ]; + me.column2 = [ + { + xtype: 'textfield', + name: 'url', + fieldLabel: gettext('URL'), + allowBlank: false, + }, + { + xtype: 'textfield', + name: 'namespace', + fieldLabel: gettext('Namespace'), + allowBlank: false, + }, + ]; + me.columnB = [ + { + xtype: 'pmxFingerprintField', + name: 'fingerprint', + value: me.isCreate ? null : undefined, + deleteEmpty: !me.isCreate, + }, + ]; + + me.callParent(); + }, +}); -- 2.47.3 --===============4085280057054520929== 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 --===============4085280057054520929==--