cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pran...@apache.org
Subject [34/50] git commit: updated refs/heads/master to b03e419
Date Tue, 28 May 2013 07:59:19 GMT
Add dashboard counts for static NAT IPs


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

Branch: refs/heads/master
Commit: 763f6fd47b8179fd173f035d55f4b6609a9d2963
Parents: f2dd65c
Author: Brian Federle <bfederle@gmail.com>
Authored: Wed May 22 12:15:45 2013 -0700
Committer: Brian Federle <bfederle@gmail.com>
Committed: Wed May 22 12:15:45 2013 -0700

----------------------------------------------------------------------
 ui/scripts/vpc.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/763f6fd4/ui/scripts/vpc.js
----------------------------------------------------------------------
diff --git a/ui/scripts/vpc.js b/ui/scripts/vpc.js
index a9e839c..eeb6950 100644
--- a/ui/scripts/vpc.js
+++ b/ui/scripts/vpc.js
@@ -3239,7 +3239,9 @@
                         {
                           id: 'tierStaticNATs',
                           name: 'Static NATs',
-                          total: 0
+                          total: $.grep(publicIpAddresses, function(ip) {
+                            return ip.associatednetworkid == tier.id && ip.isstaticnat;
+                          }).length
                         },
                         {
                           id: 'tierVMs',


Mime
View raw message