Merge pull request #1281 from laf/issue-bgp-fix

fixed junos bgp4 polling :(
This commit is contained in:
Daniel Preussker
2015-06-15 12:05:54 +00:00

View File

@ -13,7 +13,8 @@ if ($config['enable_bgp'])
$peer2 = FALSE;
echo("Checking BGP peer ".$peer['bgpPeerIdentifier']." ");
if (!empty($peer['bgpPeerIdentifier']) && $device['os'] != "junos")
if( !empty($peer['bgpPeerIdentifier']) ) {
if( !strstr($peer['bgpPeerIdentifier'],':') || $device['os'] != "junos" )
{
# v4 BGP4 MIB
// FIXME - needs moved to function
@ -129,6 +130,7 @@ if ($config['enable_bgp'])
$bgpLocalAddr = Net_IPv6::compress(implode(':',$bgpLocalAddr6)); unset($bgpLocalAddr6);
}
}
}
if ($bgpPeerFsmEstablishedTime)
{