From 90b63fca5ffe47dcb48cb1debc156175bd25c4ed Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 8 Sep 2016 19:14:26 +0200 Subject: [PATCH] DHCP: Reload after subnet range changes Signed-off-by: Michael Tremer --- src/network | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/network b/src/network index 4daa2b8c..923558e3 100644 --- a/src/network +++ b/src/network @@ -985,12 +985,10 @@ cli_dhcpd_subnet_range() { case "${action}" in new) - dhcpd_subnet_range_new ${proto} ${subnet_id} $@ - exit $? + dhcpd_subnet_range_new ${proto} ${subnet_id} $@ || exit ${EXIT_ERROR} ;; remove) - dhcpd_subnet_range_remove ${proto} ${subnet_id} $@ - exit $? + dhcpd_subnet_range_remove ${proto} ${subnet_id} $@ || exit ${EXIT_ERROR} ;; *) error "Unrecognized action: ${action}" @@ -998,6 +996,9 @@ cli_dhcpd_subnet_range() { exit ${EXIT_ERROR} ;; esac + + dhcpd_reload ${proto} + return ${EXIT_OK} } cli_dhcpd_subnet_show() { -- 2.47.3