summaryrefslogtreecommitdiff
path: root/data/templates/ethernet
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-10 10:08:16 +0200
committerChristian Poessinger <christian@poessinger.com>2022-04-10 10:08:16 +0200
commit85e4bae1ef9e4f929adbf384a6344fe25c6c6689 (patch)
treea1cee0e5cfc9f7a6f775efe7746108f2bb40ebed /data/templates/ethernet
parentaa4cb50bdf9932ff54776ee222f3caecb4a26b28 (diff)
downloadvyos-1x-85e4bae1ef9e4f929adbf384a6344fe25c6c6689.tar.gz
vyos-1x-85e4bae1ef9e4f929adbf384a6344fe25c6c6689.zip
eapol: T4333: migrate to new vyos_defined Jinja2 test
Diffstat (limited to 'data/templates/ethernet')
-rw-r--r--data/templates/ethernet/wpa_supplicant.conf.tmpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/data/templates/ethernet/wpa_supplicant.conf.tmpl b/data/templates/ethernet/wpa_supplicant.conf.tmpl
index 308d777f1..74f0999c1 100644
--- a/data/templates/ethernet/wpa_supplicant.conf.tmpl
+++ b/data/templates/ethernet/wpa_supplicant.conf.tmpl
@@ -31,8 +31,8 @@ ap_scan=0
fast_reauth=1
network={
-{% if eapol is defined and eapol is not none %}
-{% if eapol.ca_certificate is defined and eapol.ca_certificate is not none %}
+{% if eapol is vyos_defined %}
+{% if eapol.ca_certificate is vyos_defined %}
ca_cert="/run/wpa_supplicant/{{ ifname }}_ca.pem"
{% endif %}
client_cert="/run/wpa_supplicant/{{ ifname }}_cert.pem"
@@ -43,7 +43,7 @@ network={
key_mgmt=IEEE8021X
eap=TLS
-{% if mac is defined and mac is not none %}
+{% if mac is vyos_defined %}
identity="{{ mac }}"
{% else %}
identity="{{ hw_id }}"