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 $.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];
}
@ -266,6 +267,10 @@
networkType: 'Basic',
domain: 1,
networkOfferingId: selectedNetworkOffering.id
},
pluginFrom: {
name: 'installWizard',
selectedNetworkOfferingHavingSG: true
}
},
response: {

View File

@ -1424,6 +1424,9 @@
if (result.jobstatus == 1) {
//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
// get network service provider ID of Security Group
var securityGroupProviderId;