$entry) { if ($ip === '0.0.0.0') { continue; } foreach ($entry as $if => $ospf) { if ($ospf['ospfNbmaNbrStatus'] !== 'active' || $ospf['ospfNbrRtrId'] === '0.0.0.0') { continue; } // Try find remote device and check if already cached $remote_device_id = get_autodiscovery_device_id($device, $ospf['ospfNbrRtrId']); if (is_null($remote_device_id) && // NULL - never cached in other rounds check_autodiscovery($ospf['ospfNbrRtrId'])) { // Check all previous autodiscovery rounds // Neighbour never checked, try autodiscovery $remote_device_id = autodiscovery_device($ospf['ospfNbrRtrId'], NULL, 'OSPF', NULL, $device); } } } } // EOF