CLOUDSTACK-6447: Grid K120Q and K220Q vGPU types are missing in create service offering menu.
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/2e727428 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/2e727428 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/2e727428 Branch: refs/heads/4.4-forward Commit: 2e727428a9887868edade37df04d2251c4368e09 Parents: bd6a95e Author: Sanjay Tripathi <[email protected]> Authored: Fri Apr 18 13:19:35 2014 +0530 Committer: Sanjay Tripathi <[email protected]> Committed: Fri Apr 18 13:20:27 2014 +0530 ---------------------------------------------------------------------- api/src/com/cloud/gpu/GPU.java | 2 ++ ui/scripts/configuration.js | 12 ++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/2e727428/api/src/com/cloud/gpu/GPU.java ---------------------------------------------------------------------- diff --git a/api/src/com/cloud/gpu/GPU.java b/api/src/com/cloud/gpu/GPU.java index 0df821f..9177edb 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"); http://git-wip-us.apache.org/repos/asf/cloudstack/blob/2e727428/ui/scripts/configuration.js ---------------------------------------------------------------------- diff --git a/ui/scripts/configuration.js b/ui/scripts/configuration.js index 61b8a99..8bb9d6f 100644 --- a/ui/scripts/configuration.js +++ b/ui/scripts/configuration.js @@ -382,8 +382,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(); @@ -432,6 +432,10 @@ description: 'GRID K100' }); items.push({ + id: 'GRID K120Q', + description: 'GRID K120Q' + }); + items.push({ id: 'GRID K140Q', description: 'GRID K140Q' }); @@ -440,6 +444,10 @@ description: 'GRID K200' }); items.push({ + id: 'GRID K220Q', + description: 'GRID K220Q' + }); + items.push({ id: 'GRID K240Q', description: 'GRID K240Q' });
