mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 18:38:25 +00:00
efb157f5fb
* Fix PHPDoc * Fix PHPDoc
47 lines
1015 B
PHP
47 lines
1015 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use LibreNMS\Interfaces\Models\Keyable;
|
|
|
|
class MplsSdp extends Model implements Keyable
|
|
{
|
|
protected $primaryKey = 'sdp_id';
|
|
public $timestamps = false;
|
|
protected $fillable = [
|
|
'sdp_oid',
|
|
'device_id',
|
|
'sdpRowStatus',
|
|
'sdpDelivery',
|
|
'sdpDescription',
|
|
'sdpAdminStatus',
|
|
'sdpOperStatus',
|
|
'sdpAdminPathMtu',
|
|
'sdpOperPathMtu',
|
|
'sdpLastMgmtChange',
|
|
'sdpLastStatusChange',
|
|
'sdpActiveLspType',
|
|
'sdpFarEndInetAddressType',
|
|
'sdpFarEndInetAddress',
|
|
];
|
|
|
|
// ---- Helper Functions ----
|
|
|
|
/**
|
|
* Get a string that can identify a unique instance of this model
|
|
* @return int
|
|
*/
|
|
public function getCompositeKey()
|
|
{
|
|
return $this->sdp_oid;
|
|
}
|
|
|
|
// ---- Define Relationships ----
|
|
|
|
public function binds()
|
|
{
|
|
return $this->hasMany(\App\Models\MplsSdpBind::class, 'sdp_id');
|
|
}
|
|
}
|