summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-05-13 19:55:22 +0200
committerChristian Poessinger <christian@poessinger.com>2021-05-15 11:57:06 +0200
commit52135032b6ab556db98b5f3fc2a3e6e2cbe9a607 (patch)
treeee5827ff339bf2fd80d9a11569d1f170772dcdaa /src/conf_mode
parente3f43abab6083610625c2fcc74bb359277f005fb (diff)
downloadvyos-1x-52135032b6ab556db98b5f3fc2a3e6e2cbe9a607.tar.gz
vyos-1x-52135032b6ab556db98b5f3fc2a3e6e2cbe9a607.zip
dhcp-server: T3544: test config in IPv4 mode only
(cherry picked from commit 37f3ead353625b53cfa8953196a9c32b42a10e7f)
Diffstat (limited to 'src/conf_mode')
-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)