You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by je...@apache.org on 2012/11/26 23:06:00 UTC

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.

Updated Branches:
  refs/heads/master 7f40eef92 -> 08bd175d5


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/master
Commit: 08bd175d5661dad29b099c605de7f40b171eb07b
Parents: 7f40eef
Author: Jessica Wang <je...@citrix.com>
Authored: Mon Nov 26 14:05:26 2012 -0800
Committer: Jessica Wang <je...@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: {