summaryrefslogtreecommitdiff
path: root/lib/oxidized/model
diff options
context:
space:
mode:
authorZsolt Zsiros <ZsZs73@users.noreply.github.com>2018-04-16 14:48:43 +0200
committerNeil Lathwood <gh+n@laf.io>2018-04-16 13:48:43 +0100
commitb29550ce0cfaf6192652747d340da2dc777ac22b (patch)
treecd4f073e6b9007d72c532b547f84ec7d5e9b8897 /lib/oxidized/model
parentb1b983432b75bbe61edf70323793df344fea5522 (diff)
model: netgear.rb support for older models (#1268)
* Added support for older models (FW 5.x.y.z like on GS110TP, GS748Tv4, etc) * Fixed prompt regex * docs/Model-Notes/Netgear created * docs/Model-Notes/Netgear fixed typos
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r--lib/oxidized/model/netgear.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/oxidized/model/netgear.rb b/lib/oxidized/model/netgear.rb
index 0ab1349..a32eb66 100644
--- a/lib/oxidized/model/netgear.rb
+++ b/lib/oxidized/model/netgear.rb
@@ -1,15 +1,16 @@
class Netgear < Oxidized::Model
comment '!'
- prompt /^(\([\w\-.]+\)\s[#>])$/
+ prompt /^(\([\w\s\-.]+\)\s[#>])$/
cmd :secret do |cfg|
cfg.gsub!(/password (\S+)/, 'password <hidden>')
+ cfg.gsub!(/encrypted (\S+)/, 'encrypted <hidden>')
cfg
end
cfg :telnet do
- username /^User:/
+ username /^(User:|Applying Interface configuration, please wait ...)/
end
cfg :telnet, :ssh do