librenms/app/Models/MplsTunnelCHop.php
Vitali Kari 532ab1127a Mpls Path Visualization (#10936)
* 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
2020-01-01 23:45:06 +01:00

37 lines
891 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use LibreNMS\Interfaces\Models\Keyable;
class MplsTunnelCHop extends Model implements Keyable
{
protected $primaryKey = 'c_hop_id';
public $timestamps = false;
protected $fillable = [
'c_hop_id',
'mplsTunnelCHopListIndex',
'mplsTunnelCHopIndex',
'lsp_path_id',
'device_id',
'mplsTunnelCHopAddrType',
'mplsTunnelCHopIpv4Addr',
'mplsTunnelCHopIpv6Addr',
'mplsTunnelCHopAsNumber',
'mplsTunnelCHopStrictOrLoose',
'mplsTunnelCHopRouterId',
];
// ---- Helper Functions ----
/**
* Get a string that can identify a unique instance of this model
* @return string
*/
public function getCompositeKey()
{
return $this->mplsTunnelCHopListIndex . '-' . $this->mplsTunnelCHopIndex;
}
}