diff options
author | Caio Silva <cainho.rasec@gmail.com> | 2016-08-01 09:14:37 -0300 |
---|---|---|
committer | Caio Silva <cainho.rasec@gmail.com> | 2016-08-01 09:14:37 -0300 |
commit | 23167180251eb2f69aed51645ef840f81b42da8a (patch) | |
tree | b51619d6e1a09655ca510eb48cade46b29c47fed /lib | |
parent | f54bfa0c97a8a4bbe4107290a711cefdd8912368 (diff) |
Added support for the DM2104 and DM4100
Diffstat (limited to 'lib')
-rw-r--r-- | lib/oxidized/model/datacom.rb | 7 |
1 files changed, 6 insertions, 1 deletions
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' |