2019-08-24 23:52:10 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
2024-08-21 01:12:09 -05:00
|
|
|
use LibreNMS\Interfaces\Models\Keyable;
|
|
|
|
|
|
|
|
|
|
class EntPhysical extends DeviceRelatedModel implements Keyable
|
2019-08-24 23:52:10 +02:00
|
|
|
{
|
|
|
|
|
protected $table = 'entPhysical';
|
|
|
|
|
protected $primaryKey = 'entPhysical_id';
|
2024-08-21 01:12:09 -05:00
|
|
|
public $timestamps = false;
|
|
|
|
|
protected $fillable = [
|
|
|
|
|
'entPhysicalIndex',
|
|
|
|
|
'entPhysicalDescr',
|
|
|
|
|
'entPhysicalContainedIn',
|
|
|
|
|
'entPhysicalClass',
|
|
|
|
|
'entPhysicalName',
|
|
|
|
|
'entPhysicalSerialNum',
|
|
|
|
|
'entPhysicalModelName',
|
|
|
|
|
'entPhysicalMfgName',
|
|
|
|
|
'entPhysicalVendorType',
|
|
|
|
|
'entPhysicalParentRelPos',
|
|
|
|
|
'entPhysicalHardwareRev',
|
|
|
|
|
'entPhysicalFirmwareRev',
|
|
|
|
|
'entPhysicalSoftwareRev',
|
|
|
|
|
'entPhysicalIsFRU',
|
|
|
|
|
'entPhysicalAlias',
|
|
|
|
|
'entPhysicalAssetID',
|
|
|
|
|
'ifIndex',
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
public function getCompositeKey()
|
|
|
|
|
{
|
|
|
|
|
return $this->entPhysicalIndex;
|
|
|
|
|
}
|
2019-08-24 23:52:10 +02:00
|
|
|
}
|