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 68A781FF0AE for ; Tue, 13 Oct 2026 14:23:24 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 75A942165F; Tue, 13 Oct 2026 14:22:38 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 smtp.infra.comaite.com 43E0962C12 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comaite.com; s=377A38C6-3A8D-11E5-A0EC-E97757B27CB3; t=1791893674; bh=OsFtVc/3L5iuTqPEZdJu189niUi/QRN7eLKs1C93NJk=; h=From:To:Date:Message-ID:MIME-Version; b=kJBfnLiGvuNobnsGrIEiMEBja1Xx4qdueCqQqI147iW7DiGRtJqaQ8DTFoJ2CuMzd HUhrBexTtwk4AQ+K62/HEL5lrsBIctwvE7yDgVc4fdCjXyYVKJ2SN8gnBc23Ta/8Fv q/vvw8BRcpbtCjxTUQCI6hVJHX55gQroaUWj/D7j3M9JYERs8cVAtT/Uxqr1U7BzpX vJIRdErOimoxaQsc9+Cz/eyDkqzv3skDI50KOFDGw0ajixqDvNre/73eDUkjPBVhr6 f7uOY39cp4xJiMYiOrr6sv4/GCZy6IrM6mGb8yiOrCItzqoIdKCU6WM6O1M2s9/nD6 jDpKDJoFKsGXA== From: =?UTF-8?q?R=C3=A9mi=20PAETA?= To: pve-devel@lists.proxmox.com Subject: [RFC PATCH manager 11/16] ui: sdn: controller selector: allow filtering by controller type Date: Tue, 13 Oct 2026 14:14:27 +0200 Message-ID: <20261013121432.2642979-12-remi.paeta@comaite.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261013121432.2642979-1-remi.paeta@comaite.com> References: <1116090294.1714263.1791537779868.JavaMail.zimbra@comaite.com> <20261013121432.2642979-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.833 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: XBSAGUTBGZVOA4AI6TFQNOOAZUR4C74V X-Message-ID-Hash: XBSAGUTBGZVOA4AI6TFQNOOAZUR4C74V 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 --- 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