From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id EA34C1FF0C0 for ; Wed, 04 Nov 2026 10:56:41 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 3DC2C2162B; Wed, 04 Nov 2026 10:56:07 +0100 (CET) From: Hannes Laimer To: pve-devel@lists.proxmox.com Subject: [PATCH pve-manager v5 12/13] ui: sdn: ipam: add the zone namespace options Date: Wed, 4 Nov 2026 10:55:19 +0100 Message-ID: <20261104095520.398544-13-h.laimer@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261104095520.398544-1-h.laimer@proxmox.com> References: <20261104095520.398544-1-h.laimer@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1793786139080 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.314 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: RZN3J4HAP337JDECPVKZDTQJ4NBKXVHP X-Message-ID-Hash: RZN3J4HAP337JDECPVKZDTQJ4NBKXVHP X-MailFrom: h.laimer@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The NetBox and phpIPAM dialogs show both options in an advanced section. The namespace per zone is off by default, and the namespace prefix is pve when left empty. Signed-off-by: Hannes Laimer --- www/manager6/sdn/ipams/Base.js | 25 +++++++++++++++++++++++++ www/manager6/sdn/ipams/NetboxEdit.js | 2 ++ www/manager6/sdn/ipams/PhpIpamEdit.js | 2 ++ 3 files changed, 29 insertions(+) diff --git a/www/manager6/sdn/ipams/Base.js b/www/manager6/sdn/ipams/Base.js index 1f6eab296c20..e7b607497e25 100644 --- a/www/manager6/sdn/ipams/Base.js +++ b/www/manager6/sdn/ipams/Base.js @@ -15,6 +15,31 @@ Ext.define('PVE.panel.SDNIpamBase', { return values; }, + // the external IPAMs keep each zone's subnets in a namespace of their + // own once the option is on, named with the prefix + zoneNamespaceFields: function () { + let me = this; + + return [ + { + xtype: 'proxmoxcheckbox', + name: 'zone-namespaces', + fieldLabel: gettext('Namespace per Zone'), + uncheckedValue: null, + checked: false, + deleteEmpty: !me.isCreate, + }, + { + xtype: 'proxmoxtextfield', + name: 'zone-namespace-prefix', + fieldLabel: gettext('Namespace Prefix'), + emptyText: 'pve', + skipEmptyText: true, + deleteEmpty: !me.isCreate, + }, + ]; + }, + initComponent: function () { var me = this; diff --git a/www/manager6/sdn/ipams/NetboxEdit.js b/www/manager6/sdn/ipams/NetboxEdit.js index 17971026c93e..8183aa5a5618 100644 --- a/www/manager6/sdn/ipams/NetboxEdit.js +++ b/www/manager6/sdn/ipams/NetboxEdit.js @@ -53,6 +53,8 @@ Ext.define('PVE.sdn.ipams.NetboxInputPanel', { }, ]; + me.advancedColumnB = me.zoneNamespaceFields(); + me.callParent(); }, }); diff --git a/www/manager6/sdn/ipams/PhpIpamEdit.js b/www/manager6/sdn/ipams/PhpIpamEdit.js index b28232ab67b7..b74da37596a2 100644 --- a/www/manager6/sdn/ipams/PhpIpamEdit.js +++ b/www/manager6/sdn/ipams/PhpIpamEdit.js @@ -58,6 +58,8 @@ Ext.define('PVE.sdn.ipams.PhpIpamInputPanel', { }, ]; + me.advancedColumnB = me.zoneNamespaceFields(); + me.callParent(); }, }); -- 2.47.3