mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Fixed bgpPeers_cbgp discovery for junos (#7743)
This commit is contained in:
@@ -86,8 +86,8 @@ if (Config::get('enable_bgp')) {
|
||||
d_echo($j_bgp);
|
||||
foreach ($j_bgp as $index => $entry) {
|
||||
$ip = IP::fromHexString($entry['jnxBgpM2PeerRemoteAddr'], true);
|
||||
d_echo("peerindex for '.$ip->getFamily().' $ip is ".$entry['jnxBgpM2PeerIndex']."\n");
|
||||
$j_peerIndexes[$ip] = $entry['jnxBgpM2PeerIndex'];
|
||||
d_echo("peerindex for ".$ip->getFamily() ." $ip is ".$entry['jnxBgpM2PeerIndex']."\n");
|
||||
$j_peerIndexes[(string)$ip] = $entry['jnxBgpM2PeerIndex'];
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user