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