summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-05-13 19:55:22 +0200
committerChristian Poessinger <christian@poessinger.com>2021-05-13 19:55:34 +0200
commit37f3ead353625b53cfa8953196a9c32b42a10e7f (patch)
treef36e299ca0dd1d9dee7aff2d7e7e33fe33341f96
parent3c754695590b9d9e582c10e6d05c2b628e79262c (diff)
downloadvyos-1x-37f3ead353625b53cfa8953196a9c32b42a10e7f.tar.gz
vyos-1x-37f3ead353625b53cfa8953196a9c32b42a10e7f.zip
dhcp-server: T3544: test config in IPv4 mode only
-rwxr-xr-xsrc/conf_mode/dhcp_server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/dhcp_server.py b/src/conf_mode/dhcp_server.py
index 47df12804..af77c6d43 100755
--- a/src/conf_mode/dhcp_server.py
+++ b/src/conf_mode/dhcp_server.py
@@ -282,7 +282,7 @@ def generate(dhcp):
# XXX: as we have the ability for a user to pass in "raw" options via VyOS
# CLI (see T3544) we now ask ISC dhcpd to test the newly rendered
# configuration
- tmp = run(f'/usr/sbin/dhcpd -t -cf {tmp_file}')
+ tmp = run(f'/usr/sbin/dhcpd -4 -q -t -cf {tmp_file}')
if tmp > 0:
if os.path.exists(tmp_file):
os.unlink(tmp_file)