mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-17 11:04:00 +01:00
bug 13665: Quick Install wizard - pick the network offering that has SecurityGroups service (but no LB, StaticNat). Enable SecurityGroups provider before creating a guest work. [reviewed-by: Brian]
This commit is contained in:
parent
4b5586c8df
commit
db255b31dd
@ -253,7 +253,8 @@
|
|||||||
return service.name;
|
return service.name;
|
||||||
});
|
});
|
||||||
|
|
||||||
return $.inArray('SecurityGroup', services) == -1;
|
//pick the network offering including SecurityGroup, but excluding Lb and StaticNat. (bug 13665)
|
||||||
|
return (($.inArray('SecurityGroup', services) != -1) && ($.inArray('Lb', services) == -1) && ($.inArray('StaticNat', services) == -1)) ;
|
||||||
}
|
}
|
||||||
)[0];
|
)[0];
|
||||||
}
|
}
|
||||||
@ -266,7 +267,11 @@
|
|||||||
networkType: 'Basic',
|
networkType: 'Basic',
|
||||||
domain: 1,
|
domain: 1,
|
||||||
networkOfferingId: selectedNetworkOffering.id
|
networkOfferingId: selectedNetworkOffering.id
|
||||||
}
|
},
|
||||||
|
pluginFrom: {
|
||||||
|
name: 'installWizard',
|
||||||
|
selectedNetworkOfferingHavingSG: true
|
||||||
|
}
|
||||||
},
|
},
|
||||||
response: {
|
response: {
|
||||||
success: function(args) {
|
success: function(args) {
|
||||||
|
|||||||
@ -1424,6 +1424,9 @@
|
|||||||
if (result.jobstatus == 1) {
|
if (result.jobstatus == 1) {
|
||||||
//alert("Virtual Router Provider is enabled");
|
//alert("Virtual Router Provider is enabled");
|
||||||
|
|
||||||
|
if(args.data.pluginFrom != null && args.data.pluginFrom.name == "installWizard") {
|
||||||
|
selectedNetworkOfferingHavingSG = args.data.pluginFrom.selectedNetworkOfferingHavingSG;
|
||||||
|
}
|
||||||
if(selectedNetworkOfferingHavingSG == true) { //need to Enable security group provider first
|
if(selectedNetworkOfferingHavingSG == true) { //need to Enable security group provider first
|
||||||
// get network service provider ID of Security Group
|
// get network service provider ID of Security Group
|
||||||
var securityGroupProviderId;
|
var securityGroupProviderId;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user