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

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

32 lines
631 B
PHP
Raw Normal View History

<?php
namespace App\Models;
use LibreNMS\Interfaces\Models\Keyable;
class AccessPoint extends DeviceRelatedModel implements Keyable
{
protected $primaryKey = 'accesspoint_id';
public $timestamps = false;
protected $fillable = [
'device_id',
'name',
'radio_number',
'type',
'mac_addr',
'channel',
'txpow',
'radioutil',
'numasoclients',
'nummonclients',
'numactbssid',
'nummonbssid',
'interference',
];
public function getCompositeKey()
{
return "{$this->name}_{$this->radio_number}";
}
}