diff options
author | Christian Breunig <christian@breunig.cc> | 2024-02-12 21:46:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-12 21:46:26 +0100 |
commit | 6f64847213a01f125147aa2e7193951caad83f35 (patch) | |
tree | b2efe858035201b27ceee4f5a9f0c3e0c9441f8b /src | |
parent | 939e06bcab7d0a8b6dec637b70f2e7fb777e5bab (diff) | |
parent | 61c7202b11d080c514a19047b16044e96673afde (diff) | |
download | vyos-1x-6f64847213a01f125147aa2e7193951caad83f35.tar.gz vyos-1x-6f64847213a01f125147aa2e7193951caad83f35.zip |
Merge pull request #2996 from vyos/mergify/bp/sagitta/pr-2993
ipsec: T5981: Strip '@' from migrated peer PKI name (backport #2993)
Diffstat (limited to 'src')
-rwxr-xr-x | src/migration-scripts/ipsec/6-to-7 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/migration-scripts/ipsec/6-to-7 b/src/migration-scripts/ipsec/6-to-7 index 71fbbe8a1..f8b6de560 100755 --- a/src/migration-scripts/ipsec/6-to-7 +++ b/src/migration-scripts/ipsec/6-to-7 @@ -63,7 +63,7 @@ if config.exists(ipsec_site_base): changes_made = True peer_x509_base = ipsec_site_base + [peer, 'authentication', 'x509'] - pki_name = 'peer_' + peer.replace(".", "-") + pki_name = 'peer_' + peer.replace(".", "-").replace("@", "") if config.exists(peer_x509_base + ['cert-file']): cert_file = config.return_value(peer_x509_base + ['cert-file']) |