diff options
author | Arnoud Vermeer <a.vermeer@tech.leaseweb.com> | 2016-08-22 15:23:59 +0200 |
---|---|---|
committer | Arnoud Vermeer <a.vermeer@tech.leaseweb.com> | 2016-08-22 15:23:59 +0200 |
commit | 2c4ac17756320fa4abba2eee9ad32badb15043c7 (patch) | |
tree | 23d5097c9fb6abd78c6b6e8cbdf251858e8b7ca5 /lib | |
parent | ed7c5574a197605658dfc5c8d5563d55e483eef3 (diff) |
Cisco Adaptive Security Appliance Software Version 9.4(2)6 reports TACACS config like this:
aaa-server tacacs (OUTSIDE) host 192.168.1.1
key assadasda
Updated the regex to be backward compatible.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/oxidized/model/asa.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/model/asa.rb b/lib/oxidized/model/asa.rb index a41348e..df30059 100644 --- a/lib/oxidized/model/asa.rb +++ b/lib/oxidized/model/asa.rb @@ -15,7 +15,7 @@ class ASA < Oxidized::Model cfg.gsub! /username (\S+) password (\S+) (.*)/, 'username \1 password <secret hidden> \3' cfg.gsub! /ikev2 pre-shared-key (\S+)/, 'ikev2 pre-shared-key <secret hidden>' cfg.gsub! /ikev2 (remote|local)-authentication pre-shared-key (\S+)/, 'ikev2 \1-authentication pre-shared-key <secret hidden>' - cfg.gsub! /^(aaa-server TACACS\+ \(\S+\) host.*\n\skey) \S+$/m, '\1 <secret hidden>' + cfg.gsub! /^(aaa-server TACACS\+? \(\S+\) host.*\n\skey) \S+$/mi, '\1 <secret hidden>' cfg end |