diff options
Diffstat (limited to 'lib/oxidized/model/quantaos.rb')
-rw-r--r-- | lib/oxidized/model/quantaos.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/oxidized/model/quantaos.rb b/lib/oxidized/model/quantaos.rb index 274440d..8dbdf3b 100644 --- a/lib/oxidized/model/quantaos.rb +++ b/lib/oxidized/model/quantaos.rb @@ -1,18 +1,17 @@ class QuantaOS < Oxidized::Model - prompt /^\((\w|\S)+\) (>|#)$/ comment '! ' - + cmd 'show run' do |cfg| cfg.each_line.select do |line| not line.match /^!.*$/ and - not line.match /^\((\w|\S)+\) (>|#)$/ and - not line.match /^show run$/ + not line.match /^\((\w|\S)+\) (>|#)$/ and + not line.match /^show run$/ end.join end cfg :telnet do - username /^Username:/ + username /^User(name)?:/ password /^Password:/ end @@ -31,5 +30,4 @@ class QuantaOS < Oxidized::Model send "n\n" end end - end |