From: Stefan Hanreich <s.hanre...@proxmox.com> The network endpoint of the PVE API allows selecting interfaces by type, but the network selector widget currently does not support passing the type to the API call.
This is required for the SDN fabrics, which introduced a new special type to this endpoint that additionally selects all SDN interfaces. This can then be used to make SDN fabrics show up in the Migration Settings dialog or in the Ceph Installation Wizards. Signed-off-by: Stefan Hanreich <s.hanre...@proxmox.com> --- src/form/NetworkSelector.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/form/NetworkSelector.js b/src/form/NetworkSelector.js index 7f96f05217f3..fe7c96b4a55f 100644 --- a/src/form/NetworkSelector.js +++ b/src/form/NetworkSelector.js @@ -10,7 +10,7 @@ Ext.define('Proxmox.form.NetworkSelectorController', { } view.getStore() .getProxy() - .setUrl('/api2/json/nodes/' + view.nodename + '/network'); + .setUrl(`/api2/json/nodes/${view.nodename}/network${view.getQueryString()}`); }, }); @@ -35,6 +35,11 @@ Ext.define('Proxmox.form.NetworkSelector', { controller: 'proxmoxNetworkSelectorController', + type: undefined, + getQueryString: function () { + return this.type ? `?type=${this.type}` : ''; + }, + nodename: 'localhost', setNodename: function (nodename) { this.nodename = nodename; @@ -43,7 +48,9 @@ Ext.define('Proxmox.form.NetworkSelector', { // because of manual local copy of data for ip4/6 this.getPicker().refresh(); if (networkSelectorStore && typeof networkSelectorStore.getProxy === 'function') { - networkSelectorStore.getProxy().setUrl('/api2/json/nodes/' + nodename + '/network'); + networkSelectorStore + .getProxy() + .setUrl(`/api2/json/nodes/${nodename}/network${this.getQueryString()}`); networkSelectorStore.load(); } }, -- 2.39.5 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel