Filter by VLAN in Pors with Multiple Nodes report

This commit is contained in:
Oliver Gorwits
2015-10-04 19:58:01 +01:00
parent a268ad1674
commit 98165b75c3
3 changed files with 18 additions and 0 deletions

View File

@@ -17,6 +17,8 @@ register_report(
get '/ajax/content/report/portmultinodes' => require_login sub {
my @results = schema('netdisco')->resultset('Device')->search(
{ 'ports.remote_ip' => undef,
(param('vlan') ?
('ports.vlan' => param('vlan'), 'nodes.vlan' => param('vlan')) : ()),
'nodes.active' => 1,
'wireless.port' => undef
},