#900 make Port VLAN mismatch respect p_hide1002 setting

This commit is contained in:
Oliver Gorwits
2022-08-03 10:25:23 +01:00
parent 3d81f3e5f6
commit b40c30606e
2 changed files with 7 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ __PACKAGE__->result_source_instance->view_definition(<<'ENDSQL');
LEFT JOIN device_port dp2 ON (dp.ip = dp2.ip and dp.port = dp2.slave_of)
LEFT JOIN device_port_vlan dp2v ON (dp2.ip = dp2v.ip and dp2.port = dp2v.port)
WHERE dp.has_subinterfaces) alldpv
WHERE vlan NOT IN (1002, 1003, 1004, 1005) GROUP BY ip, port)
WHERE vlan::text NOT IN (?, ?, ?, ?) 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,