mirror of
https://github.com/librenms/librenms.git
synced 2024-09-28 22:06:25 +00:00
Stop ifAlias being set to blank
This commit is contained in:
parent
26e07d59da
commit
5f5788e90c
@ -23,6 +23,10 @@ logfile($descr . ','. $device_id . ','. $ifName. ','. $port_id);
|
||||
|
||||
if (!empty($ifName) && is_numeric($port_id)) {
|
||||
// We have ifName and port id so update ifAlias
|
||||
if (empty($descr)) {
|
||||
$descr = 'repoll';
|
||||
// Set to repoll so we avoid using ifDescr on port poll
|
||||
}
|
||||
if (dbUpdate(array('ifAlias'=>$descr), 'ports', '`port_id`=?', array($port_id)) > 0) {
|
||||
$device = device_by_id_cache($device_id);
|
||||
if (empty($descr)) {
|
||||
|
Loading…
Reference in New Issue
Block a user