mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
junos support updates (add BGP collection)
git-svn-id: http://www.observium.org/svn/observer/trunk@460 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -19,8 +19,8 @@
|
||||
$peers = trim(str_replace("BGP4-MIB::bgpPeerRemoteAs.", "", `$peers_cmd`));
|
||||
foreach (explode("\n", $peers) as $peer) {
|
||||
|
||||
if($peer) {
|
||||
list($peer_ip, $peer_as) = split(" ", $peer);
|
||||
list($peer_ip, $peer_as) = split(" ", $peer);
|
||||
if($peer && $peer_ip != "0.0.0.0") {
|
||||
|
||||
$peerlist[] = $device['device_id'] ." $peer_ip";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user