mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
More updates to bgp polling/disco and webui
This commit is contained in:
@@ -37,6 +37,11 @@ if ($config['enable_bgp'])
|
||||
list($ver, $peer) = explode(".", $peer,2);
|
||||
}
|
||||
list($peer_ip, $peer_as) = explode(" ", $peer);
|
||||
if (strstr($peer_ip, ":")) {
|
||||
$peer_ip_snmp = preg_replace("/:/", ' ', $peer_ip);
|
||||
$peer_ip = preg_replace("/(\S+\s+\S+)\s/", '$1:', $peer_ip_snmp);
|
||||
$peer_ip = str_replace('"','',str_replace(' ','',$peer_ip));
|
||||
}
|
||||
|
||||
if ($peer && $peer_ip != "0.0.0.0")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user