From 65cf092f605cb8dc6b2389a864b21e54223364c2 Mon Sep 17 00:00:00 2001 From: Brian Federle Date: Fri, 19 Oct 2012 10:12:34 -0700 Subject: [PATCH] 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. --- ui/scripts/configuration.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ui/scripts/configuration.js b/ui/scripts/configuration.js index c6bc649c2df..f2f736de0c1 100644 --- a/ui/scripts/configuration.js +++ b/ui/scripts/configuration.js @@ -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;