summaryrefslogtreecommitdiff
path: root/lib/oxidized/input
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2014-02-07 16:37:02 +0200
committerSaku Ytti <saku@ytti.fi>2014-02-07 16:37:02 +0200
commit92fbaa712c99ae5b523be0ebbc46fca9cdddef4e (patch)
tree7e932962fa251dbf7c6d4f4e539abf035c8ad002 /lib/oxidized/input
parent028bada99a02f2bc9b5b4409f09715ca49858675 (diff)
Add AOS (ALU OmniSwitch) support
Specifically AOS 6, vxworks era, not linux era 7
Diffstat (limited to 'lib/oxidized/input')
-rw-r--r--lib/oxidized/input/ssh.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/oxidized/input/ssh.rb b/lib/oxidized/input/ssh.rb
index b060418..3fdaa70 100644
--- a/lib/oxidized/input/ssh.rb
+++ b/lib/oxidized/input/ssh.rb
@@ -5,6 +5,7 @@ module Oxidized
RescueFail = [
Net::SSH::Disconnect,
Net::SSH::AuthenticationFailed,
+ RuntimeError,
]
include CLI
class NoShell < StandardError; end
@@ -41,7 +42,7 @@ module Oxidized
disconnect_cli
@ssh.loop
@ssh.close if not @ssh.closed?
- rescue Errno::ECONNRESET, Net::SSH::Disconnect
+ rescue Errno::ECONNRESET, Net::SSH::Disconnect, IOError
end
end