diff options
author | ytti <saku@ytti.fi> | 2016-02-25 17:31:51 +0200 |
---|---|---|
committer | ytti <saku@ytti.fi> | 2016-02-25 17:31:51 +0200 |
commit | 855df89bf1b485fb09a696f2186eee8a592178ce (patch) | |
tree | a41d4a04d047217e997b59383c5117ecbc483fb7 | |
parent | 9ffa74147da9564ebe9d2f33215bcc1d136cb55b (diff) | |
parent | f70539c1a907fc4e416c8b60b359dc618690a80a (diff) |
Merge pull request #344 from murrant/patch-2
Edgeswitch prompt detect not working
-rw-r--r-- | lib/oxidized/model/edgeswitch.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/oxidized/model/edgeswitch.rb b/lib/oxidized/model/edgeswitch.rb index 31014da..607df6c 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 @@ -18,8 +18,7 @@ class EdgeSwitch < Oxidized::Model cfg :telnet, :ssh do post_login 'enable' post_login 'terminal length 0' - pre_logout 'exit' - pre_logout 'exit' + pre_logout 'quit' end end |