summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2025-03-06 16:35:08 +0100
committerChristian Breunig <christian@breunig.cc>2025-03-06 16:35:08 +0100
commitc3a7fdc5cc75949361915db73fbac107ee53edd9 (patch)
treeb2811f049f055be850ba869bb3c0588aace317dc /data
parent67a4363ed91e3f68e12428526e311b71f532285a (diff)
downloadvyos-1x-c3a7fdc5cc75949361915db73fbac107ee53edd9.tar.gz
vyos-1x-c3a7fdc5cc75949361915db73fbac107ee53edd9.zip
ipsec: T7225: "generate ipsec profile ios-remote-access" throws UndefinedError
Calling "generate ipsec profile ios-remote-access rw remote ipsec.vyos.net name VYOS-NET profile VYOS" in op-mode causes File "/usr/share/vyos/templates/ipsec/ios_profile.j2", line 58, in top-level template code {% if authentication.client_mode.startswith("eap") %} ^^^^^^^^^^^^^^^^^^^^^^^^^ jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'client_mode'
Diffstat (limited to 'data')
-rw-r--r--data/templates/ipsec/ios_profile.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/ipsec/ios_profile.j2 b/data/templates/ipsec/ios_profile.j2
index 966fad433..eaf00018b 100644
--- a/data/templates/ipsec/ios_profile.j2
+++ b/data/templates/ipsec/ios_profile.j2
@@ -55,7 +55,7 @@
<!-- The server is authenticated using a certificate -->
<key>AuthenticationMethod</key>
<string>Certificate</string>
-{% if authentication.client_mode.startswith("eap") %}
+{% if authentication.client_mode is vyos_defined and authentication.client_mode.startswith("eap") %}
<!-- The client uses EAP to authenticate -->
<key>ExtendedAuthEnabled</key>
<integer>1</integer>