From 23167180251eb2f69aed51645ef840f81b42da8a Mon Sep 17 00:00:00 2001 From: Caio Silva Date: Mon, 1 Aug 2016 09:14:37 -0300 Subject: Added support for the DM2104 and DM4100 --- lib/oxidized/model/datacom.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/oxidized/model/datacom.rb b/lib/oxidized/model/datacom.rb index 54091ed..5dbc080 100644 --- a/lib/oxidized/model/datacom.rb +++ b/lib/oxidized/model/datacom.rb @@ -24,7 +24,12 @@ class DataCom < Oxidized::Model cfg.cut_head end - cfg :telnet, :ssh do + cfg :ssh do + password /^Password:\s$/ + pre_logout 'exit' + end + + cfg :telnet do username /login:\s$/ password /^Password:\s$/ pre_logout 'exit' -- cgit v1.2.1