mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 06:16:37 +01:00
[CP-6383]: Configuration of vGPU types for pGPUs
# HG changeset patch # User Gabor Apati-Nagy <Gabor.Apati-Nagy@citrix.com> # Date 1382626325 -3600 # Thu Oct 24 15:52:05 2013 +0100 # Node ID 5e98fb1f82eeaff4c709ad7e6a92916c51488b75 # Parent 9b2305266f104c3ae9ec32804a92b3596d0aa399 Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
parent
f7d59a8c24
commit
c35b4d26cb
@ -55,7 +55,7 @@ namespace XenAdmin.Controls.GPU
|
||||
dataGridViewEx1.Rows.AddRange((from supportedVGpuTypeRef in pGpu.supported_VGPU_types
|
||||
let supportedVGpuType = pGpu.Connection.Resolve(supportedVGpuTypeRef)
|
||||
let enabled = pGpu.enabled_VGPU_types.Contains(supportedVGpuTypeRef)
|
||||
let isInUse = pGpuList.Any(p => p.Connection.ResolveAll(p.resident_VGPUs).Any(v => v.type == supportedVGpuTypeRef))
|
||||
let isInUse = pGpuList.Any(p => p.Connection.ResolveAll(p.resident_VGPUs).Any(v => v.type.opaque_ref == supportedVGpuTypeRef.opaque_ref))
|
||||
orderby supportedVGpuType.Capacity ascending
|
||||
|
||||
select new VGpuDetailWithCheckBoxRow(supportedVGpuTypeRef, supportedVGpuType, enabled, isInUse)
|
||||
|
Loading…
Reference in New Issue
Block a user