mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
set device to network if os is ironware
git-svn-id: http://www.observium.org/svn/observer/trunk@975 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -122,13 +122,17 @@ while ($device = mysql_fetch_array($device_query))
|
||||
## ARP Table
|
||||
include("includes/discovery/arp-table.inc.php");
|
||||
|
||||
## BGP Peers (Quagga, Cisco, Juniper, Foundry)
|
||||
include("includes/discovery/bgp-peers.inc.php");
|
||||
|
||||
if($device['os'] == "ironware") {
|
||||
if ($device['type'] == "unknown") { $device['type'] = 'network'; }
|
||||
}
|
||||
|
||||
if($device['os'] == "screenos") {
|
||||
if ($device['type'] == "unknown") { $device['type'] = 'firewall'; }
|
||||
}
|
||||
|
||||
## BGP Peers (Quagga, Cisco, Juniper, Foundry)
|
||||
include("includes/discovery/bgp-peers.inc.php");
|
||||
|
||||
if($device['os'] == "junos") {
|
||||
if ($device['type'] == "unknown") { $device['type'] = 'network'; } # FIXME: could also be a Netscreen...
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user