From 56ce4956cc786a968c0b7f3bca774d75eda3a52d Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Tue, 26 Jul 2022 21:09:15 +0100 Subject: [PATCH] #877 ignore vlan 1002-1005 in port vlan mismatch report --- lib/App/Netdisco/DB/Result/Virtual/PortVLANMismatch.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/App/Netdisco/DB/Result/Virtual/PortVLANMismatch.pm b/lib/App/Netdisco/DB/Result/Virtual/PortVLANMismatch.pm index 977406c3..09119b4e 100644 --- a/lib/App/Netdisco/DB/Result/Virtual/PortVLANMismatch.pm +++ b/lib/App/Netdisco/DB/Result/Virtual/PortVLANMismatch.pm @@ -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,