mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
new funky discovery stuff (autodiscovery works now for discovery protocols)
git-svn-id: http://www.observium.org/svn/observer/trunk@2460 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
+2
-2
@@ -179,11 +179,11 @@ function ifclass($ifOperStatus, $ifAdminStatus)
|
||||
return $ifclass;
|
||||
}
|
||||
|
||||
function device_by_id_cache($device_id)
|
||||
function device_by_id_cache($device_id, $refresh = '0')
|
||||
{
|
||||
global $device_cache;
|
||||
|
||||
if (isset($device_cache[$device_id]) && is_array($device_cache[$device_id]))
|
||||
if (!$refresh && isset($device_cache[$device_id]) && is_array($device_cache[$device_id]))
|
||||
{
|
||||
$device = $device_cache[$device_id];
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user