mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Feature: Collect VRP Entity details in the Huawei MIB (#8888)
* Feature: Collect VRP Entity details in the Huawei MIB * Feature: Collect VRP Entity details in the Huawei MIB - Add Test Data * Renaming of the test file vrp_5720_vrf.snmprec * Added json test files * Update vrp_5720_vrf.snmprec * Update vrp_5720_vrf.snmprec * Update vrp_5720_vrf.json * Updated processor and mempool discovery to limit descr field * Updated test * Updated tests again * Updated json test data * Update vrp_ce12804-entity.json * Update vrp_ce12804-entity.json * Update vrp_5720_vrf.json
This commit is contained in:
@@ -23,7 +23,6 @@
|
||||
* @author Tony Murray <murraytony@gmail.com>
|
||||
*/
|
||||
|
||||
|
||||
namespace LibreNMS\Device;
|
||||
|
||||
use LibreNMS\Config;
|
||||
@@ -147,6 +146,11 @@ class Processor extends Model implements DiscoveryModule, PollerModule, Discover
|
||||
$processors = $os->discoverProcessors();
|
||||
}
|
||||
|
||||
foreach ($processors as $processor) {
|
||||
$processor->processor_descr = substr($processor->processor_descr, 0, 64);
|
||||
$processors[] = $processor;
|
||||
}
|
||||
|
||||
if (isset($processors) && is_array($processors)) {
|
||||
self::sync(
|
||||
$os->getDeviceId(),
|
||||
|
Reference in New Issue
Block a user