summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-06 08:47:10 +0200
committerChristian Poessinger <christian@poessinger.com>2022-04-06 08:47:10 +0200
commit8b7a0155af1291438fb533933bf93e82f960c99b (patch)
tree74af6eceb83b53b7b117bd0ee016c1ee33e3f49b /src/conf_mode
parentbe57ae38bb7c5a12e783e8be9de9142a6bd4e02b (diff)
downloadvyos-1x-8b7a0155af1291438fb533933bf93e82f960c99b.tar.gz
vyos-1x-8b7a0155af1291438fb533933bf93e82f960c99b.zip
dns: forwarding: T3804: fix warning message about "system name-server"
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/dns_forwarding.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/conf_mode/dns_forwarding.py b/src/conf_mode/dns_forwarding.py
index 98dc87ccd..fa9b21f20 100755
--- a/src/conf_mode/dns_forwarding.py
+++ b/src/conf_mode/dns_forwarding.py
@@ -269,9 +269,8 @@ def verify(dns):
raise ConfigError('Invalid authoritative records have been defined')
if 'system' in dns:
- if not ('system_name_server' in dns or 'system_name_server_dhcp' in dns):
- print("Warning: No 'system name-server' or 'system " \
- "name-servers-dhcp' configured")
+ if not 'system_name_server' in dns:
+ print('Warning: No "system name-server" configured')
return None