mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -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 ");
|
||||
|
||||
|
Reference in New Issue
Block a user