mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fall back to IPV6-MIB IPv6 address discovery if IP-MIB IPv6 address discovery doesn't return any valid addresses (#15714)
This commit is contained in:
@@ -27,7 +27,7 @@ foreach (DeviceCache::getPrimary()->getVrfContexts() as $context_name) {
|
||||
}
|
||||
}
|
||||
|
||||
if (empty($oids)) {
|
||||
if (empty($oids) || empty($valid)) {
|
||||
$oids = snmp_walk($device, 'ipv6AddrPfxLength', ['-OsqnU', '-Ln'], 'IPV6-MIB');
|
||||
$oids = str_replace('.1.3.6.1.2.1.55.1.8.1.2.', '', $oids);
|
||||
$oids = str_replace('"', '', $oids);
|
||||
|
Reference in New Issue
Block a user