mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Common contexts for polling (#13158)
* Common contexts for polling Don't store contexts on the device array, use the device model Also should be easier to add different contexts later. * rename variables for consistency
This commit is contained in:
@@ -315,7 +315,6 @@ function device_by_id_cache($device_id, $refresh = false)
|
||||
$device['lat'] = $model->location->lat ?? null;
|
||||
$device['lng'] = $model->location->lng ?? null;
|
||||
$device['attribs'] = $model->getAttribs();
|
||||
$device['vrf_lite_cisco'] = $model->vrfLites->keyBy('context_name')->toArray();
|
||||
|
||||
return $device;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user