mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -249,7 +249,7 @@ if (! Auth::user()->hasGlobalRead()) {
|
|||||||
$peer_type = "<span style='color: #00f;'>iBGP</span>";
|
$peer_type = "<span style='color: #00f;'>iBGP</span>";
|
||||||
} else {
|
} else {
|
||||||
$peer_type = "<span style='color: #0a0;'>eBGP</span>";
|
$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>";
|
$peer_type = "<span style='color: #f00;'>Priv eBGP</span>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user