diff options
Diffstat (limited to 'lib/oxidized/model/junos.rb')
-rw-r--r-- | lib/oxidized/model/junos.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/oxidized/model/junos.rb b/lib/oxidized/model/junos.rb index 5b3d11b..06d627f 100644 --- a/lib/oxidized/model/junos.rb +++ b/lib/oxidized/model/junos.rb @@ -12,6 +12,12 @@ class JunOS < Oxidized::Model cfg end + cmd :secret do |cfg| + cfg.gsub! /encrypted-password (\S+).*/, '<secret removed>' + cfg.gsub! /community (\S+) {/, 'community <hidden> {' + cfg + end + cmd 'show configuration' cmd 'show version' do |cfg| |