mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge pull request #1811 from laf/issue-1689
Ability to override the ports ifAlias
This commit is contained in:
@@ -333,6 +333,13 @@ foreach ($ports as $port) {
|
||||
|
||||
// Update IF-MIB data
|
||||
foreach ($data_oids as $oid) {
|
||||
|
||||
if ($oid == 'ifAlias') {
|
||||
if (get_dev_attrib($device, 'ifName', $port['ifName'])) {
|
||||
$this_port['ifAlias'] = $port['ifAlias'];
|
||||
}
|
||||
}
|
||||
|
||||
if ($port[$oid] != $this_port[$oid] && !isset($this_port[$oid])) {
|
||||
$port['update'][$oid] = array('NULL');
|
||||
log_event($oid.': '.$port[$oid].' -> NULL', $device, 'interface', $port['port_id']);
|
||||
|
Reference in New Issue
Block a user