summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2024-08-02 18:33:17 +0300
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-09-18 10:35:02 +0000
commit9040d1caafc915d53f8d141138a6333c9f936fcd (patch)
treea7e9242c2f4e2260270b4e78f3645d2f2b5e6e9c /src
parent87611cccbcb89bcf0fb3316afd7064a7d2f66b5b (diff)
downloadvyos-1x-9040d1caafc915d53f8d141138a6333c9f936fcd.tar.gz
vyos-1x-9040d1caafc915d53f8d141138a6333c9f936fcd.zip
T6486: generate OpenVPN use data-ciphers instead of ncp-ciphers (#3930)mergify/bp/circinus/pr-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" (cherry picked from commit ffbc04c591b534188cb08bf3991fadac4aa386a8)
Diffstat (limited to 'src')
-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 %}