Skip to content

Commit 4a5fbf5

Browse files
authored
Merge pull request #4381 from c-po/ipsec-opmode-profile
ipsec: T7225: "generate ipsec profile ios-remote-access" throws UndefinedError
2 parents 0ca7771 + c3a7fdc commit 4a5fbf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data/templates/ipsec/ios_profile.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
<!-- The server is authenticated using a certificate -->
5656
<key>AuthenticationMethod</key>
5757
<string>Certificate</string>
58-
{% if authentication.client_mode.startswith("eap") %}
58+
{% if authentication.client_mode is vyos_defined and authentication.client_mode.startswith("eap") %}
5959
<!-- The client uses EAP to authenticate -->
6060
<key>ExtendedAuthEnabled</key>
6161
<integer>1</integer>

0 commit comments

Comments
 (0)