incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prachida...@apache.org
Subject [26/50] [abbrv] git commit: CLOUDSTACK-541: cloudstack UI - Network menu - Guest Network section - network detailPanel - show "View IP Addresses" icon regardless of having SourceNAT service or not.
Date Thu, 29 Nov 2012 00:01:18 GMT
CLOUDSTACK-541: cloudstack UI - Network menu - Guest Network section - network detailPanel
- show "View IP Addresses" icon regardless of having SourceNAT service or not.


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

Branch: refs/heads/api_refactoring
Commit: 08bd175d5661dad29b099c605de7f40b171eb07b
Parents: 7f40eef
Author: Jessica Wang <jessica.wang@citrix.com>
Authored: Mon Nov 26 14:05:26 2012 -0800
Committer: Jessica Wang <jessica.wang@citrix.com>
Committed: Mon Nov 26 14:05:26 2012 -0800

----------------------------------------------------------------------
 ui/scripts/network.js |   14 +-------------
 1 files changed, 1 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/08bd175d/ui/scripts/network.js
----------------------------------------------------------------------
diff --git a/ui/scripts/network.js b/ui/scripts/network.js
index e3bc110..a4b60d3 100755
--- a/ui/scripts/network.js
+++ b/ui/scripts/network.js
@@ -605,19 +605,7 @@
                 if (args.context.networks[0].state == 'Destroyed')
                   return false;
 
-                var services = args.context.networks[0].service;
-                if(services == null)
-                  return false;
-
-                // IP addresses supported for both isolated and shared networks w/ source
NAT enabled
-                for(var i=0; i < services.length; i++) {
-                  var service = services[i];
-                  if(service.name == "SourceNat") {
-                    return true;
-                  }
-                }
-
-                return false;
+                return true;
               }
             },
             actions: {


Mime
View raw message