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 DCF701FF0BC for ; Mon, 16 Nov 2026 17:14:52 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 13D2E218BB; Mon, 16 Nov 2026 17:12:52 +0100 (CET) From: Gabriel Goller To: pve-devel@lists.proxmox.com Subject: [PATCH pve-manager v3 28/32] ui: sdn: expose EVPN zones as fabric VRFs Date: Mon, 16 Nov 2026 17:11:48 +0100 Message-ID: <20261116161154.343743-29-g.goller@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261116161154.343743-1-g.goller@proxmox.com> References: <20261116161154.343743-1-g.goller@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1794845521807 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.225 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: 4MIAYSKNSD32PCRALRGFE2ZCACEM24QW X-Message-ID-Hash: 4MIAYSKNSD32PCRALRGFE2ZCACEM24QW X-MailFrom: g.goller@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: Include EVPN zones in the fabric VRF selector, since they also provide a dedicated routing table. Signed-off-by: Gabriel Goller --- www/manager6/form/SDNZoneSelector.js | 11 +++++++++-- www/manager6/sdn/fabrics/FabricEdit.js | 5 ++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/www/manager6/form/SDNZoneSelector.js b/www/manager6/form/SDNZoneSelector.js index 56206043271a..05fd4be8b270 100644 --- a/www/manager6/form/SDNZoneSelector.js +++ b/www/manager6/form/SDNZoneSelector.js @@ -8,9 +8,12 @@ Ext.define( valueField: 'zone', displayField: 'zone', - // Only show simple zones which create a dedicated VRF. + // Only show zones which create a dedicated VRF. vrfOnly: false, + // Hide EVPN zones, e.g. for BGP fabrics, which cannot run in an EVPN zone VRF. + excludeEvpn: false, + initComponent: function () { var me = this; @@ -23,7 +26,11 @@ Ext.define( filters: me.vrfOnly ? [ function (record) { - return record.get('type') === 'simple' && !record.get('default-vrf'); + let type = record.get('type'); + return ( + (type === 'evpn' && !me.excludeEvpn) || + (type === 'simple' && record.get('dedicated-vrf')) + ); }, ] : [], diff --git a/www/manager6/sdn/fabrics/FabricEdit.js b/www/manager6/sdn/fabrics/FabricEdit.js index 69a865ecd7df..fdd6e2ef0ef2 100644 --- a/www/manager6/sdn/fabrics/FabricEdit.js +++ b/www/manager6/sdn/fabrics/FabricEdit.js @@ -60,10 +60,13 @@ Ext.define('PVE.sdn.Fabric.Fabric.Edit', { me.autoLoad = !me.isCreate; me.method = me.isCreate ? 'POST' : 'PUT'; - let supportsVrf = ['bgp', 'ospf'].includes(me.extraRequestParams.protocol); + let protocol = me.extraRequestParams.protocol; + let supportsVrf = ['bgp', 'ospf'].includes(protocol); let vrfZoneField = me.items.find((item) => item.name === 'zone'); vrfZoneField.hidden = !supportsVrf; vrfZoneField.disabled = !supportsVrf || !me.isCreate; + // The API rejects BGP fabrics in EVPN zone VRFs. + vrfZoneField.excludeEvpn = protocol === 'bgp'; if (!me.isCreate) { me.url = `${me.baseUrl}/${me.fabricId}`; -- 2.47.3