Skip to content

Commit

Permalink
aoscx: fix actual power-consumption included in environment output
Browse files Browse the repository at this point in the history
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 ytti#3142. Based on the work of @danpoltawski
  • Loading branch information
TerraTalpi authored Apr 29, 2024
1 parent f9d7e72 commit 2657355
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/oxidized/model/aoscx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class Aoscx < Oxidized::Model
cfg.gsub! /^(\d+\/\S+\s+\S+\s+)\d+\.\d+\s+C(.*)/, '\\1<hidden>\\2'
cfg.gsub! /^(LC.*\s+)\d+\.\d+\s+(C.*)$/, '\\1 <hidden> \\2'
cfg.gsub! /^(\S+\s+\S+\s+\s+\S+\s+)(slow|normal|medium|fast|max)(\s+\S+\s+\S+\s+)\d+/, '\\1<speed>\\3<rpm>'
cfg.gsub! /^(\d+\s+.+\s+)(\s\s\d+\.\d+)(\s+)(\s\s\d+\.\d+)$/, '\\1<power>\\3<power>'
comment cfg
end

Expand Down

0 comments on commit 2657355

Please sign in to comment.