summaryrefslogtreecommitdiff
path: root/src/conf_mode/system-login.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-10-14 20:16:24 +0200
committerChristian Poessinger <christian@poessinger.com>2022-10-14 20:16:24 +0200
commit80d258f1ad6de7981777dbd6254c00435d981a8f (patch)
treed5d500e449f9b471cda50837e6890dbdbfd0e95f /src/conf_mode/system-login.py
parentda535ef5697f6ce87a7f34ff185e4df239e6af63 (diff)
downloadvyos-1x-80d258f1ad6de7981777dbd6254c00435d981a8f.tar.gz
vyos-1x-80d258f1ad6de7981777dbd6254c00435d981a8f.zip
login: 2fa: T874: remove unused code path for global 1fa settings
Diffstat (limited to 'src/conf_mode/system-login.py')
-rwxr-xr-xsrc/conf_mode/system-login.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/conf_mode/system-login.py b/src/conf_mode/system-login.py
index eea6c7413..e26b81e3d 100755
--- a/src/conf_mode/system-login.py
+++ b/src/conf_mode/system-login.py
@@ -64,18 +64,6 @@ def get_config(config=None):
login = conf.get_config_dict(base, key_mangling=('-', '_'),
no_tag_node_value_mangle=True, get_first_key=True)
- # We have gathered the dict representation of the CLI, but there are default
- # options which we need to update into the dictionary retrived.
- default_values = defaults(base)
- # XXX: T2665: we can not safely rely on the defaults() when there are
- # tagNodes in place, it is better to blend in the defaults manually.
- # defaults for RADIUS and USER will be added later down this function
- if 'radius' in default_values:
- del default_values['radius']
- if 'user' in default_values:
- del default_values['user']
- login = dict_merge(default_values, login)
-
# users no longer existing in the running configuration need to be deleted
local_users = get_local_users()
cli_users = []