diff options
author | ytti <saku@ytti.fi> | 2016-01-28 12:39:40 +0200 |
---|---|---|
committer | ytti <saku@ytti.fi> | 2016-01-28 12:39:40 +0200 |
commit | a27145b1ab851a6e7da6cf35cbf8288096edab6d (patch) | |
tree | b23ac8c8ce099d8292a40939410add44e90c43a3 /lib | |
parent | 2ac9443b955fb75f4085e6d963904f01c82e700f (diff) | |
parent | 304c98017b32f37d07099b8e1c4a986a21be924b (diff) |
Merge pull request #292 from Madpilot0/powerconnect-sflow-timeout
Powerconnect sflow timeout
Diffstat (limited to 'lib')
-rw-r--r-- | lib/oxidized/model/powerconnect.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/oxidized/model/powerconnect.rb b/lib/oxidized/model/powerconnect.rb index cd04766..f0fa3df 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 \S+ destination owner \S+ timeout )\d+$/, '! \1<timeout>') + end cfg :telnet, :ssh do username /^User( Name)?:/ |