Fixing Private eBGP visualization, corrected 16bit ASN private range, added 32bit ASN range (#15357)

* Updated Install-LibreNMS.md

Default PHP version of Debian 11 (following this documentation) is 8.2 currently, instead of 8.1

* Fixed Markdown/Parse mode for Telegram

* Fixing Private eBGP visualization, corrected 16bit ASN private range, added 32bit ASN range

* Removed quotes
This commit is contained in:
Tim de Boer
2023-09-27 20:48:27 +02:00
committed by GitHub
parent 1feabc04f5
commit 36cc6c3237

View File

@@ -249,7 +249,7 @@ if (! Auth::user()->hasGlobalRead()) {
$peer_type = "<span style='color: #00f;'>iBGP</span>";
} else {
$peer_type = "<span style='color: #0a0;'>eBGP</span>";
if ($peer['bgpPeerRemoteAS'] >= '64512' && $peer['bgpPeerRemoteAS'] <= '65535') {
if (($peer['bgpPeerRemoteAs'] >= 64512 && $peer['bgpPeerRemoteAs'] <= 65534) || ($peer['bgpPeerRemoteAs'] >= 4200000000 && $peer['bgpPeerRemoteAs'] <= 4294967294)) {
$peer_type = "<span style='color: #f00;'>Priv eBGP</span>";
}
}