diff options
Diffstat (limited to 'lib/oxidized/model/ios.rb')
-rw-r--r-- | lib/oxidized/model/ios.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/oxidized/model/ios.rb b/lib/oxidized/model/ios.rb index 73fe114..1395ecd 100644 --- a/lib/oxidized/model/ios.rb +++ b/lib/oxidized/model/ios.rb @@ -97,7 +97,7 @@ class IOS < Oxidized::Model comments << "CPU:#{slave} #{cpu}#{cpuxtra}#{slaveslot}"; end - if line.match /^System image file is "([^\"]*)"$/ + if line.match /^System image file is "([^"]*)"$/ comments << "Image: #{$1}" end end @@ -119,9 +119,9 @@ class IOS < Oxidized::Model cfg = cfg.each_line.to_a[3..-1] cfg = cfg.reject { |line| line.match /^ntp clock-period / }.join cfg.gsub! /^Current configuration : [^\n]*\n/, '' - cfg.gsub! /^\ tunnel\ mpls\ traffic-eng\ bandwidth[^\n]*\n*( - (?:\ [^\n]*\n*)* - tunnel\ mpls\ traffic-eng\ auto-bw)/mx, '\1' + cfg.gsub! /^ tunnel mpls traffic-eng bandwidth[^\n]*\n*( + (?: [^\n]*\n*)* + tunnel mpls traffic-eng auto-bw)/mx, '\1' cfg end |