From 26573555a9d32f071ad287cba2e6499f12351ced Mon Sep 17 00:00:00 2001 From: Felix <7132415+TerraTalpi@users.noreply.github.com> Date: Mon, 29 Apr 2024 10:24:34 +0200 Subject: [PATCH] aoscx: fix actual power-consumption included in environment output Exclude actual power consumption from output. Command "show environment power-consumption" has been introduced with ArubaOS-CX Long Support Release (LSR) version FL.10.13.xxx. This was not included in the previous LSR FL.10.10.xxx. Related issue is https://github.com/ytti/oxidized/issues/3142. Based on the work of @danpoltawski --- lib/oxidized/model/aoscx.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/oxidized/model/aoscx.rb b/lib/oxidized/model/aoscx.rb index 726f649a7..eda6efcc3 100644 --- a/lib/oxidized/model/aoscx.rb +++ b/lib/oxidized/model/aoscx.rb @@ -59,6 +59,7 @@ class Aoscx < Oxidized::Model cfg.gsub! /^(\d+\/\S+\s+\S+\s+)\d+\.\d+\s+C(.*)/, '\\1\\2' cfg.gsub! /^(LC.*\s+)\d+\.\d+\s+(C.*)$/, '\\1 \\2' cfg.gsub! /^(\S+\s+\S+\s+\s+\S+\s+)(slow|normal|medium|fast|max)(\s+\S+\s+\S+\s+)\d+/, '\\1\\3' + cfg.gsub! /^(\d+\s+.+\s+)(\s\s\d+\.\d+)(\s+)(\s\s\d+\.\d+)$/, '\\1\\3' comment cfg end