mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
ifAlias is now derived from ifDescr if NULL
This commit is contained in:
@@ -352,6 +352,11 @@ foreach ($ports as $port) {
|
|||||||
}
|
}
|
||||||
}//end foreach
|
}//end foreach
|
||||||
|
|
||||||
|
if ($port['update']['ifAlias'] == '' || $port['update']['ifAlias'] == NULL) {
|
||||||
|
$port['update']['ifAlias'] = $port['ifDescr'];
|
||||||
|
d_echo('Using ifDescr due to ifAlias being NULL');
|
||||||
|
}
|
||||||
|
|
||||||
// Parse description (usually ifAlias) if config option set
|
// Parse description (usually ifAlias) if config option set
|
||||||
if (isset($config['port_descr_parser']) && is_file($config['install_dir'].'/'.$config['port_descr_parser'])) {
|
if (isset($config['port_descr_parser']) && is_file($config['install_dir'].'/'.$config['port_descr_parser'])) {
|
||||||
$port_attribs = array(
|
$port_attribs = array(
|
||||||
|
|||||||
Reference in New Issue
Block a user