summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/datacom.rb
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2016-08-01 21:31:19 +0300
committerGitHub <noreply@github.com>2016-08-01 21:31:19 +0300
commit71dc657b8c01dbcf8d15bfb65ad0a4d57fcd74f7 (patch)
treeb51619d6e1a09655ca510eb48cade46b29c47fed /lib/oxidized/model/datacom.rb
parentf54bfa0c97a8a4bbe4107290a711cefdd8912368 (diff)
parent23167180251eb2f69aed51645ef840f81b42da8a (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.rb7
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'