summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-04-01 16:38:47 +0200
committerGitHub <noreply@github.com>2024-04-01 16:38:47 +0200
commit4999f605b024d041cdc18e69ea6cef48403a924e (patch)
treed02970eab2e4284a1c5b9c25d318792b7feec072
parent713b2f3702134abd9a34c539019a83d0e354eb22 (diff)
parent8cabdcfc85c8c86811cfdae2313896ea33ab247f (diff)
downloadvyos-1x-4999f605b024d041cdc18e69ea6cef48403a924e.tar.gz
vyos-1x-4999f605b024d041cdc18e69ea6cef48403a924e.zip
Merge pull request #3228 from vyos/mergify/bp/equuleus/pr-3223
system: T6193: invalid warning "is not a DHCP interface but uses DHCP name-server option" (backport #3223)
-rwxr-xr-xsrc/conf_mode/host_name.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/conf_mode/host_name.py b/src/conf_mode/host_name.py
index 87bad0dc6..1e4667cac 100755
--- a/src/conf_mode/host_name.py
+++ b/src/conf_mode/host_name.py
@@ -70,9 +70,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 })