diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-06-24 23:25:39 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-06-24 23:25:48 +0200 |
commit | 592559731658e2f56ecb7e7e0ab913034ae30847 (patch) | |
tree | 945d66d45d5494057a383e4fdae34dd3042d0551 | |
parent | d0e3a28c6a1377bed7637d28fd2cf510ac9bf49d (diff) | |
download | vyatta-op-592559731658e2f56ecb7e7e0ab913034ae30847.tar.gz vyatta-op-592559731658e2f56ecb7e7e0ab913034ae30847.zip |
strip-config: T1484: remove OSPF md5 key
(cherry picked from commit 8c7b09c1487547df339037cfae861d78bd51a17f)
-rw-r--r-- | scripts/vyos-strip-config.pl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/vyos-strip-config.pl b/scripts/vyos-strip-config.pl index 7b1d9ed..b37703f 100644 --- a/scripts/vyos-strip-config.pl +++ b/scripts/vyos-strip-config.pl @@ -161,6 +161,9 @@ $input =~ s/(shared-secret-key-file|ca-cert-file|cert-file|dh-file|key-file|clie # Strip IPSEC secrets $input =~ s/pre-shared-secret \S+/pre-shared-secret xxxxxx/g if !($keepKeys); +# Strip OSPF md5-key +$input =~ s/md5-key \S+/md5-key xxxxxx/g if !($keepKeys); + # Strip BGP ASNs $input =~ s/(bgp|remote-as) (\d+)/$1 XXXXXX/g if $stripASN; |