diff options
author | John Estabrook <jestabro@vyos.io> | 2023-08-06 18:24:09 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2023-08-07 14:46:42 -0500 |
commit | 53b2194a6431139b612ff4ab45d88fd8080ec8af (patch) | |
tree | bb2de65453b708cabae90142e685e7a52752274c /src/conf_mode/service_console-server.py | |
parent | 2d191496e2750b633f1fc41810c0044a97498278 (diff) | |
download | vyos-1x-53b2194a6431139b612ff4ab45d88fd8080ec8af.tar.gz vyos-1x-53b2194a6431139b612ff4ab45d88fd8080ec8af.zip |
T5434: use merge_defaults in service_console-server.py
Diffstat (limited to 'src/conf_mode/service_console-server.py')
-rwxr-xr-x | src/conf_mode/service_console-server.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/conf_mode/service_console-server.py b/src/conf_mode/service_console-server.py index 7eb41ea87..b112add3f 100755 --- a/src/conf_mode/service_console-server.py +++ b/src/conf_mode/service_console-server.py @@ -20,10 +20,8 @@ from sys import exit from psutil import process_iter from vyos.config import Config -from vyos.configdict import dict_merge from vyos.template import render from vyos.utils.process import call -from vyos.xml import defaults from vyos import ConfigError config_file = '/run/conserver/conserver.cf' @@ -49,11 +47,7 @@ def get_config(config=None): # 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 + ['device']) - if 'device' in proxy: - for device in proxy['device']: - tmp = dict_merge(default_values, proxy['device'][device]) - proxy['device'][device] = tmp + proxy = conf.merge_defaults(proxy, recursive=True) return proxy |