Files
librenms-librenms/app/Models/Stp.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
769 B
PHP
Raw Normal View History

<?php
namespace App\Models;
use LibreNMS\Interfaces\Models\Keyable;
class Stp extends DeviceRelatedModel implements Keyable
{
protected $table = 'stp';
protected $primaryKey = 'stp_id';
public $timestamps = false;
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;
}
}