diff options
author | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2024-02-12 20:53:44 +0100 |
---|---|---|
committer | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2024-02-12 20:53:44 +0100 |
commit | 8238f8cdae3ae14bd8bd95158c218c45285df478 (patch) | |
tree | fb7ad92068e995d568c783fb90944b14aa42977b /src/migration-scripts | |
parent | 19df28989d72f8006e1defd241ec5cc34660bbec (diff) | |
download | vyos-1x-8238f8cdae3ae14bd8bd95158c218c45285df478.tar.gz vyos-1x-8238f8cdae3ae14bd8bd95158c218c45285df478.zip |
ipsec: T5981: Strip '@' from migrated peer name
Diffstat (limited to 'src/migration-scripts')
-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']) |