Files
librenms-librenms/app/Models/PortStack.php
Tony Murray b41d1b7ffb Fix Port Channels take 2 (#16246)
* Resubmit of #16227

* Add missing new files
2024-07-26 08:45:34 -05:00

26 lines
550 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use LibreNMS\Interfaces\Models\Keyable;
class PortStack extends DeviceRelatedModel implements Keyable
{
use HasFactory;
protected $table = 'ports_stack';
public $timestamps = false;
protected $fillable = [
'high_ifIndex',
'high_port_id',
'low_ifIndex',
'low_port_id',
'ifStackStatus',
];
public function getCompositeKey()
{
return $this->high_ifIndex . '-' . $this->low_ifIndex;
}
}