From d3c3bcb57f8f491b5902b51b7ed88bcd0e28653f Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Fri, 5 Feb 2010 17:38:30 +0000 Subject: [PATCH] allow as0 as local asn, to work around an apparent problem in junos 8.2R4.5 git-svn-id: http://www.observium.org/svn/observer/trunk@763 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/discovery/bgp-peers.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/discovery/bgp-peers.php b/includes/discovery/bgp-peers.php index 9f9289c35..d9a915eed 100755 --- a/includes/discovery/bgp-peers.php +++ b/includes/discovery/bgp-peers.php @@ -7,8 +7,8 @@ $as_cmd = $config['snmpwalk'] . " -m BGP4-MIB -CI -Oqvn -" . $device['snmpver'] . " -c" . $device['community'] . " " . $device['hostname'].":".$device['port'] . " "; $as_cmd .= ".1.3.6.1.2.1.15.2"; $bgpLocalAs = trim(shell_exec($as_cmd)); - - if($bgpLocalAs && !strstr($bgpLocalAs, " ")) + + if(is_numeric($bgpLocalAs)) { echo("AS$bgpLocalAs ");