mirror of
https://github.com/librenms/librenms.git
synced 2024-09-22 10:58:42 +00:00
532ab1127a
* update nokia mibs * database migrations * add code * html code * update db schema * add test data * add FIXME * move mibs/nokia/MPLS-TE-MIB to mibs/MPLS-TE-MIB
41 lines
1020 B
PHP
41 lines
1020 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use LibreNMS\Interfaces\Models\Keyable;
|
|
|
|
class MplsTunnelArHop extends Model implements Keyable
|
|
{
|
|
protected $primaryKey = 'ar_hop_id';
|
|
public $timestamps = false;
|
|
protected $fillable = [
|
|
'ar_hop_id',
|
|
'mplsTunnelARHopListIndex',
|
|
'mplsTunnelARHopIndex',
|
|
'lsp_path_id',
|
|
'device_id',
|
|
'mplsTunnelARHopAddrType',
|
|
'mplsTunnelARHopIpv4Addr',
|
|
'mplsTunnelARHopIpv6Addr',
|
|
'mplsTunnelARHopAsNumber',
|
|
'mplsTunnelARHopStrictOrLoose',
|
|
'mplsTunnelARHopRouterId',
|
|
'localProtected',
|
|
'linkProtectionInUse',
|
|
'bandwidthProtected',
|
|
'nextNodeProtected',
|
|
];
|
|
|
|
// ---- Helper Functions ----
|
|
|
|
/**
|
|
* Get a string that can identify a unique instance of this model
|
|
* @return string
|
|
*/
|
|
public function getCompositeKey()
|
|
{
|
|
return $this->mplsTunnelARHopListIndex . '-' . $this->mplsTunnelARHopIndex;
|
|
}
|
|
}
|