summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsarthurdev <965089+sarthurdev@users.noreply.github.com>2024-02-12 20:53:44 +0100
committersarthurdev <965089+sarthurdev@users.noreply.github.com>2024-02-12 20:53:44 +0100
commit8238f8cdae3ae14bd8bd95158c218c45285df478 (patch)
treefb7ad92068e995d568c783fb90944b14aa42977b /src
parent19df28989d72f8006e1defd241ec5cc34660bbec (diff)
downloadvyos-1x-8238f8cdae3ae14bd8bd95158c218c45285df478.tar.gz
vyos-1x-8238f8cdae3ae14bd8bd95158c218c45285df478.zip
ipsec: T5981: Strip '@' from migrated peer 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'])