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

Wolfgang Bumiller w.bumiller at proxmox.com
Thu Jun 8 16:17:18 CEST 2017


applied

On Mon, May 29, 2017 at 11:10:21AM +0200, Dominik Csapak wrote:
> 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