From 21f1bd6b7287e5106ade30c146049be5f66e1d47 Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Thu, 25 Feb 2016 08:37:32 -0600 Subject: 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) # ``` --- lib/oxidized/model/edgeswitch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1