private void AssignVgpu() { if (assignOrRemoveVgpu) { var action = new GpuAssignAction(VM, GpuGroup, VgpuType); action.RunExternal(Session); } }
private void AssignVgpu() { if (GpuGroup != null && VgpuType != null) { var action = new GpuAssignAction(VM, GpuGroup, VgpuType); action.RunExternal(Session); } }
private void AssignVgpu() { if (assignOrRemoveVgpu) { var newvGpus = new List <VGPU>(); foreach (var vGpu in vGpus) { newvGpus.Add(new VGPU { GPU_group = new XenRef <GPU_group>(vGpu.GPU_group.opaque_ref), type = new XenRef <VGPU_type>(vGpu.type.opaque_ref), device = vGpu.device }); } var action = new GpuAssignAction(VM, newvGpus); action.RunExternal(Session); } }