MAC Vendor OUI use scheduler (#15187)

* MAC Vendor OUI use scheduler
Add command to update `lnms maintenance:fetch-ouis`
Show vendor column in tables if mac_oui.enabled is set to true
Improve scheduler validation handle non-standard install directories and systems without systemd
Add index to table to improve speed and improve mac->vendor lookup speed
Scheduled weekly with random wait to prevent stampeding herd issues for upstream
drop oui update from daily

* MAC Vendor OUI use scheduler
Add command to update `lnms maintenance:fetch-ouis`
Show vendor column in tables if mac_oui.enabled is set to true

* Lint fixes and better prefix detection

* update schema file
This commit is contained in:
Tony Murray
2023-08-03 19:29:30 -05:00
committed by GitHub
parent 5a56e9081e
commit 12f8bb2040
19 changed files with 273 additions and 135 deletions
-9
View File
@@ -358,15 +358,6 @@ if ($options['f'] === 'peeringdb') {
}
}
if ($options['f'] === 'mac_oui') {
$lock = Cache::lock('vendor_oui_db', 86000);
if ($lock->get()) {
$res = mac_oui_to_database();
$lock->release();
exit($res);
}
}
if ($options['f'] === 'refresh_os_cache') {
echo 'Clearing OS cache' . PHP_EOL;
if (is_file(Config::get('install_dir') . '/cache/os_defs.cache')) {