Rewrite ISIS Adjacency discovery/polling (#13155)

* Rewrite ISIS Adjacency discovery/polling
hopefully much faster now, do most work in discovery and just check up/down in poller.

* unused variable

* Implement option for OS override

* fix an incorrect typehint

* test data

* work around stupid migration name

* update schema

* better handling for the on-demand discovery

* more detailed phpdoc

* fix when adjacency is not found

* don't clear out data when adjacency goes away

* Adjust nullable fields

* fixes

* fix class name

* correct migration

* fix bug causing adjacency data to always be blank

* port popups for port links

* isisISAdjState does not need to be nullable

* remove extra space

* default off

* If port is missing return $text

* update schema

* Cleanup old components

* correc copy paste error
This commit is contained in:
Tony Murray
2021-08-23 21:19:55 -05:00
committed by GitHub
parent 456c5d2fae
commit 8e409ba051
13 changed files with 358 additions and 186 deletions
@@ -0,0 +1,30 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class IsisAdjacenciesAddAdminStatus extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('isis_adjacencies', function (Blueprint $table) {
$table->string('isisCircAdminState', 16)->default('off');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropColumns('isis_adjacencies', 'isisCircAdminState');
}
}
@@ -0,0 +1,46 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class IsisAdjacenciesNullable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('isis_adjacencies', function (Blueprint $table) {
$table->integer('port_id')->nullable()->change();
$table->string('isisISAdjNeighSysType', 128)->nullable()->change();
$table->string('isisISAdjNeighSysID', 128)->nullable()->change();
$table->string('isisISAdjNeighPriority', 128)->nullable()->change();
$table->unsignedBigInteger('isisISAdjLastUpTime')->nullable()->change();
$table->string('isisISAdjAreaAddress', 128)->nullable()->change();
$table->string('isisISAdjIPAddrType', 128)->nullable()->change();
$table->string('isisISAdjIPAddrAddress', 128)->nullable()->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('isis_adjacencies', function (Blueprint $table) {
$table->integer('port_id')->change();
$table->string('isisISAdjNeighSysType', 128)->change();
$table->string('isisISAdjNeighSysID', 128)->change();
$table->string('isisISAdjNeighPriority', 128)->change();
$table->unsignedBigInteger('isisISAdjLastUpTime')->change();
$table->string('isisISAdjAreaAddress', 128)->change();
$table->string('isisISAdjIPAddrType', 128)->change();
$table->string('isisISAdjIPAddrAddress', 128)->change();
});
}
}