use port type filter for links instead of ethernetCsmacd
per is_vlan_interface from App::Netdisco::Util::Port see also https://www.iana.org/assignments/ianaiftype-mib/ianaiftype-mib
This commit is contained in:
@@ -30,7 +30,9 @@ __PACKAGE__->result_source_instance->view_definition(<<ENDSQL
|
|||||||
INNER JOIN device_port dp2 ON (di.ip = dp2.ip AND dp.remote_port = dp2.port)
|
INNER JOIN device_port dp2 ON (di.ip = dp2.ip AND dp.remote_port = dp2.port)
|
||||||
|
|
||||||
WHERE dp.remote_port IS NOT NULL
|
WHERE dp.remote_port IS NOT NULL
|
||||||
AND dp.type = 'ethernetCsmacd'
|
AND dp.type !~* '^(53|ieee8023adLag|propVirtual|l2vlan|l3ipvlan|135|136|137)\$'
|
||||||
|
AND dp.port !~* 'vlan'
|
||||||
|
AND dp.name !~* 'vlan'
|
||||||
AND dp.ip <= dp2.ip
|
AND dp.ip <= dp2.ip
|
||||||
GROUP BY left_ip, left_dns, left_name, right_ip, right_dns, right_name
|
GROUP BY left_ip, left_dns, left_name, right_ip, right_dns, right_name
|
||||||
ORDER BY dp.ip
|
ORDER BY dp.ip
|
||||||
|
|||||||
Reference in New Issue
Block a user