summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-02-12 21:42:16 +0100
committerGitHub <noreply@github.com>2024-02-12 21:42:16 +0100
commitfe9147623c9f59e125fb3e967aa0fba2cbf9fb0a (patch)
tree07ed1247d0c24611e3752ada3009862d149b513f /src
parent69a0fa708654ca51a2d1d2a815a93263c632f619 (diff)
parent8238f8cdae3ae14bd8bd95158c218c45285df478 (diff)
downloadvyos-1x-fe9147623c9f59e125fb3e967aa0fba2cbf9fb0a.tar.gz
vyos-1x-fe9147623c9f59e125fb3e967aa0fba2cbf9fb0a.zip
Merge pull request #2993 from sarthurdev/T5981
ipsec: T5981: Strip '@' from migrated peer PKI name
Diffstat (limited to 'src')
-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'])