diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-04-18 18:40:53 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-04-18 21:35:28 +0200 |
commit | f07f46d36e17ea07b0db65e3856cc090033d9e78 (patch) | |
tree | 0c98755d9466a3079edc1e7880bf9192c69a1b59 /src/conf_mode | |
parent | b81a37d19abfac0dbc1f49860dbe75a4f8caed61 (diff) | |
download | vyos-1x-f07f46d36e17ea07b0db65e3856cc090033d9e78.tar.gz vyos-1x-f07f46d36e17ea07b0db65e3856cc090033d9e78.zip |
ipoe-server: T2324: migrate RADIUS configuration to common CLI syntax
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/service_ipoe-server.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/conf_mode/service_ipoe-server.py b/src/conf_mode/service_ipoe-server.py index 25c33cc6d..958fbd561 100755 --- a/src/conf_mode/service_ipoe-server.py +++ b/src/conf_mode/service_ipoe-server.py @@ -137,7 +137,7 @@ def get_config(): # # authentication mode radius servers and settings if conf.exists(['authentication', 'mode', 'radius']): - for server in conf.list_nodes(['authentication', 'radius-server']): + for server in conf.list_nodes(['authentication', 'radius', 'server']): radius = { 'server' : server, 'key' : '', @@ -145,7 +145,7 @@ def get_config(): 'port' : '1812' } - conf.set_level(base_path + ['authentication', 'radius-server', server]) + conf.set_level(base_path + ['authentication', 'radius', 'server', server]) if conf.exists(['fail-time']): radius['fail-time'] = conf.return_value(['fail-time']) @@ -161,7 +161,7 @@ def get_config(): # # advanced radius-setting - conf.set_level(base_path + ['authentication', 'radius-settings']) + conf.set_level(base_path + ['authentication', 'radius']) if conf.exists(['acct-timeout']): ipoe['radius_acct_tmo'] = conf.return_value(['acct-timeout']) |