Load device attributes before load_os() in device_by_id_cache(). (#8044)

This commit is contained in:
Zmegolaz 2018-01-08 20:37:34 +01:00 committed by Tony Murray
parent eac128aca8
commit 2c9468979f

View File

@ -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