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:
Tom Laermans
2010-02-28 20:39:02 +00:00
parent 488f6cd057
commit 77e4568310

View File

@@ -122,13 +122,17 @@ while ($device = mysql_fetch_array($device_query))
## ARP Table ## ARP Table
include("includes/discovery/arp-table.inc.php"); 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['os'] == "screenos") {
if ($device['type'] == "unknown") { $device['type'] = 'firewall'; } 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['os'] == "junos") {
if ($device['type'] == "unknown") { $device['type'] = 'network'; } # FIXME: could also be a Netscreen... if ($device['type'] == "unknown") { $device['type'] = 'network'; } # FIXME: could also be a Netscreen...
} }