From Sharp Crane, 6 Years ago, written in Plain Text.
Embed
  1. diff --git a/includes/discovery/bgp-peers.inc.php b/includes/discovery/bgp-peers.inc.php
  2. index fb2248f58..3f16d28bd 100644
  3. --- a/includes/discovery/bgp-peers.inc.php
  4. +++ b/includes/discovery/bgp-peers.inc.php
  5. @@ -86,8 +86,8 @@ if (Config::get('enable_bgp')) {
  6.                          d_echo($j_bgp);
  7.                          foreach ($j_bgp as $index => $entry) {
  8.                              $ip = IP::fromHexString($entry['jnxBgpM2PeerRemoteAddr'], true);
  9. -                            d_echo("peerindex for '.$ip->getFamily().' $ip is ".$entry['jnxBgpM2PeerIndex']."\n");
  10. -                            $j_peerIndexes[$ip] = $entry['jnxBgpM2PeerIndex'];
  11. +                            d_echo("peerindex for ".$ip->getFamily() ." $ip is ".$entry['jnxBgpM2PeerIndex']."\n");
  12. +                            $j_peerIndexes[(string)$ip] = $entry['jnxBgpM2PeerIndex'];
  13.                          }
  14.                      }
  15.