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
This commit is contained in:
Tom Laermans
2010-02-05 17:38:30 +00:00
parent ff253868dc
commit d3c3bcb57f

View File

@@ -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 ");