From c1dbc182671e52014966db96ed0a3f7a016a384d Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Tue, 15 Apr 2014 20:36:49 +0300 Subject: Waittime => Timeout Waittime is how long it waits for /more/ input /after/ matching to RE. This has been wrong always in Oxidized but only after changing default timeout to 30, it became apparent. When timeout was 5s, it just gave 5s delay to every command, now it gives 30s delay. --- lib/oxidized/input/telnet.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/oxidized/input/telnet.rb b/lib/oxidized/input/telnet.rb index 218b13c..d52ebf0 100644 --- a/lib/oxidized/input/telnet.rb +++ b/lib/oxidized/input/telnet.rb @@ -10,7 +10,7 @@ module Oxidized @node = node @timeout = CFG.timeout @node.model.cfg['telnet'].each { |cb| instance_exec(&cb) } - @telnet = Net::Telnet.new 'Host' => @node.ip, 'Waittime' => @timeout, + @telnet = Net::Telnet.new 'Host' => @node.ip, 'Timeout' => @timeout, 'Model' => @node.model expect username @telnet.puts @node.auth[:username] -- cgit v1.2.1