Files
librenms-librenms/app/Models/AccessPoint.php
Tony Murray 7e98e03338 Polling cleanup, fix PHP warnings (#13460)
* Fix warnings up to Arbos

* fixes a-c

* a-r

* a-vrp

* There and back again

* Update test data, couple fixes

* PHPSStan fixes

* style fixes, and fix Asyncos, whoops

* flip serial back.......

* less bogus data

* Poweralert sysName during polling too

* make sure things are calculated in the correct order

* fix style and bad nullables

* update test data

* A comple more conversions

* cambium ptp, misc, and hardware_mib

* remaining except vmware-esxi

* Fixes

* Update baseline

* fixes and fix up baseline

* adjust SnmpQueryMock to upstream options change

* data corrections

* restore slashes

* correctly handle all options input in SnmpQueryMock

* undo ftos changes

* restore vccodec sysDescr
2021-11-14 14:58:13 -06:00

32 lines
631 B
PHP

<?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}";
}
}