summaryrefslogtreecommitdiff
path: root/lib/oxidized/model
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2017-05-14 12:03:18 +0300
committerGitHub <noreply@github.com>2017-05-14 12:03:18 +0300
commit7f74e1065d068a5c1e9bc5cc717bfa60ad116845 (patch)
treeec52bb294d9d0d469a67d003a7ec263026dd4950 /lib/oxidized/model
parentbf6115294751007d28930768d8b0769929b16922 (diff)
parent9094c9d90a9e7e663ae29fd010d56d0e3e9e01c3 (diff)
Merge pull request #841 from madmouser1/routeros
added a pre-logout command to quit cleanly from routeros
Diffstat (limited to 'lib/oxidized/model')
-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