mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
accesspoint support (probably) from ethan sommer (#50)
git-svn-id: http://www.observium.org/svn/observer/trunk@3223 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -279,6 +279,16 @@ function device_by_name($name, $refresh = 0)
|
||||
return device_by_id_cache(getidbyname($name), $refresh);
|
||||
}
|
||||
|
||||
|
||||
function accesspoint_by_id($ap_id, $refresh = '0') {
|
||||
|
||||
$ap = dbFetchRow("SELECT * FROM `accesspoint` WHERE `accesspoint_id` = ?", array($ap_id));
|
||||
|
||||
return $ap;
|
||||
|
||||
}
|
||||
|
||||
|
||||
function device_by_id_cache($device_id, $refresh = '0')
|
||||
{
|
||||
global $cache;
|
||||
|
||||
Reference in New Issue
Block a user