incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject git commit: Network offering UI: Pass 'associatePublicIP' option
Date Fri, 19 Oct 2012 17:14:30 GMT
Updated Branches:
  refs/heads/master 4cb934dfa -> 65cf092f6


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.


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/65cf092f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/65cf092f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/65cf092f

Branch: refs/heads/master
Commit: 65cf092f605cb8dc6b2389a864b21e54223364c2
Parents: 4cb934d
Author: Brian Federle <brian.federle@citrix.com>
Authored: Fri Oct 19 10:12:34 2012 -0700
Committer: Brian Federle <brian.federle@citrix.com>
Committed: Fri Oct 19 10:13:11 2012 -0700

----------------------------------------------------------------------
 ui/scripts/configuration.js |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/65cf092f/ui/scripts/configuration.js
----------------------------------------------------------------------
diff --git a/ui/scripts/configuration.js b/ui/scripts/configuration.js
index c6bc649..f2f736d 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;


Mime
View raw message