From 5d3e6bd397464f93ba8890aa29cd5a32558c0c0a Mon Sep 17 00:00:00 2001 From: Pranav Saxena Date: Wed, 22 May 2013 14:35:16 +0530 Subject: [PATCH] Implicit Dedication - Key and Value for iMplicit Dedication planner --- ui/scripts/configuration.js | 19 +++++++++++++++++-- ui/scripts/docs.js | 9 +++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/ui/scripts/configuration.js b/ui/scripts/configuration.js index 8856d4b5545..fdeaba015b7 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; diff --git a/ui/scripts/docs.js b/ui/scripts/docs.js index 4a70ca1df7f..7c1aaf83c35 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:{