From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id 3F90C1FF0B4 for ; Fri, 27 Nov 2026 11:39:35 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 9F527217E0; Fri, 27 Nov 2026 11:39:06 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.10.3 smtp.infra.comaite.com 2563862C0B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comaite.com; s=377A38C6-3A8D-11E5-A0EC-E97757B27CB3; t=1795775318; bh=LEusxQg0+1CVc1032T55xnz+Pagocy4dyyHRIlNHong=; h=From:To:Date:Message-ID:MIME-Version; b=E8QsmmphOzhC+L+E/gVfE7o2EQR9XfKK+/kyeXXmPfIeaU7w1GkVkvzxj/QQS+T2Q ZUvT8WvafbPhnf/35Td1VDz+WyfQy/F74laQZh3B+LUf4N3Qp/AOz8LMNSpZlZeDO3 sYWn+BVyEMcVoWnlm9ocPIQqF6VgpE+vrTVPX7Nj9md45wq0/cGtkEyYOjIxiUfjNm NeGOGX1SHhbL5o/RPsOrwJXV87AU9mxWmLj/UGRuFnKoVFWQb7p2Uf0cv31IhYBXmz npLgWo4AMZI/9mKrz4FJr3fh7ynSi1RhLDPj5ji6xZdGRnIxRNdm7xnymCI+sR2oz3 MPkPBBOIl1nEQ== From: =?UTF-8?q?R=C3=A9mi=20PAETA?= To: pve-devel@lists.proxmox.com Subject: [RFC PATCH v2 manager 10/15] ui: sdn: controller selector: allow filtering by controller type Date: Fri, 27 Nov 2026 11:28:31 +0100 Message-ID: <20261127102836.313797-11-remi.paeta@comaite.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261127102836.313797-1-remi.paeta@comaite.com> References: <20261127102836.313797-1-remi.paeta@comaite.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.706 Adjusted score from AWL reputation of From: address 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 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: TUXPGZRCPFLA4ZZGKU4W3XS5AJ7G77RF X-Message-ID-Hash: TUXPGZRCPFLA4ZZGKU4W3XS5AJ7G77RF X-MailFrom: remi.paeta@comaite.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: Zones that only work with a specific controller type can then limit the selection to the controllers of that type. Signed-off-by: Rémi PAETA --- No changes since v1. www/manager6/form/SDNControllerSelector.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/www/manager6/form/SDNControllerSelector.js b/www/manager6/form/SDNControllerSelector.js index cb519df4..5705e453 100644 --- a/www/manager6/form/SDNControllerSelector.js +++ b/www/manager6/form/SDNControllerSelector.js @@ -8,6 +8,9 @@ Ext.define( valueField: 'controller', displayField: 'controller', + // only list controllers of this type, if set + controllerType: undefined, + initComponent: function () { var me = this; @@ -19,6 +22,10 @@ Ext.define( }, }); + if (me.controllerType) { + store.addFilter({ property: 'type', value: me.controllerType }); + } + Ext.apply(me, { store: store, autoSelect: false, @@ -42,7 +49,7 @@ Ext.define( function () { Ext.define('pve-sdn-controller', { extend: 'Ext.data.Model', - fields: ['controller'], + fields: ['controller', 'type'], proxy: { type: 'proxmox', url: '/api2/json/cluster/sdn/controllers', -- 2.47.3