diff options
Diffstat (limited to 'lib')
| -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 a522257..afd419e 100644 --- a/lib/oxidized/model/ios.rb +++ b/lib/oxidized/model/ios.rb @@ -20,7 +20,7 @@ class IOS < Oxidized::Model      #cfg.gsub! /\cH+\s{8}/, ''         # example how to handle pager      #cfg.gsub! /\cH+/, ''              # example how to handle pager      # get rid of errors for commands that don't work on some devices -    cfg.gsub! /^ % Invalid input detected at '\^' marker\./, '' +    cfg.gsub! /^% Invalid input detected at '\^' marker\.$|^\s+\^$/, ''      cfg.each_line.to_a[1..-2].join    end @@ -59,11 +59,11 @@ class IOS < Oxidized::Model              comments << "Memory:#{slave} main #{mem}";              # check the next two lines for more CPU info              if cfg.lines[i+1].match /processor board id (\S+)/i -		comments << "Processor ID: #{$1}"; +                comments << "Processor ID: #{$1}";              end              if cfg.lines[i+2].match /(cpu at |processor: |#{cpu} processor,)/i -               # change implementation to impl and prepend comma -               cpuxtra = cfg.lines[i+2].gsub(/implementation/,'impl').gsub(/^/,', ').chomp; +                # change implementation to impl and prepend comma +                cpuxtra = cfg.lines[i+2].gsub(/implementation/,'impl').gsub(/^/,', ').chomp;              end              comments << "CPU:#{slave} #{cpu}#{cpuxtra}#{slaveslot}";          end | 
