mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 18:38:25 +00:00
Add ISIS-details to alert details (#13920)
* Add ISIS-details to alert details * Apply fixes from StyleCI Co-authored-by: StyleCI Bot <bot@styleci.io>
This commit is contained in:
parent
ac089745bc
commit
e495769f17
@ -766,8 +766,14 @@ function alert_details($details)
|
||||
}
|
||||
|
||||
if ($tmp_alerts['port_id']) {
|
||||
$tmp_alerts = cleanPort($tmp_alerts);
|
||||
$fault_detail .= generate_port_link($tmp_alerts) . '; ';
|
||||
if ($tmp_alerts['isisISAdjState']) {
|
||||
$fault_detail .= 'Adjacent ' . $tmp_alerts['isisISAdjIPAddrAddress'];
|
||||
$port = \App\Models\Port::find($tmp_alerts['port_id']);
|
||||
$fault_detail .= ', Interface ' . \LibreNMS\Util\Url::portLink($port);
|
||||
} else {
|
||||
$tmp_alerts = cleanPort($tmp_alerts);
|
||||
$fault_detail .= generate_port_link($tmp_alerts) . '; ';
|
||||
}
|
||||
$fallback = false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user