summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/mtrlrfs.rb
diff options
context:
space:
mode:
authorroedie <github@roedie.nl>2016-02-21 20:18:27 +0100
committerroedie <github@roedie.nl>2016-02-21 20:18:27 +0100
commitc6735a3ba7926f931cb6f31da41c555680ac1b70 (patch)
tree8a26e9b1c19bc96a773e8c32935adebe28a46947 /lib/oxidized/model/mtrlrfs.rb
parent0b12bab3015e2968af3f57cee17ce39200d7306e (diff)
Fix telnet 'wait for prompt' bug
Diffstat (limited to 'lib/oxidized/model/mtrlrfs.rb')
-rw-r--r--lib/oxidized/model/mtrlrfs.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/oxidized/model/mtrlrfs.rb b/lib/oxidized/model/mtrlrfs.rb
index 3931a5b..84bcfe1 100644
--- a/lib/oxidized/model/mtrlrfs.rb
+++ b/lib/oxidized/model/mtrlrfs.rb
@@ -27,8 +27,10 @@ class mtrlrfs < Oxidized::Model
cfg :telnet, :ssh do
post_login 'terminal length 0'
- pre_logout 'exit'
- pre_logout 'n'
+ pre_logout do
+ send "exit\n"
+ send "n\n"
+ end
end
end