From 592307dd32860c4783302ea82650472a90cd0537 Mon Sep 17 00:00:00 2001 From: "Eric A. Miller" Date: Mon, 2 Jun 2014 22:38:54 -0400 Subject: [PATCH] Fix for device counts in VLAN Inventory report --- Netdisco/Changes | 4 ++++ Netdisco/lib/App/Netdisco/Web/Plugin/Report/VlanInventory.pm | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Netdisco/Changes b/Netdisco/Changes index 43f792a4..0ab55eb0 100644 --- a/Netdisco/Changes +++ b/Netdisco/Changes @@ -5,6 +5,10 @@ * Ignore devices with "phone" in their CDP/LLDP platform description * Change log format to contain UTC timestamp + [BUG FIXES] + + * Fix for device counts in VLAN Inventory report + 2.027007 - 2014-05-27 [BUG FIXES] diff --git a/Netdisco/lib/App/Netdisco/Web/Plugin/Report/VlanInventory.pm b/Netdisco/lib/App/Netdisco/Web/Plugin/Report/VlanInventory.pm index 91492277..9a2945d3 100644 --- a/Netdisco/lib/App/Netdisco/Web/Plugin/Report/VlanInventory.pm +++ b/Netdisco/lib/App/Netdisco/Web/Plugin/Report/VlanInventory.pm @@ -21,7 +21,7 @@ get '/ajax/content/report/vlaninventory' => require_login sub { select => [ 'me.vlan', 'me.description', - { count => { distinct => 'ports.ip' } }, + { count => { distinct => 'me.ip' } }, { count => 'ports.vlan' } ], as => [qw/ vlan description dcount pcount /],