fix: Fixed bgpPeers_cbgp discovery for junos (#7743)

This commit is contained in:
Neil Lathwood
2017-11-15 23:29:46 +00:00
committed by GitHub
parent 22f4974eb6
commit 47a36b1ce6

View File

@@ -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'];
}
}