Skip to content

Commit

Permalink
#877 ignore vlan 1002-1005 in port vlan mismatch report
Browse files Browse the repository at this point in the history
  • Loading branch information
ollyg committed Jul 26, 2022
1 parent 1d2e419 commit 56ce495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/App/Netdisco/DB/Result/Virtual/PortVLANMismatch.pm
Expand Up @@ -14,7 +14,7 @@ __PACKAGE__->result_source_instance->view_definition(<<'ENDSQL');
array_to_string(array_agg( CASE WHEN native THEN 'n:' || vlan::text
ELSE vlan::text END
ORDER BY vlan ASC ), ', ') AS vlist
FROM device_port_vlan GROUP BY ip, port)
FROM device_port_vlan WHERE vlan NOT IN (1002, 1003, 1004, 1005) GROUP BY ip, port)
SELECT CASE WHEN length(ld.dns) > 0 THEN ld.dns ELSE host(ld.ip) END AS left_device,
lp.port AS left_port,
Expand Down

0 comments on commit 56ce495

Please sign in to comment.