cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtutkow...@apache.org
Subject [15/50] git commit: updated refs/heads/sf-plugins to bcf1c72
Date Tue, 28 Jul 2015 20:15:01 GMT
Allow user to create a volume


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

Branch: refs/heads/sf-plugins
Commit: ce6912cc78c9830d8d712bd90a92900baa9987b1
Parents: c386bbb
Author: Mike Tutkowski <mike.tutkowski@solidfire.com>
Authored: Tue Jul 7 17:22:14 2015 -0600
Committer: CloudStack <cloudstack@cloudstack-virtual-machine.(none)>
Committed: Tue Jul 28 13:42:41 2015 -0600

----------------------------------------------------------------------
 ui/plugins/sfSharedVolume/sfSharedVolume.js | 27 +++++++++++++-----------
 1 file changed, 15 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ce6912cc/ui/plugins/sfSharedVolume/sfSharedVolume.js
----------------------------------------------------------------------
diff --git a/ui/plugins/sfSharedVolume/sfSharedVolume.js b/ui/plugins/sfSharedVolume/sfSharedVolume.js
index 8896526..c6371ca 100644
--- a/ui/plugins/sfSharedVolume/sfSharedVolume.js
+++ b/ui/plugins/sfSharedVolume/sfSharedVolume.js
@@ -114,7 +114,7 @@
                       dataType: "json",
                       async: true,
                       success: function(json) {
-                        var virtualNetworkObjs = json.listvirtualnetworksresponse.virtualnetwork;
+                        var virtualNetworkObjs = json.listsolidfirevirtualnetworksresponse.sfvirtualnetwork;
 
                         args.response.success({
                           descriptionField: 'name',
@@ -127,21 +127,24 @@
               }
             },
 			action: function(args) {
+              var data = {
+                name: args.data.name,
+				size: args.data.diskSize,
+                miniops: args.data.minIops,
+                maxiops: args.data.maxIops,
+				burstiops: args.data.burstIops,
+				sfvirtualnetworkid: args.data.vlan,
+				accountid: 2
+              };
+
               $.ajax({
-                url: createURL('createVolume'),
+                url: createURL('createSolidFireVolume'),
                 data: data,
                 success: function(json) {
-                  var jid = json.createvolumeresponse.jobid;
+			      var sfvolumeObj = json.createsolidfirevolumeresponse.apicreatesolidfirevolume;
+
                   args.response.success({
-                    _custom: {
-                      jobId: jid,
-                      getUpdatedItem: function(json) {
-                        return json.queryasyncjobresultresponse.jobresult.volume;
-                      },
-                      getActionFilter: function() {
-                        return volumeActionfilter;
-                      }
-                    }
+                    data: sfvolumeObj
                   });
                 },
                 error: function(json) {


Mime
View raw message