From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 7A3541FF14C for ; Fri, 15 May 2026 10:55:12 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 62C7311972; Fri, 15 May 2026 10:54:26 +0200 (CEST) From: Dominik Csapak To: pve-devel@lists.proxmox.com Subject: [PATCH manager v3 09/13] ui: qemu: introduce hardware net grid Date: Fri, 15 May 2026 10:44:27 +0200 Message-ID: <20260515085349.1123127-10-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260515085349.1123127-1-d.csapak@proxmox.com> References: <20260515085349.1123127-1-d.csapak@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.050 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment 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: GRAEXFWL2H4C7ICTAGOTHTMDQ7WR5I6R X-Message-ID-Hash: GRAEXFWL2H4C7ICTAGOTHTMDQ7WR5I6R X-MailFrom: d.csapak@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: intended to be used inside the hardware view. Same as the hardware disk grid, the toolbar buttons will be added in the hardware view itself. Signed-off-by: Dominik Csapak --- www/manager6/Makefile | 1 + www/manager6/qemu/HardwareNetGrid.js | 81 ++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 www/manager6/qemu/HardwareNetGrid.js diff --git a/www/manager6/Makefile b/www/manager6/Makefile index edef39eb..a53a9946 100644 --- a/www/manager6/Makefile +++ b/www/manager6/Makefile @@ -266,6 +266,7 @@ JSSRC= \ qemu/HDMove.js \ qemu/HDResize.js \ qemu/HardwareDiskGrid.js \ + qemu/HardwareNetGrid.js \ qemu/HardwareView.js \ qemu/IPConfigEdit.js \ qemu/KeyboardEdit.js \ diff --git a/www/manager6/qemu/HardwareNetGrid.js b/www/manager6/qemu/HardwareNetGrid.js new file mode 100644 index 00000000..22814b28 --- /dev/null +++ b/www/manager6/qemu/HardwareNetGrid.js @@ -0,0 +1,81 @@ +Ext.define('PVE.qemu.HardwareNetGrid', { + extend: 'PVE.grid.PendingGrid', + alias: 'widget.pveHardwareNetGrid', + + title: gettext('Network Interfaces'), + + stateful: true, + stateId: 'pve-qemu-hardware-net', + + border: false, + expandable: false, + + emptyText: gettext('No network interfaces configured'), + + storeFilter: (rec) => PVE.Utils.keyIsNic(rec.data.key), + recordParser: PVE.Parser.parseQemuNetwork, + + renderKey: Ext.htmlEncode, + + columns: [ + { + header: gettext('ID'), + dataIndex: 'id', + width: 200, + renderer: 'renderKey', + }, + { + header: gettext('Model'), + dataIndex: 'model', + width: 100, + }, + { + header: gettext('MAC address'), + dataIndex: 'macaddr', + minWidth: 200, + flex: 1, + }, + { + header: gettext('Bridge'), + dataIndex: 'bridge', + width: 100, + }, + { + header: gettext('Firewall enabled'), + dataIndex: 'firewall', + width: 150, + renderer: PVE.Utils.renderBooleanProperty, + }, + { + header: gettext('VLAN tag'), + dataIndex: 'tag', + width: 80, + }, + { + header: gettext('MTU'), + dataIndex: 'mtu', + width: 100, + }, + { + header: gettext('Multiqueue'), + dataIndex: 'queues', + width: 100, + }, + { + header: gettext('Rate limit (MB/s)'), + dataIndex: 'rate', + width: 200, + }, + { + header: gettext('Disconnected'), + dataIndex: 'link_down', + width: 100, + renderer: PVE.Utils.renderBooleanProperty, + }, + { + header: gettext('Trunks'), + dataIndex: 'trunks', + width: 100, + }, + ], +}); -- 2.47.3