summaryrefslogtreecommitdiff
path: root/lib/oxidized/model
diff options
context:
space:
mode:
authorSander Wegter <pilot008@gmail.com>2016-01-28 10:38:04 +0100
committerSander Wegter <pilot008@gmail.com>2016-01-28 10:38:04 +0100
commit3346293927a52012831847954bbad4410049ea2e (patch)
treeaa12f77b3ec547a456580aa550127739ee8f45d4 /lib/oxidized/model
parent2ac9443b955fb75f4085e6d963904f01c82e700f (diff)
Added a substitue for the changing sflow timeout command
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r--lib/oxidized/model/powerconnect.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/oxidized/model/powerconnect.rb b/lib/oxidized/model/powerconnect.rb
index cd04766..70a0991 100644
--- a/lib/oxidized/model/powerconnect.rb
+++ b/lib/oxidized/model/powerconnect.rb
@@ -26,7 +26,9 @@ class PowerConnect < Oxidized::Model
clean cfg
end
- cmd 'show running-config'
+ cmd 'show running-config' do |cfg|
+ cfg.sub(/^(sflow 1 destination owner 1 timeout )\d+$/, '! \1<timeout>')
+ end
cfg :telnet, :ssh do
username /^User( Name)?:/