summaryrefslogtreecommitdiff
path: root/lib/oxidized
diff options
context:
space:
mode:
authorCaio Silva <cainho.rasec@gmail.com>2016-08-01 09:14:37 -0300
committerCaio Silva <cainho.rasec@gmail.com>2016-08-01 09:14:37 -0300
commit23167180251eb2f69aed51645ef840f81b42da8a (patch)
treeb51619d6e1a09655ca510eb48cade46b29c47fed /lib/oxidized
parentf54bfa0c97a8a4bbe4107290a711cefdd8912368 (diff)
Added support for the DM2104 and DM4100
Diffstat (limited to 'lib/oxidized')
-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'