mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -25,8 +25,9 @@
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use LibreNMS\Interfaces\Models\Keyable;
|
||||
|
||||
class IsisAdjacency extends PortRelatedModel
|
||||
class IsisAdjacency extends PortRelatedModel implements Keyable
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
@@ -37,6 +38,7 @@ class IsisAdjacency extends PortRelatedModel
|
||||
'device_id',
|
||||
'port_id',
|
||||
'ifIndex',
|
||||
'isisCircAdminState',
|
||||
'isisISAdjState',
|
||||
'isisISAdjNeighSysType',
|
||||
'isisISAdjNeighSysID',
|
||||
@@ -53,4 +55,9 @@ class IsisAdjacency extends PortRelatedModel
|
||||
{
|
||||
return $this->belongsTo(\App\Models\Port::class, 'device_id');
|
||||
}
|
||||
|
||||
public function getCompositeKey()
|
||||
{
|
||||
return $this->ifIndex;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user