summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/edgeswitch.rb
diff options
context:
space:
mode:
authorTony Murray <murraytony@gmail.com>2016-02-25 08:37:32 -0600
committerTony Murray <murraytony@gmail.com>2016-02-25 08:37:32 -0600
commit21f1bd6b7287e5106ade30c146049be5f66e1d47 (patch)
tree358dcec18adc5314f4090ab03caeb1c9939ddb04 /lib/oxidized/model/edgeswitch.rb
parent9ffa74147da9564ebe9d2f33215bcc1d136cb55b (diff)
Prompt detect not working
The prompt detection was not working on my edgeswitch. The old regex was a little odd, so I don't know if there is some corner case I'm not accounting for. My prompts ``` (palmer-elevator.sw) > ``` ``` (palmer-elevator.sw) # ```
Diffstat (limited to 'lib/oxidized/model/edgeswitch.rb')
-rw-r--r--lib/oxidized/model/edgeswitch.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/model/edgeswitch.rb b/lib/oxidized/model/edgeswitch.rb
index 31014da..0777b85 100644
--- a/lib/oxidized/model/edgeswitch.rb
+++ b/lib/oxidized/model/edgeswitch.rb
@@ -4,7 +4,7 @@ class EdgeSwitch < Oxidized::Model
comment '!'
- prompt /[(]\w*\s\w*[)][\s#>]*[\s#>]/
+ prompt /\(.*\)\s[#>]/
cmd 'show running-config' do |cfg|
cfg.each_line.reject { |line| line.match /System Up Time.*/ or line.match /Current SNTP Synchronized Time.*/ }.join