Skip to content

Commit

Permalink
Merge pull request ytti#1238 from jiphex/fix-dnos-changing-info
Browse files Browse the repository at this point in the history
Alter DNOS config. Remove constantly changing info
  • Loading branch information
ytti authored Apr 27, 2018
2 parents cf770c5 + ff0a42c commit 34fd536
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/oxidized/model/dnos.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class DNOS < Oxidized::Model

cmd :all do |cfg|
cfg.gsub! /^% Invalid input detected at '\^' marker\.$|^\s+\^$/, ''
cfg.gsub! /^Dell Networking OS uptime is\s.+/, '' # Omit constantly changing uptime info
cfg.each_line.to_a[2..-2].join
end

Expand All @@ -26,10 +27,6 @@ class DNOS < Oxidized::Model
comment cfg
end

cmd 'show system' do |cfg|
comment cfg
end

cmd 'show running-config' do |cfg|
cfg = cfg.each_line.to_a[3..-1].join
cfg
Expand Down

0 comments on commit 34fd536

Please sign in to comment.