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:
i4networks 2023-07-20 05:29:00 +02:00 committed by GitHub
parent 8f12a4bac3
commit 993f35dbd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
}