summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/dnos.rb
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2016-11-01 02:04:00 +0200
committerGitHub <noreply@github.com>2016-11-01 02:04:00 +0200
commitf844305d72e52efcf3511eb5bfb30849d8c60617 (patch)
tree0b8c60ce7e14bd2dd4990076e4294ddf16c7af1c /lib/oxidized/model/dnos.rb
parent324113866a2e3092d72fb6c34c8530b1870f0a4c (diff)
parent65007bab6e94c7ba96be177c3fe8e7fdaed9587e (diff)
Merge pull request #602 from jackson-tim/patch-1
Update dnos.rb
Diffstat (limited to 'lib/oxidized/model/dnos.rb')
-rw-r--r--lib/oxidized/model/dnos.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/oxidized/model/dnos.rb b/lib/oxidized/model/dnos.rb
index 1c31aad..a6cc05f 100644
--- a/lib/oxidized/model/dnos.rb
+++ b/lib/oxidized/model/dnos.rb
@@ -33,15 +33,16 @@ class DNOS < Oxidized::Model
end
cfg :telnet, :ssh do
- post_login 'terminal length 0'
- post_login 'terminal width 0'
if vars :enable
post_login do
send "enable\n"
send vars(:enable) + "\n"
end
end
+ post_login 'terminal length 0'
+ post_login 'terminal width 0'
pre_logout 'exit'
+ pre_logout 'exit'
end
end