diff options
Diffstat (limited to 'lib/oxidized/model/edgeswitch.rb')
-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 |