2020-04-29 07:25:13 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
2022-01-30 16:28:18 -06:00
|
|
|
use LibreNMS\Interfaces\Models\Keyable;
|
2020-04-29 07:25:13 -05:00
|
|
|
|
2022-01-30 16:28:18 -06:00
|
|
|
class Stp extends DeviceRelatedModel implements Keyable
|
2020-04-29 07:25:13 -05:00
|
|
|
{
|
|
|
|
|
protected $table = 'stp';
|
|
|
|
|
protected $primaryKey = 'stp_id';
|
|
|
|
|
public $timestamps = false;
|
2022-01-30 16:28:18 -06:00
|
|
|
protected $fillable = [
|
|
|
|
|
'device_id',
|
|
|
|
|
'vlan',
|
|
|
|
|
'rootBridge',
|
|
|
|
|
'bridgeAddress',
|
|
|
|
|
'protocolSpecification',
|
|
|
|
|
'priority',
|
|
|
|
|
'timeSinceTopologyChange',
|
|
|
|
|
'topChanges',
|
|
|
|
|
'designatedRoot',
|
|
|
|
|
'rootCost',
|
|
|
|
|
'rootPort',
|
|
|
|
|
'maxAge',
|
|
|
|
|
'helloTime',
|
|
|
|
|
'holdTime',
|
|
|
|
|
'forwardDelay',
|
|
|
|
|
'bridgeMaxAge',
|
|
|
|
|
'bridgeHelloTime',
|
|
|
|
|
'bridgeForwardDelay',
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
public function getCompositeKey()
|
|
|
|
|
{
|
|
|
|
|
return $this->vlan;
|
|
|
|
|
}
|
2020-04-29 07:25:13 -05:00
|
|
|
}
|