From 241ecf33538bb58bc3fccf293b1080fe396cf5db Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Sun, 22 Dec 2019 23:31:40 +0000 Subject: [PATCH] #524 ipinventory misses mac address for device ips --- lib/App/Netdisco/Web/Plugin/Report/IpInventory.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/App/Netdisco/Web/Plugin/Report/IpInventory.pm b/lib/App/Netdisco/Web/Plugin/Report/IpInventory.pm index 0fc809f0..82c59422 100644 --- a/lib/App/Netdisco/Web/Plugin/Report/IpInventory.pm +++ b/lib/App/Netdisco/Web/Plugin/Report/IpInventory.pm @@ -38,10 +38,10 @@ get '/ajax/content/report/ipinventory' => require_login sub { my $rs1 = schema('netdisco')->resultset('DeviceIp')->search( undef, - { join => 'device', + { join => ['device', 'device_port'], select => [ 'alias AS ip', - \'NULL::macaddr as mac', + 'device_port.mac as mac', 'creation AS time_first', 'device.last_discover AS time_last', 'dns',