From 5eaf3be44af565a507401513029ba6ff793cd8d4 Mon Sep 17 00:00:00 2001 From: Sanjay Tripathi Date: Fri, 18 Apr 2014 13:19:35 +0530 Subject: [PATCH] CLOUDSTACK-6447: Grid K120Q and K220Q vGPU types are missing in create service offering menu. --- api/src/com/cloud/gpu/GPU.java | 2 ++ ui/scripts/configuration.js | 12 ++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/api/src/com/cloud/gpu/GPU.java b/api/src/com/cloud/gpu/GPU.java index 0df821f165d..9177edbf9c1 100644 --- a/api/src/com/cloud/gpu/GPU.java +++ b/api/src/com/cloud/gpu/GPU.java @@ -26,8 +26,10 @@ public class GPU { public enum vGPUType { GRID_K100("GRID K100"), + GRID_K120Q("GRID K120Q"), GRID_K140Q("GRID K140Q"), GRID_K200("GRID K200"), + GRID_K220Q("GRID K220Q"), GRID_K240Q("GRID K240Q"), GRID_K260("GRID K260Q"), passthrough("passthrough"); diff --git a/ui/scripts/configuration.js b/ui/scripts/configuration.js index 0e0adeede97..0d32ffd88e6 100644 --- a/ui/scripts/configuration.js +++ b/ui/scripts/configuration.js @@ -404,8 +404,8 @@ }); var vGpuMap = {}; - vGpuMap['Group of NVIDIA Corporation GK107GL [GRID K1] GPUs'] = ['passthrough', 'GRID K100', 'GRID K140Q']; - vGpuMap['Group of NVIDIA Corporation GK104GL [GRID K2] GPUs'] = ['passthrough', 'GRID K200', 'GRID K240Q', 'GRID K260Q']; + vGpuMap['Group of NVIDIA Corporation GK107GL [GRID K1] GPUs'] = ['passthrough', 'GRID K100', 'GRID K120Q', 'GRID K140Q']; + vGpuMap['Group of NVIDIA Corporation GK104GL [GRID K2] GPUs'] = ['passthrough', 'GRID K200', 'GRID K220Q', 'GRID K240Q', 'GRID K260Q']; args.$select.change(function() { var gpu = $(this).val(); @@ -453,6 +453,10 @@ id: 'GRID K100', description: 'GRID K100' }); + items.push({ + id: 'GRID K120Q', + description: 'GRID K120Q' + }); items.push({ id: 'GRID K140Q', description: 'GRID K140Q' @@ -461,6 +465,10 @@ id: 'GRID K200', description: 'GRID K200' }); + items.push({ + id: 'GRID K220Q', + description: 'GRID K220Q' + }); items.push({ id: 'GRID K240Q', description: 'GRID K240Q'