summaryrefslogtreecommitdiff
path: root/lib/oxidized
diff options
context:
space:
mode:
authorvppencilsharpener <tim.pray@gmail.com>2017-01-24 18:01:23 -0500
committerGitHub <noreply@github.com>2017-01-24 18:01:23 -0500
commita2c6e49bfd5db6225f4b6f2321f89ac9ad9332f9 (patch)
tree6afc1eb5006af2c9f96d82f010c873dd97215378 /lib/oxidized
parent2a69179c7765455ad9b468f33c8df78188e7dec5 (diff)
Don't show error is unsupported
This is the proposed fix for issue #669. Let me know if there is anything that I need to fix. This appears to be working correctly for the switch I have in house (S2400-24P). However the model is not working for the Aruba Instant AP (IAP) (virtual) controller. I hope to submit a fix for those once I have it working. The problems with that device appear to be unrelated to these changes as the prompt is incorrect.
Diffstat (limited to 'lib/oxidized')
-rw-r--r--lib/oxidized/model/aosw.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/oxidized/model/aosw.rb b/lib/oxidized/model/aosw.rb
index 1995292..adf481b 100644
--- a/lib/oxidized/model/aosw.rb
+++ b/lib/oxidized/model/aosw.rb
@@ -36,10 +36,12 @@ class AOSW < Oxidized::Model
end
cmd 'show slots' do |cfg|
+ cfg = "" if cfg.match /Invalid input detected at '\^' marker/ #Don't show for unsupported devices
rstrip_cfg comment cfg
end
cmd 'show license' do |cfg|
+ cfg = "" if cfg.match /Invalid input detected at '\^' marker/ #Don't show for unsupported devices
rstrip_cfg comment cfg
end