mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00: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:
@@ -63,6 +63,11 @@ while ($device = mysql_fetch_array($device_query)) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($device['os'] == "JunOS") {
|
||||||
|
include("includes/discovery/bgp-peers.php");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if($device['os'] == "IOS" || $device['os'] == "IOS XE") {
|
if($device['os'] == "IOS" || $device['os'] == "IOS XE") {
|
||||||
include("includes/discovery/cisco-vlans.php");
|
include("includes/discovery/cisco-vlans.php");
|
||||||
include("includes/discovery/cisco-physical.php");
|
include("includes/discovery/cisco-physical.php");
|
||||||
|
@@ -19,8 +19,8 @@
|
|||||||
$peers = trim(str_replace("BGP4-MIB::bgpPeerRemoteAs.", "", `$peers_cmd`));
|
$peers = trim(str_replace("BGP4-MIB::bgpPeerRemoteAs.", "", `$peers_cmd`));
|
||||||
foreach (explode("\n", $peers) as $peer) {
|
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";
|
$peerlist[] = $device['device_id'] ." $peer_ip";
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user