mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-16 18:43:26 +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
@ -252,13 +252,14 @@
|
|||||||
var services = $.map(networkOffering.service, function(service) {
|
var services = $.map(networkOffering.service, function(service) {
|
||||||
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];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
cloudStack.zoneWizard.action($.extend(true, {}, args, {
|
cloudStack.zoneWizard.action($.extend(true, {}, args, {
|
||||||
// Plug in hard-coded values specific to quick install
|
// Plug in hard-coded values specific to quick install
|
||||||
data: {
|
data: {
|
||||||
@ -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) {
|
||||||
|
|||||||
@ -1423,7 +1423,10 @@
|
|||||||
$("body").stopTime(updateNetworkServiceProviderTimer);
|
$("body").stopTime(updateNetworkServiceProviderTimer);
|
||||||
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