summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-02-05 19:33:58 +0100
committerChristian Poessinger <christian@poessinger.com>2020-02-05 19:35:38 +0100
commitabedc2155adad8f8df1c99b46bfba171cb14db65 (patch)
tree4ea7dd82850d2175137d7aa1ecf2788c57a62e6a /src/conf_mode
parent74329734d3c465675ec3650cb2b8d1cbe8ec0885 (diff)
downloadvyos-1x-abedc2155adad8f8df1c99b46bfba171cb14db65.tar.gz
vyos-1x-abedc2155adad8f8df1c99b46bfba171cb14db65.zip
radius: T1948: rename server dictionary
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/system-login-radius.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/conf_mode/system-login-radius.py b/src/conf_mode/system-login-radius.py
index 8f5d7bc36..515e4f637 100755
--- a/src/conf_mode/system-login-radius.py
+++ b/src/conf_mode/system-login-radius.py
@@ -73,7 +73,7 @@ def get_config():
# Read in all RADIUS servers and store to list
for server in conf.list_nodes(['server']):
- radius = {
+ server_cfg = {
'address': server,
'key': '',
'port': '1812',
@@ -83,18 +83,18 @@ def get_config():
# RADIUS shared secret
if conf.exists(['key']):
- radius['key'] = conf.return_value(['key'])
+ server_cfg['key'] = conf.return_value(['key'])
# RADIUS authentication port
if conf.exists(['port']):
- radius['port'] = conf.return_value(['port'])
+ server_cfg['port'] = conf.return_value(['port'])
# RADIUS session timeout
if conf.exists(['timeout']):
- radius['timeout'] = conf.return_value(['timeout'])
+ server_cfg['timeout'] = conf.return_value(['timeout'])
# Append individual RADIUS server configuration to global server list
- radius['server'].append(radius)
+ radius['server'].append(server_cfg)
return radius