diff options
author | Daniil Baturin <daniil@vyos.io> | 2024-04-01 16:32:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-01 16:32:54 +0200 |
commit | ecdf22fee3272dedc8c1c7c6d5e95057042b48ce (patch) | |
tree | 15d9b2cb3f47a74703b17767866c05f41cda83d1 /src/conf_mode | |
parent | 9e17fae6f9613a3de251824b090ee96dddaa7412 (diff) | |
parent | 61e70c5500ad5b0a9d25bdee28d982644bad6461 (diff) | |
download | vyos-1x-ecdf22fee3272dedc8c1c7c6d5e95057042b48ce.tar.gz vyos-1x-ecdf22fee3272dedc8c1c7c6d5e95057042b48ce.zip |
Merge pull request #3223 from c-po/T6193-dhcp-client
system: T6193: invalid warning "is not a DHCP interface but uses DHCP name-server option"
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/system_host-name.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/conf_mode/system_host-name.py b/src/conf_mode/system_host-name.py index 6204cf247..8975cadb6 100755 --- a/src/conf_mode/system_host-name.py +++ b/src/conf_mode/system_host-name.py @@ -71,9 +71,9 @@ def get_config(config=None): hosts['nameserver'].append(ns) else: tmp = '' - if_type = Section.section(ns) - if conf.exists(['interfaces', if_type, ns, 'address']): - tmp = conf.return_values(['interfaces', if_type, ns, 'address']) + config_path = Section.get_config_path(ns) + if conf.exists(['interfaces', config_path, 'address']): + tmp = conf.return_values(['interfaces', config_path, 'address']) hosts['nameservers_dhcp_interfaces'].update({ ns : tmp }) |