summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2024-08-02 18:33:17 +0300
committerGitHub <noreply@github.com>2024-08-02 18:33:17 +0300
commitffbc04c591b534188cb08bf3991fadac4aa386a8 (patch)
treeb3d2cb8fcc86fbc88e21d2a016c9664d3e277853
parent0f66f4a84deee3da1b164c30dbe221105b424659 (diff)
downloadvyos-1x-ffbc04c591b534188cb08bf3991fadac4aa386a8.tar.gz
vyos-1x-ffbc04c591b534188cb08bf3991fadac4aa386a8.zip
T6486: generate OpenVPN use data-ciphers instead of ncp-ciphers (#3930)
In the PR https://github.com/vyos/vyos-1x/pull/3823 the ncp-ciphers were replaced with `data-ciphers` fix template for "generate openvpn client-config"
-rwxr-xr-xsrc/op_mode/generate_ovpn_client_file.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/op_mode/generate_ovpn_client_file.py b/src/op_mode/generate_ovpn_client_file.py
index 974f7d9b6..1d2f1067a 100755
--- a/src/op_mode/generate_ovpn_client_file.py
+++ b/src/op_mode/generate_ovpn_client_file.py
@@ -51,12 +51,12 @@ verb 3
} %}
{% if encryption is defined and encryption is not none %}
-{% if encryption.ncp_ciphers is defined and encryption.ncp_ciphers is not none %}
-cipher {% for algo in encryption.ncp_ciphers %}
+{% if encryption.data_ciphers is defined and encryption.data_ciphers is not none %}
+cipher {% for algo in encryption.data_ciphers %}
{{ encryption_map[algo] if algo in encryption_map.keys() else algo }}{% if not loop.last %}:{% endif %}
{% endfor %}
-data-ciphers {% for algo in encryption.ncp_ciphers %}
+data-ciphers {% for algo in encryption.data_ciphers %}
{{ encryption_map[algo] if algo in encryption_map.keys() else algo }}{% if not loop.last %}:{% endif %}
{% endfor %}
{% endif %}