diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-08-11 11:03:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-11 11:03:15 +0300 |
commit | 43294da10313198c4f71f46eb39c4276551ad118 (patch) | |
tree | b35c2ec7912133411f0b7e49c58af58bee7d9848 /src/helpers/vyos-domain-resolver.py | |
parent | 4659f25804bd1b534767c134247c24699aaca722 (diff) | |
parent | d64d3b179ce487aa6b442c397c4bb3bb1f572155 (diff) | |
download | vyos-1x-43294da10313198c4f71f46eb39c4276551ad118.tar.gz vyos-1x-43294da10313198c4f71f46eb39c4276551ad118.zip |
Merge pull request #2147 from jestabro/remaining-defaults
T5434: remove reamining calls to incorrect defaults
Diffstat (limited to 'src/helpers/vyos-domain-resolver.py')
-rwxr-xr-x | src/helpers/vyos-domain-resolver.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/helpers/vyos-domain-resolver.py b/src/helpers/vyos-domain-resolver.py index 2036ca72e..7e2fe2462 100755 --- a/src/helpers/vyos-domain-resolver.py +++ b/src/helpers/vyos-domain-resolver.py @@ -26,7 +26,7 @@ from vyos.utils.commit import commit_in_progress from vyos.utils.dict import dict_search_args from vyos.utils.process import cmd from vyos.utils.process import run -from vyos.xml import defaults +from vyos.xml_ref import get_defaults base = ['firewall'] timeout = 300 @@ -49,13 +49,7 @@ def get_config(conf): firewall = conf.get_config_dict(base, key_mangling=('-', '_'), get_first_key=True, no_tag_node_value_mangle=True) - default_values = defaults(base) - for tmp in ['name', 'ipv6_name']: - if tmp in default_values: - del default_values[tmp] - - if 'zone' in default_values: - del default_values['zone'] + default_values = get_defaults(base, get_first_key=True) firewall = dict_merge(default_values, firewall) |