From eb437cc51815fa7c314af7292eca61a1ebb03113 Mon Sep 17 00:00:00 2001 From: Bruno Brito Carvalho Date: Tue, 29 Aug 2017 10:49:45 +0200 Subject: Hide db last update Everyday the IPS URL db is updated and so the configuration is "changed". I believe this information spams the diff config and my team and I just decided to replace it by a unique string. Maybe instead of putting this in the :secret, we could create an other var or something that can be specified in the conf. Don't know what you think of this ;-) --- lib/oxidized/model/fortios.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/oxidized/model/fortios.rb b/lib/oxidized/model/fortios.rb index 2d15aae..605a596 100644 --- a/lib/oxidized/model/fortios.rb +++ b/lib/oxidized/model/fortios.rb @@ -17,6 +17,7 @@ class FortiOS < Oxidized::Model cmd :secret do |cfg| cfg.gsub! /(set (?:passwd|password|secondary-secret|rsso-secret|psksecret|secret|key ENC)).*/, '\\1 ' cfg.gsub! /(set private-key).*-+END ENCRYPTED PRIVATE KEY-*"$/m , '\\1 ' + cfg.gsub! /(IPS Malicious URL Database).*/, '\\1 ' cfg end -- cgit v1.2.1