diff options
Diffstat (limited to 'lib/oxidized/model/ciscosmb.rb')
-rw-r--r-- | lib/oxidized/model/ciscosmb.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/oxidized/model/ciscosmb.rb b/lib/oxidized/model/ciscosmb.rb index eef4755..447cb69 100644 --- a/lib/oxidized/model/ciscosmb.rb +++ b/lib/oxidized/model/ciscosmb.rb @@ -36,9 +36,9 @@ class CiscoSMB < Oxidized::Model cfg = cfg.each_line.to_a[0..-1].join cfg.gsub! /^Current configuration : [^\n]*\n/, '' cfg.sub! /^(ntp clock-period).*/, '! \1' - 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 |