summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/ios.rb
diff options
context:
space:
mode:
authorKodApa85 <parsons151185@gmail.com>2018-07-22 12:06:01 +0100
committerWild Kat <wk@users.noreply.github.com>2018-07-22 13:06:01 +0200
commit868cb6741ad902a1cf4ecff67fc38100f948bcee (patch)
tree9833992b9608e0fdcdbd1f55b03ef12c0e9a3d4b /lib/oxidized/model/ios.rb
parent06705411e28cf747644beb78504c5d2a27713d1c (diff)
Removed unnecessary/illegal/unsupported escape sequence (#1352)
Diffstat (limited to 'lib/oxidized/model/ios.rb')
-rw-r--r--lib/oxidized/model/ios.rb8
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