summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-09-02 16:05:40 +0200
committerChristian Poessinger <christian@poessinger.com>2021-09-02 16:05:40 +0200
commit8032f4bb72db064d2b3f6f0954f6674091822cc4 (patch)
tree7ed0741c991000e5c9e3a85669d7d3c74d8c243c /src/conf_mode
parentb1ff7baaf3c52c8c364955632fcece2da7033b10 (diff)
downloadvyos-1x-8032f4bb72db064d2b3f6f0954f6674091822cc4.tar.gz
vyos-1x-8032f4bb72db064d2b3f6f0954f6674091822cc4.zip
login: radius: T3192: drop workaround required by get_config_dict()
The workaround is no longer required, as the issue was resolved in get_config_dict() so if it is a <multi/> node, a list is always returned.
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/system-login.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/conf_mode/system-login.py b/src/conf_mode/system-login.py
index f0b92aea8..93696e653 100755
--- a/src/conf_mode/system-login.py
+++ b/src/conf_mode/system-login.py
@@ -80,12 +80,6 @@ def get_config(config=None):
login['radius']['server'][server] = dict_merge(default_values,
login['radius']['server'][server])
- # XXX: for a yet unknown reason when we only have one source-address
- # get_config_dict() will show a string over a string
- if 'radius' in login and 'source_address' in login['radius']:
- if isinstance(login['radius']['source_address'], str):
- login['radius']['source_address'] = [login['radius']['source_address']]
-
# create a list of all users, cli and users
all_users = list(set(local_users + cli_users))
# We will remove any normal users that dos not exist in the current