add bgp peer description to alert_detail (#16233)

* add bgp peer description to alert_detail

* style

---------

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
This commit is contained in:
Jeff Engleman
2024-07-29 15:54:10 -04:00
committed by GitHub
parent 03bbf5ed7a
commit 903ed58fc3

View File

@@ -760,6 +760,7 @@ function alert_details($details)
'proto' => 'bgp',
]) .
"'>" . $tmp_alerts['bgpPeerIdentifier'] . '</a>';
$fault_detail .= ', Desc ' . $tmp_alerts['bgpPeerDescr'] ?? '';
$fault_detail .= ', AS' . $tmp_alerts['bgpPeerRemoteAs'];
$fault_detail .= ', State ' . $tmp_alerts['bgpPeerState'];
$fallback = false;