From b6affdfc6ee0b142f5a7b7f01854909babb80b23 Mon Sep 17 00:00:00 2001 From: Jason Wendel Date: Sat, 4 Feb 2017 20:13:35 -0600 Subject: Cleaner way to fix older IronWare devices This works on older IronWare devices without needing a sleep between each command. --- lib/oxidized/model/ironware.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'lib/oxidized') diff --git a/lib/oxidized/model/ironware.rb b/lib/oxidized/model/ironware.rb index bfcd3a4..c7c2197 100644 --- a/lib/oxidized/model/ironware.rb +++ b/lib/oxidized/model/ironware.rb @@ -81,13 +81,7 @@ class IronWare < Oxidized::Model post_login '' post_login 'skip-page-display' post_login 'terminal length 0' - pre_logout do - send "logout\n" - sleep 0.01 - send "exit\n" - sleep 0.01 - send "exit\n" - end + pre_logout "logout\nexit\nexit\n" end end -- cgit v1.2.1