mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 18:38:25 +00:00
Load device attributes before load_os() in device_by_id_cache(). (#8044)
This commit is contained in:
parent
eac128aca8
commit
2c9468979f
@ -360,6 +360,7 @@ function device_by_id_cache($device_id, $refresh = false)
|
||||
$device = $cache['devices']['id'][$device_id];
|
||||
} else {
|
||||
$device = dbFetchRow("SELECT * FROM `devices` WHERE `device_id` = ?", array($device_id));
|
||||
$device['attribs'] = get_dev_attribs($device['device_id']);
|
||||
load_os($device);
|
||||
|
||||
//order vrf_lite_cisco with context, this will help to get the vrf_name and instance_name all the time
|
||||
|
Loading…
Reference in New Issue
Block a user