CLOUDSTACK-6393: Add gpu details in Compute Offering detail view

Signed-off-by: Mihaela Stoica <[email protected]>
Signed-off-by: Sanjay Tripathi <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/a0e6eff6
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/a0e6eff6
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/a0e6eff6

Branch: refs/heads/4.4
Commit: a0e6eff6e8ce94d4fae83a6f49deed77838b7a9b
Parents: 7e5757e
Author: Mihaela Stoica <[email protected]>
Authored: Sat Apr 12 11:03:47 2014 +0100
Committer: Sanjay Tripathi <[email protected]>
Committed: Wed Apr 16 15:31:44 2014 +0530

----------------------------------------------------------------------
 ui/scripts/configuration.js | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a0e6eff6/ui/scripts/configuration.js
----------------------------------------------------------------------
diff --git a/ui/scripts/configuration.js b/ui/scripts/configuration.js
index dd7f75b..61b8a99 100644
--- a/ui/scripts/configuration.js
+++ b/ui/scripts/configuration.js
@@ -835,6 +835,12 @@
                                     plannerMode: {
                                         label: 'Planner Mode'
                                     },                                    
+                                    pciDevice: {
+                                        label: 'GPU'
+                                    },
+                                    vgpuType: {
+                                        label: 'vGPU type'
+                                    },
                                     tags: {
                                         label: 'label.storage.tags'
                                     },
@@ -868,6 +874,11 @@
                                                }
                                             }
                                                                                
        
+                                            if (item.serviceofferingdetails != 
null) {
+                                                item.pciDevice = 
item.serviceofferingdetails.pciDevice;
+                                                item.vgpuType = 
item.serviceofferingdetails.vgpuType;
+                                            }
+
                                             args.response.success({
                                                 actionFitler: 
serviceOfferingActionfilter,
                                                 data: item

Reply via email to