diff options
author | madmouser1 <lenjoubert@gmail.com> | 2017-05-10 10:14:38 +0100 |
---|---|---|
committer | madmouser1 <lenjoubert@gmail.com> | 2017-05-10 10:14:38 +0100 |
commit | 9094c9d90a9e7e663ae29fd010d56d0e3e9e01c3 (patch) | |
tree | 82dbbafde3e084b9f19ed92e03108474d25404af | |
parent | 1310d6ae366b80663302a16af8f257afce7a9ecf (diff) |
added a pre-logout command to quit cleanly from routeros
-rw-r--r-- | lib/oxidized/model/routeros.rb | 4 |
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 |