Development
This commit is contained in:
parent
b0447625f6
commit
84118a4c2b
2 changed files with 12 additions and 5 deletions
|
|
@ -566,10 +566,12 @@ def validate_config(data):
|
|||
)
|
||||
dns = eo.get("dns_server", "")
|
||||
if dns:
|
||||
check_ip("explicit_overrides.dns_server", dns)
|
||||
for _ip in (dns if isinstance(dns, list) else [dns]):
|
||||
check_ip("explicit_overrides.dns_server", _ip)
|
||||
ntp = eo.get("ntp_server", "")
|
||||
if ntp:
|
||||
check_ip("explicit_overrides.ntp_server", ntp)
|
||||
for _ip in (ntp if isinstance(ntp, list) else [ntp]):
|
||||
check_ip("explicit_overrides.ntp_server", _ip)
|
||||
|
||||
pool_start = check_ip("dynamic_pool_start", d["dynamic_pool_start"])
|
||||
pool_end = check_ip("dynamic_pool_end", d["dynamic_pool_end"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue