Revert: psk is not readable and only exists on initial (#2242)

* Revert: psk is not readable and only exists on initial

* fix tests
This commit is contained in:
Pascal Vizeli 2020-11-11 21:07:28 +01:00 committed by GitHub
parent d558ad2d76
commit c76a4ff422
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,12 +89,15 @@
{
{% if interface.wifi.auth == "wep" %}
'auth-alg': <'none'>,
'key-mgmt': <'none'>,
'key-mgmt': <'none'>
{% elif interface.wifi.auth == "wpa-psk" %}
'auth-alg': <'open'>,
'key-mgmt': <'wpa-psk'>,
'key-mgmt': <'wpa-psk'>
{% endif %}
{% if interface.wifi.psk %}
,
'psk': <'{{ interface.wifi.psk }}'>
{% endif %}
{% endif %}
}
{% endif %}