You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by mt...@apache.org on 2015/09/19 03:31:13 UTC

[07/50] git commit: updated refs/heads/sf-plugins to 157efc3

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/18800c9b
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/18800c9b
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/18800c9b

Branch: refs/heads/sf-plugins
Commit: 18800c9bb693a8673310670bb55e0cfbe1662718
Parents: 7709243
Author: Mike Tutkowski <mi...@solidfire.com>
Authored: Tue Jul 7 17:22:14 2015 -0600
Committer: Mike Tutkowski <mi...@solidfire.com>
Committed: Fri Sep 18 19:28:18 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/18800c9b/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) {