Merge pull request #1482 from spinza/fixzeromac

Ignore links based on 'unreal' mac addresses.
This commit is contained in:
Neil Lathwood 2015-07-19 20:59:18 +01:00
commit b786e89f16

View File

@ -68,6 +68,7 @@ if (in_array('mac',$config['network_map_items'])) {
LEFT JOIN `devices` AS `D2` ON `P2`.`device_id`=`D2`.`device_id`
$join_sql
WHERE
`M`.`mac_address` NOT IN ('000000000000','ffffffffffff')
`P1`.`port_id` IS NOT NULL AND
`P2`.`port_id` IS NOT NULL AND
`D1`.`device_id` != `D2`.`device_id`