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:
ottorei 2022-04-14 08:36:13 +03:00 committed by GitHub
parent ac089745bc
commit e495769f17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) . ';&nbsp;';
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) . ';&nbsp;';
}
$fallback = false;
}