incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [8/50] [abbrv] git commit: CLOUDSTACK-537: cloudstack UI - Advanced SG-enabled zone - VM Wizard - step5 - select network step - desc field - append '(sg)' if a network includes security group service.
Date Fri, 25 Jan 2013 03:31:52 GMT
CLOUDSTACK-537: cloudstack UI - Advanced SG-enabled zone - VM Wizard - step5 - select network
step - desc field - append '(sg)' if a network includes security group service.


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

Branch: refs/heads/javelin
Commit: 635ac34d0665a614c67d35dbd2b51b43e9da075d
Parents: ff5477d
Author: Jessica Wang <jessica.wang@citrix.com>
Authored: Mon Jan 21 16:02:39 2013 -0800
Committer: Jessica Wang <jessica.wang@citrix.com>
Committed: Mon Jan 21 16:02:39 2013 -0800

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


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/635ac34d/ui/scripts/instanceWizard.js
----------------------------------------------------------------------
diff --git a/ui/scripts/instanceWizard.js b/ui/scripts/instanceWizard.js
index 47908c2..8ebee62 100644
--- a/ui/scripts/instanceWizard.js
+++ b/ui/scripts/instanceWizard.js
@@ -365,6 +365,18 @@
           async: false,
           success: function(json) {
             networkObjs = json.listnetworksresponse.network ? json.listnetworksresponse.network
: [];
+												
+						if(networkObjs.length > 0) {
+						  for(var i = 0; i < networkObjs.length; i++) {
+								var networkObj = networkObjs[i];    
+								var serviceObjArray = networkObj.service;
+								for(var k = 0; k < serviceObjArray.length; k++) {
+									if(serviceObjArray[k].name == "SecurityGroup") {
+									  networkObjs[i].type = networkObjs[i].type + ' (sg)';																		
+									}
+								}
+							}
+            }						
           }
         });
                   


Mime
View raw message