From 77e456831045bed83c38098a323a5903b9899a6d Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Sun, 28 Feb 2010 20:39:02 +0000 Subject: [PATCH] set device to network if os is ironware git-svn-id: http://www.observium.org/svn/observer/trunk@975 61d68cd4-352d-0410-923a-c4978735b2b8 --- discovery.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/discovery.php b/discovery.php index 61022da54a..b6e8de1934 100755 --- a/discovery.php +++ b/discovery.php @@ -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... }