From 9094c9d90a9e7e663ae29fd010d56d0e3e9e01c3 Mon Sep 17 00:00:00 2001 From: madmouser1 Date: Wed, 10 May 2017 10:14:38 +0100 Subject: added a pre-logout command to quit cleanly from routeros --- lib/oxidized/model/routeros.rb | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.1