Network offering UI: Pass 'associatePublicIP' option

If elastic LB service is enabled for a shared network offering, add a
checkbox to associate public IP. This passes new option
'associatePublicIp=[true/false]' on creation.
This commit is contained in:
Brian Federle 2012-10-19 10:12:34 -07:00
parent 4cb934dfa9
commit 65cf092f60
1 changed files with 12 additions and 0 deletions

View File

@ -1484,6 +1484,12 @@
isHidden: true,
isBoolean: true
},
associatePublicIP: {
label: 'Associate IP',
isBoolean: true,
isHidden: true,
dependsOn: 'service.Lb.elasticLbCheckbox'
},
"service.Lb.lbIsolationDropdown": {
label: 'label.LB.isolation',
isHidden: true,
@ -1604,6 +1610,12 @@
} else {
inputData['conservemode'] = false;
}
if (inputData['associatePublicIP'] == 'on') {
inputData['associatePublicIP'] = true;
} else {
inputData['associatePublicIP'] = false;
}
// Make service provider map
var serviceProviderIndex = 0;