diff options
author | ytti <saku@ytti.fi> | 2017-03-05 16:31:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-05 16:31:44 +0200 |
commit | 46276f70ad5ebd6b1664eac84b8748e908799671 (patch) | |
tree | d55adfc027046bff597ba77fefebf695334189e5 /lib/oxidized/model/mlnxos.rb | |
parent | 85b29b7b74c6c32d80fcd877b954977443155fbd (diff) | |
parent | fabcdc5e7c14dccc831bbac43e69f828d1685e19 (diff) |
Merge pull request #752 from electriceel1985/mellanox_work
make mellanox config versioning much less noisy
Diffstat (limited to 'lib/oxidized/model/mlnxos.rb')
-rw-r--r-- | lib/oxidized/model/mlnxos.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/oxidized/model/mlnxos.rb b/lib/oxidized/model/mlnxos.rb index 9542c88..97e7098 100644 --- a/lib/oxidized/model/mlnxos.rb +++ b/lib/oxidized/model/mlnxos.rb @@ -13,6 +13,10 @@ class MLNXOS < Oxidized::Model cfg.gsub! /\[\?1h=\r/, '' # Pager Handling cfg.gsub! /\r\[K/,'' # Pager Handling cfg.gsub! /\s/, '' # Linebreak Handling + cfg.gsub! /^CPU\ load\ averages\:\s.+/, '' # Omit constantly changing CPU info + cfg.gsub! /^System\ memory\:\s.+/, '' # Omit constantly changing memory info + cfg.gsub! /^Uptime\:\s.+/, '' # Omit constantly changing uptime info + cfg.gsub! /.+Generated\ at\s\d+.+/, '' # Omit constantly changing generation time info cfg = cfg.lines.to_a[2..-3].join end |