From 400484008c4e95eac3244d7fb8fb24f25be14df9 Mon Sep 17 00:00:00 2001 From: WilliButz Date: Thu, 26 Apr 2018 19:13:35 +0200 Subject: oxidized: temperature patch for x-series --- pkgs/tools/admin/oxidized/temporary-x-series.patch | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'pkgs') diff --git a/pkgs/tools/admin/oxidized/temporary-x-series.patch b/pkgs/tools/admin/oxidized/temporary-x-series.patch index ef6234dc40b9..bf7ee992db18 100644 --- a/pkgs/tools/admin/oxidized/temporary-x-series.patch +++ b/pkgs/tools/admin/oxidized/temporary-x-series.patch @@ -1,5 +1,5 @@ diff --git a/lib/oxidized/model/powerconnect.rb b/lib/oxidized/model/powerconnect.rb -index f602a36..3f3a0f9 100644 +index f602a36..3bac2d1 100644 --- a/lib/oxidized/model/powerconnect.rb +++ b/lib/oxidized/model/powerconnect.rb @@ -4,7 +4,7 @@ class PowerConnect < Oxidized::Model @@ -11,3 +11,12 @@ index f602a36..3f3a0f9 100644 send ' ' data.sub re, '' end +@@ -60,7 +60,7 @@ class PowerConnect < Oxidized::Model + skip_blocks = 0 + cfg.each_line do |line| + # If this is a stackable switch we should skip this block of information +- if (line.match /Up\sTime|Temperature|Power Suppl(ies|y)|Fans/i and @stackable == true) ++ if (line.match /Up\sTime|Temperature|Power Suppl(ies|y)|Fans/i) + skip_blocks = 1 + # Some switches have another empty line. This is identified by this line having a colon + skip_blocks = 2 if line.match /:/ -- cgit 1.4.1