From c19cc681e14977bf741359346fe18b8da5c51355 Mon Sep 17 00:00:00 2001 From: Samer Abdel-Hafez Date: Wed, 11 Jun 2014 09:31:25 +0200 Subject: add secrets removal code + bump version --- lib/oxidized/model/eos.rb | 6 ++++++ lib/oxidized/model/ios.rb | 6 ++++++ lib/oxidized/model/iosxr.rb | 6 ++++++ lib/oxidized/model/junos.rb | 6 ++++++ 4 files changed, 24 insertions(+) (limited to 'lib/oxidized/model') diff --git a/lib/oxidized/model/eos.rb b/lib/oxidized/model/eos.rb index e08598b..46f44a2 100644 --- a/lib/oxidized/model/eos.rb +++ b/lib/oxidized/model/eos.rb @@ -11,6 +11,12 @@ class EOS < Oxidized::Model cfg.each_line.to_a[2..-2].join end + cmd :secret do |cfg| + cfg.gsub! /^(snmp-server community).*/, '\\1 ' + cfg.gsub! /username (\S+) privilege (\d+) (\S+).*/, '