mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix broken evaulation on auto discovery (#12408)
My Cisco IP phones were still being auto discovered even when i had autodiscovery.xdp set to false, and it wasn't ignoring them for the auto discovery regex either. This statement had some misplaced Parenthesis. Working now on my install with this fix.
This commit is contained in:
@@ -54,8 +54,8 @@ foreach ($cdp_array as $key => $cdp_if_array) {
|
||||
$remote_device_id = find_device_id($cdp['cdpCacheDeviceId'], $cdp_ip);
|
||||
|
||||
if (! $remote_device_id &&
|
||||
! can_skip_discovery($cdp['cdpCacheDeviceId'], $cdp['cdpCacheVersion'], $cdp['cdpCachePlatform'] &&
|
||||
Config::get('autodiscovery.xdp') === true)
|
||||
! can_skip_discovery($cdp['cdpCacheDeviceId'], $cdp['cdpCacheVersion'], $cdp['cdpCachePlatform']) &&
|
||||
Config::get('autodiscovery.xdp') === true
|
||||
) {
|
||||
$remote_device_id = discover_new_device($cdp['cdpCacheDeviceId'], $device, 'CDP', $interface);
|
||||
|
||||
|
Reference in New Issue
Block a user