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:
PipoCanaja
2018-09-11 06:07:45 +02:00
committed by Tony Murray
parent d475665601
commit 5dae25b48b
7 changed files with 64087 additions and 1 deletions

View File

@@ -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(),