diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-03-08 17:34:44 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-03-08 17:34:44 +0100 |
commit | ff2e8d333d659567132660d8a09094acf07eb8d3 (patch) | |
tree | a80edffc837b267cea6abd6b4dea27f43aaef326 /src | |
parent | 33ce5afb385b3dadb52cc15a3dc4ff8aef84e29d (diff) | |
download | vyos-1x-ff2e8d333d659567132660d8a09094acf07eb8d3.tar.gz vyos-1x-ff2e8d333d659567132660d8a09094acf07eb8d3.zip |
wireless: radius: T2110: aupport server disable option
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/interfaces-wireless.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/conf_mode/interfaces-wireless.py b/src/conf_mode/interfaces-wireless.py index 3d4da10da..0c6500578 100755 --- a/src/conf_mode/interfaces-wireless.py +++ b/src/conf_mode/interfaces-wireless.py @@ -643,6 +643,7 @@ radius_client_addr={{ sec_wpa_radius_source }} {% endif %} {% for radius in sec_wpa_radius -%} +{%- if not radius.disabled -%} # RADIUS authentication server auth_server_addr={{ radius.server }} auth_server_port={{ radius.port }} @@ -653,6 +654,7 @@ acct_server_addr={{ radius.server }} acct_server_port={{ radius.acc_port }} acct_server_shared_secret={{ radius.key }} {% endif %} +{% endif %} {% endfor %} {% endif %} @@ -1211,6 +1213,7 @@ def get_config(): radius = { 'server' : server, 'acc_port' : '', + 'disabled': False, 'port' : 1812, 'key' : '' } @@ -1223,6 +1226,10 @@ def get_config(): if conf.exists('accounting'): radius['acc_port'] = radius['port'] + 1 + # Check if RADIUS server was temporary disabled + if conf.exists(['disable']): + radius['disabled'] = True + # RADIUS server shared-secret if conf.exists('key'): radius['key'] = conf.return_value('key') |