From 831cf3e4c42d53461ac1e27533ac4c2f456bd52f Mon Sep 17 00:00:00 2001 From: Zmegolaz Date: Fri, 8 Jun 2018 11:06:08 +0200 Subject: Remove more JunOS secrets (#1359) * Remove more JunOS secrets * Removed redundant junos secret replacements. Updated changelog. * Moved this change to Master in the changelog. --- lib/oxidized/model/junos.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib/oxidized/model') diff --git a/lib/oxidized/model/junos.rb b/lib/oxidized/model/junos.rb index 737a000..e987930 100644 --- a/lib/oxidized/model/junos.rb +++ b/lib/oxidized/model/junos.rb @@ -12,11 +12,8 @@ class JunOS < Oxidized::Model end cmd :secret do |cfg| - cfg.gsub!(/encrypted-password (\S+).*/, 'encrypted-password ') - cfg.gsub!(/pre-shared-key ascii-text (\S+).*/, 'pre-shared-key ascii-text ') - cfg.gsub!(/pre-shared-key hexadecimal (\S+).*/, 'pre-shared-key hexadecimal ') - cfg.gsub!(/authentication-key (\S+).*/, 'authentication-key ') cfg.gsub!(/community (\S+) {/, 'community {') + cfg.gsub!(/ "\$\d\$\S+; ## SECRET-DATA/, ' ;') cfg end -- cgit v1.2.1