summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2016-02-25 17:31:51 +0200
committerytti <saku@ytti.fi>2016-02-25 17:31:51 +0200
commit855df89bf1b485fb09a696f2186eee8a592178ce (patch)
treea41d4a04d047217e997b59383c5117ecbc483fb7
parent9ffa74147da9564ebe9d2f33215bcc1d136cb55b (diff)
parentf70539c1a907fc4e416c8b60b359dc618690a80a (diff)
Merge pull request #344 from murrant/patch-2
Edgeswitch prompt detect not working
-rw-r--r--lib/oxidized/model/edgeswitch.rb5
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