[pve-devel] [RFC PATCH manager 2/2] show hostpci devices in gui

Dominik Csapak d.csapak at proxmox.com
Mon May 29 11:10:21 CEST 2017


so one can see which pci devices are assigned to which vm

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/qemu/HardwareView.js | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/www/manager6/qemu/HardwareView.js b/www/manager6/qemu/HardwareView.js
index e26f28b2..cbec59d2 100644
--- a/www/manager6/qemu/HardwareView.js
+++ b/www/manager6/qemu/HardwareView.js
@@ -219,9 +219,18 @@ Ext.define('PVE.qemu.HardwareView', {
 		header: gettext('USB Device') + ' (' + confid + ')'
 	    };
 	}
+	for (i = 0; i < 4; i++) {
+	    confid = "hostpci" + i;
+	    rows[confid] = {
+		group: 5,
+		tdCls: 'pve-itype-icon-pci',
+		never_delete: caps.nodes['Sys.Console'] ? false : true,
+		header: gettext('PCI Device') + ' (' + confid + ')'
+	    };
+	}
 	for (i = 0; i < 8; i++) {
 	    rows["unused" + i] = {
-		group: 5,
+		group: 6,
 		tdCls: 'pve-itype-icon-storage',
 		editor: caps.vms['VM.Config.Disk'] ? 'PVE.qemu.HDEdit' : undefined,
 		header: gettext('Unused Disk') + ' ' + i
-- 
2.11.0





More information about the pve-devel mailing list