mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 02:18:39 +00:00
Update bgp-peers.inc.php (#15154)
$address = ipv4.1.xxx.xxx.xxx.xxx -> could be 21 character, why this function? change verified on working on Nokia SR OS (TiMOS) 22.10.R4
This commit is contained in:
parent
8f12a4bac3
commit
993f35dbd2
@ -219,9 +219,6 @@ if (! empty($peers)) {
|
||||
$oid = explode('.', $key);
|
||||
$vrfInstance = $oid[0];
|
||||
$address = str_replace($oid[0] . '.' . $oid[1] . '.', '', $key);
|
||||
if (strlen($address) > 15) {
|
||||
$address = IP::fromHexString($address)->compressed();
|
||||
}
|
||||
$bgpPeers[$vrfInstance][$address] = $value;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user