mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Add FDB table vendor search drop down (#15072)
* Add vendor search and related functions * Add OUIDB cache for vendor lookup * Add vendor drop down * appy style CI changes * Apply style CI and lint changes * more styleCI changes * update type hinting * Edit mac_oui cache lock name and function * Update MAC OUI message during daily * Use DB for vendor lookup * New vendor_oui table migration * New MAC OUI to database function * Update readbleOUI to use DB rather than cache * Make StyleCI changes * styleCI tweak * Remove lock release to allow refresh timer * change migration name to match table * add schema dump * update schema * styleCI tweak
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('vendor_ouis', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('vendor');
|
||||
$table->string('oui');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('vendor_ouis');
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user