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 <bfede...@gmail.com> Authored: Wed May 22 12:15:45 2013 -0700 Committer: Brian Federle <bfede...@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',