BGP-peers if no data, skip (#15548)

This commit is contained in:
Tony Murray
2023-11-05 18:29:50 -06:00
committed by GitHub
parent c0e9100838
commit fa93034edd

View File

@@ -458,10 +458,16 @@ if (! empty($peers)) {
$peer_data['bgpPeerIface'] = null;
}
}
d_echo($peer_data);
} catch (InvalidIpException $e) {
// ignore
}
if (empty($peer_data)) {
continue; // no data, try next peer
}
d_echo($peer_data);
// --- Send event log notices ---
if ($peer_data['bgpPeerFsmEstablishedTime']) {
if (! (is_array(\LibreNMS\Config::get('alerts.bgp.whitelist'))