cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wid...@apache.org
Subject [19/50] [abbrv] git commit: updated refs/heads/rbd-snap-clone to 2355a81
Date Thu, 23 May 2013 21:19:54 GMT
Implicit Dedication - Key and Value for iMplicit Dedication planner


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

Branch: refs/heads/rbd-snap-clone
Commit: 5d3e6bd397464f93ba8890aa29cd5a32558c0c0a
Parents: 11f85c9
Author: Pranav Saxena <pranav.saxena@citrix.com>
Authored: Wed May 22 14:35:16 2013 +0530
Committer: Pranav Saxena <pranav.saxena@citrix.com>
Committed: Wed May 22 14:35:16 2013 +0530

----------------------------------------------------------------------
 ui/scripts/configuration.js |   19 +++++++++++++++++--
 ui/scripts/docs.js          |    9 +++++++++
 2 files changed, 26 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/5d3e6bd3/ui/scripts/configuration.js
----------------------------------------------------------------------
diff --git a/ui/scripts/configuration.js b/ui/scripts/configuration.js
index 8856d4b..fdeaba0 100644
--- a/ui/scripts/configuration.js
+++ b/ui/scripts/configuration.js
@@ -164,6 +164,17 @@
                      }
                   },
 
+                  plannerKey:{label:'Planner Key' , docID:'helpImplicitPlannerKey'},
+                  plannerMode:{
+                    label:'Planner Mode',
+                    select:function(args){
+                       var items=[];
+                       items.push({id:'',description:''});
+                       items.push({id:'Strict', description:'Strict'});
+                       items.push({id:'Preffered', description:'Preffered'});
+                       args.response.success({data:items});
+                    }
+                  },
 
                   domainId: {
                     label: 'label.domain',
@@ -201,7 +212,11 @@
                                                                         deploymentplanner:
args.data.deploymentPlanner
 
 								};															
-               
+                var array1 =[];
+                 if(args.data.plannerMode != null && args.data.plannerKey !=""){
+                   array1.push("&serviceofferingdetails[0]." + args.data.plannerKey +
"=" + args.data.plannerMode);
+                }
+
                 if(args.data.networkRate != null && args.data.networkRate.length
> 0) {
 								  $.extend(data, {
 									  networkrate: args.data.networkRate
@@ -239,7 +254,7 @@
 								}
 
                 $.ajax({
-                  url: createURL('createServiceOffering'),
+                  url: createURL('createServiceOffering' + array1.join("")),
                   data: data,                 
                   success: function(json) {
                     var item = json.createserviceofferingresponse.serviceoffering;

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/5d3e6bd3/ui/scripts/docs.js
----------------------------------------------------------------------
diff --git a/ui/scripts/docs.js b/ui/scripts/docs.js
index 4a70ca1..7c1aaf8 100755
--- a/ui/scripts/docs.js
+++ b/ui/scripts/docs.js
@@ -16,6 +16,15 @@
 // under the License.
 cloudStack.docs = {
 
+  //Implicit Planner
+
+  helpImplicitPlannerKey:{
+
+    desc:'Please provide a Planner key for the Implicit Planner you are going to use and
then select its mode below .Eg - Planner Key :ImplicitDedicationMode',
+    externalLink:''
+
+  },
+
  //Delete/archive events
   helpEventsDeleteType:{
 


Mime
View raw message