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:39 +0200 |
commit | 8c7b09c1487547df339037cfae861d78bd51a17f (patch) | |
tree | 9d7b15b99dfe17a14af3323216e783804a855792 | |
parent | 13fc7630734414ddd6a712ecc274aeae70e6cb2c (diff) | |
download | vyatta-op-8c7b09c1487547df339037cfae861d78bd51a17f.tar.gz vyatta-op-8c7b09c1487547df339037cfae861d78bd51a17f.zip |
strip-config: T1484: remove OSPF md5 key
-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; |