summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsarthurdev <965089+sarthurdev@users.noreply.github.com>2024-02-12 20:53:44 +0100
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-02-12 20:42:59 +0000
commit61c7202b11d080c514a19047b16044e96673afde (patch)
treeb2efe858035201b27ceee4f5a9f0c3e0c9441f8b
parent939e06bcab7d0a8b6dec637b70f2e7fb777e5bab (diff)
downloadvyos-1x-61c7202b11d080c514a19047b16044e96673afde.tar.gz
vyos-1x-61c7202b11d080c514a19047b16044e96673afde.zip
ipsec: T5981: Strip '@' from migrated peer name
(cherry picked from commit 8238f8cdae3ae14bd8bd95158c218c45285df478)
-rwxr-xr-xsrc/migration-scripts/ipsec/6-to-72
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'])