mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Show display name in Oxidized config search (#14800)
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
* @copyright (C) 2013 LibreNMS Group
|
||||
*/
|
||||
|
||||
use App\Facades\DeviceCache;
|
||||
use LibreNMS\Config;
|
||||
use LibreNMS\Enum\ImageFormat;
|
||||
use LibreNMS\Util\Number;
|
||||
@@ -923,6 +924,7 @@ function search_oxidized_config($search_in_conf_textbox)
|
||||
foreach ($nodes as &$n) {
|
||||
$dev = device_by_name($n['node']);
|
||||
$n['dev_id'] = $dev ? $dev['device_id'] : false;
|
||||
$n['full_name'] = $n['dev_id'] ? DeviceCache::get($n['dev_id'])->displayName() : $n['full_name'];
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user