mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 10:28:13 +00:00
Bug - VRP - fix OutOfRange QueryException + missing key (#16290)
* fix OutOfRange QueryException * move up * missing key * another * another
This commit is contained in:
parent
9d35fbc6a7
commit
7aeb540e5a
@ -212,6 +212,7 @@ class Vrp extends OS implements
|
||||
$txpow = $radio['hwWlanRadioActualEIRP'] ?? 0;
|
||||
$interference = $radio['hwWlanRadioChInterferenceRate'] ?? 0;
|
||||
$radioutil = $radio['hwWlanRadioChUtilizationRate'] ?? 0;
|
||||
$radioutil = ($radioutil > 100 || $radioutil < 0) ? -1 : $radioutil;
|
||||
$numasoclients = $clientPerRadio[$ap_id][$r_id] ?? 0;
|
||||
$radio['hwWlanRadioType'] = $radio['hwWlanRadioType'] ?? 0;
|
||||
|
||||
@ -385,6 +386,9 @@ class Vrp extends OS implements
|
||||
|
||||
// update the DB
|
||||
foreach ($portAuthSessionEntry as $authId => $portAuthSessionEntryParameters) {
|
||||
if (! array_key_exists('hwAccessInterface', $portAuthSessionEntryParameters) || ! array_key_exists('hwAccessMACAddress', $portAuthSessionEntryParameters)) {
|
||||
continue;
|
||||
}
|
||||
$mac_address = strtolower(implode(array_map('zeropad', explode(':', $portAuthSessionEntryParameters['hwAccessMACAddress']))));
|
||||
$port_id = $ifName_map->get($portAuthSessionEntryParameters['hwAccessInterface'], 0);
|
||||
if ($port_id <= 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user