summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2017-07-01 11:25:41 +0300
committerGitHub <noreply@github.com>2017-07-01 11:25:41 +0300
commit7d62849c24c814b79bd916f165c32602c129eed3 (patch)
tree9040e00093cbb662dddf5db1ecaf225b08eba37b /lib
parentccd00e4e8c9d7f559982447ad1505cf65d91bcd9 (diff)
parent0bc9a9247d36ee6131fc5456b5e30f5ae2412ceb (diff)
Merge pull request #892 from rfdrake/master
remove Uptime from dlink "show switch"
Diffstat (limited to 'lib')
-rw-r--r--lib/oxidized/model/dlink.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/oxidized/model/dlink.rb b/lib/oxidized/model/dlink.rb
index 5756bad..0d08793 100644
--- a/lib/oxidized/model/dlink.rb
+++ b/lib/oxidized/model/dlink.rb
@@ -15,6 +15,7 @@ class Dlink < Oxidized::Model
end
cmd 'show switch' do |cfg|
+ cfg.gsub! /^System\ Uptime\s.+/, '' # Omit constantly changing uptime info
comment cfg
end