summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormadmouser1 <lenjoubert@gmail.com>2017-05-10 10:14:38 +0100
committermadmouser1 <lenjoubert@gmail.com>2017-05-10 10:14:38 +0100
commit9094c9d90a9e7e663ae29fd010d56d0e3e9e01c3 (patch)
tree82dbbafde3e084b9f19ed92e03108474d25404af /lib
parent1310d6ae366b80663302a16af8f257afce7a9ecf (diff)
added a pre-logout command to quit cleanly from routeros
Diffstat (limited to 'lib')
-rw-r--r--lib/oxidized/model/routeros.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/oxidized/model/routeros.rb b/lib/oxidized/model/routeros.rb
index 5717100..94f3c4a 100644
--- a/lib/oxidized/model/routeros.rb
+++ b/lib/oxidized/model/routeros.rb
@@ -22,6 +22,10 @@ class RouterOS < Oxidized::Model
password /^Password:/
end
+ cfg :telnet, :ssh do
+ pre_logout 'quit'
+ end
+
cfg :ssh do
exec true
end