summaryrefslogtreecommitdiff
path: root/data/templates/wifi/wpa_supplicant.conf.tmpl
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-07-24 22:00:36 +0200
committerChristian Poessinger <christian@poessinger.com>2020-07-25 17:30:12 +0200
commit79af6c7b35164d3313c39dff2bc1bffbb4b326cd (patch)
tree4bc224952303fcdfa9b64033eb222233dff87a6e /data/templates/wifi/wpa_supplicant.conf.tmpl
parentee65528d720964cf77bc9b28e6f8fb19b9783066 (diff)
downloadvyos-1x-79af6c7b35164d3313c39dff2bc1bffbb4b326cd.tar.gz
vyos-1x-79af6c7b35164d3313c39dff2bc1bffbb4b326cd.zip
wireless: ifconfig: T2653: move to get_config_dict()
The current VyOS CLI parser code written in Python contains a ton of duplicates which I can also hold myself accountable for - or maybe mainly me - depends on the angle of judge.
Diffstat (limited to 'data/templates/wifi/wpa_supplicant.conf.tmpl')
-rw-r--r--data/templates/wifi/wpa_supplicant.conf.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/templates/wifi/wpa_supplicant.conf.tmpl b/data/templates/wifi/wpa_supplicant.conf.tmpl
index 2784883f1..9ddad35fd 100644
--- a/data/templates/wifi/wpa_supplicant.conf.tmpl
+++ b/data/templates/wifi/wpa_supplicant.conf.tmpl
@@ -1,8 +1,8 @@
# WPA supplicant config
network={
ssid="{{ ssid }}"
-{%- if sec_wpa_passphrase %}
- psk="{{ sec_wpa_passphrase }}"
+{% if security is defined and security.wpa is defined and security.wpa.passphrase is defined %}
+ psk="{{ security.wpa.passphrase }}"
{% else %}
key_mgmt=NONE
{% endif %}