From 92fbaa712c99ae5b523be0ebbc46fca9cdddef4e Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Fri, 7 Feb 2014 16:37:02 +0200 Subject: Add AOS (ALU OmniSwitch) support Specifically AOS 6, vxworks era, not linux era 7 --- lib/oxidized/input/ssh.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/oxidized/input') 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 -- cgit v1.2.1