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:
Jessica Wang 2012-02-21 19:23:05 -08:00
parent 4b5586c8df
commit db255b31dd
2 changed files with 14 additions and 6 deletions

View File

@ -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) {

View File

@ -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;