mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
API Fix error when no fdb are found (#10125)
* Fix error when no fdb are found * actually, it was totally broken... fix untested * missing device update * cleanup * Update api_functions.inc.php
This commit is contained in:
@@ -534,6 +534,11 @@ class Device extends BaseModel
|
||||
return $this->hasMany('App\Models\Port', 'device_id', 'device_id');
|
||||
}
|
||||
|
||||
public function portsFdb()
|
||||
{
|
||||
return $this->hasMany('App\Models\PortsFdb', 'device_id', 'device_id');
|
||||
}
|
||||
|
||||
public function portsNac()
|
||||
{
|
||||
return $this->hasMany('App\Models\PortsNac', 'device_id', 'device_id');
|
||||
|
||||
Reference in New Issue
Block a user