From ec9e77b6654b0c6ad63d49244b403a3812e48f98 Mon Sep 17 00:00:00 2001 From: GeantRA <110988940+GeantRA@users.noreply.github.com> Date: Tue, 4 Apr 2023 08:28:59 +0100 Subject: [PATCH] =?UTF-8?q?Update=20junos=20discovery=20yaml=20to=20refere?= =?UTF-8?q?nce=20total=20memory=20instead=20of=20buff=E2=80=A6=20(#14919)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update junos discovery yaml to reference total memory instead of buffer memory used * Add FPC0 test data reference --- includes/definitions/discovery/junos.yaml | 4 ++-- tests/data/junos_vmx.json | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/includes/definitions/discovery/junos.yaml b/includes/definitions/discovery/junos.yaml index 84ebd74337..3243987905 100644 --- a/includes/definitions/discovery/junos.yaml +++ b/includes/definitions/discovery/junos.yaml @@ -30,7 +30,7 @@ modules: descr: jnxOperatingDescr skip_values: - - oid: jnxOperatingBuffer + oid: jnxOperatingMemory op: '=' value: 0 - @@ -248,4 +248,4 @@ modules: index: 'pethMainPseConsumptionPower.{{ $index }}' high_limit: POWER-ETHERNET-MIB::pethMainPsePower low_limit: -1 - low_warn_limit: -1 \ No newline at end of file + low_warn_limit: -1 diff --git a/tests/data/junos_vmx.json b/tests/data/junos_vmx.json index d639965149..b927464349 100644 --- a/tests/data/junos_vmx.json +++ b/tests/data/junos_vmx.json @@ -12213,6 +12213,17 @@ "processors": { "discovery": { "processors": [ + { + "entPhysicalIndex": 0, + "hrDeviceIndex": 0, + "processor_oid": ".1.3.6.1.4.1.2636.3.1.13.1.8.7.1.0.0", + "processor_index": "7.1.0.0", + "processor_type": "junos", + "processor_usage": 7, + "processor_descr": "FPC: Virtual FPC @ 0/*/*", + "processor_precision": 1, + "processor_perc_warn": 75 + }, { "entPhysicalIndex": 0, "hrDeviceIndex": 0,