From 52135032b6ab556db98b5f3fc2a3e6e2cbe9a607 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Thu, 13 May 2021 19:55:22 +0200 Subject: dhcp-server: T3544: test config in IPv4 mode only (cherry picked from commit 37f3ead353625b53cfa8953196a9c32b42a10e7f) --- src/conf_mode/dhcp_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/conf_mode/dhcp_server.py') 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) -- cgit v1.2.3