summaryrefslogtreecommitdiff
path: root/lib/oxidized/model
diff options
context:
space:
mode:
authorNicholas Meredith <nick@ndm.id.au>2017-11-12 05:48:55 +1000
committerNeil Lathwood <neil@lathwood.co.uk>2017-11-11 19:48:55 +0000
commit4203e00cbde157e767e8be39ffdcecb30db14e6b (patch)
tree775d7008e9bbac06946466c016df078471b9f5e7 /lib/oxidized/model
parentf720682514df9f49d35e6ced8af41e5dc789f8e0 (diff)
fix: Fix prompt pattern for model/comware.rb to handle ASCII Bell response +fix minor README.md typo (#1094)
* comware.rb: update prompt to work when trailing ^G ASCII 7 (bell) is sent * README.md: correct typo 'HTT' to 'HTTP' for Configuration / Outputs paragraph * model/comware.rb: cleaning out some comments
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r--lib/oxidized/model/comware.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/oxidized/model/comware.rb b/lib/oxidized/model/comware.rb
index d926854..a5b7190 100644
--- a/lib/oxidized/model/comware.rb
+++ b/lib/oxidized/model/comware.rb
@@ -1,8 +1,8 @@
class Comware < Oxidized::Model
# HP (A-series)/H3C/3Com Comware
- # sometimes the prompt might have a leading nul
- prompt /^\0*(<[\w.-]+>)$/
+ # sometimes the prompt might have a leading nul or trailing ASCII Bell (^G)
+ prompt /^\0*(<[\w.-]+>).?$/
comment '# '
# example how to handle pager