mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
Updated BGP polling for Cisco to support CISCO-BGP4-MIB better
This commit is contained in:
@@ -1201,3 +1201,17 @@ function first_oid_match($device, $list) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function ip_to_hex($ip) {
|
||||
|
||||
if (strstr($ip, ":")) {
|
||||
$ipv6 = explode(':', $ip);
|
||||
foreach ($ipv6 as $item) {
|
||||
$return .= hexdec($item).'.';
|
||||
}
|
||||
$return = substr($return, 0, -1);
|
||||
} else {
|
||||
$return = $ip;
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user