diff options
author | Wild Kat <wk@users.noreply.github.com> | 2018-06-13 17:15:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-13 17:15:45 +0200 |
commit | 4d5edf4a284ec1244f3e2c4d09d54ea902736e65 (patch) | |
tree | 8e7b38438815fb4a3cb670bcb60deff9a1108950 | |
parent | 896235cf3993b9fb446541dd673c00191e713a2f (diff) |
ciscosmb uptime filter is for show system (#1388)
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | lib/oxidized/model/ciscosmb.rb | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 7aca9e9..1629429 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ * FEATURE: add frr support to cumulus model (@User4574 / @bobthebutcher) * FEATURE: honour MAX_STAT in mtime, to store last N mtime * FEATURE: configurable stats history size +* BUGFIX: model ciscosmb ## 0.23.0 diff --git a/lib/oxidized/model/ciscosmb.rb b/lib/oxidized/model/ciscosmb.rb index ef6f4e6..e3a7f2a 100644 --- a/lib/oxidized/model/ciscosmb.rb +++ b/lib/oxidized/model/ciscosmb.rb @@ -16,7 +16,6 @@ class CiscoSMB < Oxidized::Model cfg.gsub! /^(snmp-server community).*/, '\\1 <configuration removed>' cfg.gsub! /username (\S+) privilege (\d+) (\S+).*/, '<secret hidden>' cfg.gsub! /^(encrypted radius-server key).*/, '\\1 <configuration removed>' - cfg.gsub! /System Up Time.*/, '' cfg end @@ -25,6 +24,7 @@ class CiscoSMB < Oxidized::Model end cmd 'show system' do |cfg| + cfg.gsub! /System Up Time.*/, '' comment cfg end |