diff options
author | ytti <saku@ytti.fi> | 2016-08-01 21:31:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-01 21:31:19 +0300 |
commit | 71dc657b8c01dbcf8d15bfb65ad0a4d57fcd74f7 (patch) | |
tree | b51619d6e1a09655ca510eb48cade46b29c47fed /lib/oxidized/model/datacom.rb | |
parent | f54bfa0c97a8a4bbe4107290a711cefdd8912368 (diff) | |
parent | 23167180251eb2f69aed51645ef840f81b42da8a (diff) |
Merge pull request #517 from caiorasec/master
Added support for the DM2104 and DM4100
Diffstat (limited to 'lib/oxidized/model/datacom.rb')
-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' |