mirror of https://github.com/apache/cloudstack.git
Implicit Dedication - Key and Value for iMplicit Dedication planner
This commit is contained in:
parent
11f85c9c9e
commit
5d3e6bd397
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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:{
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue