]> git.ipfire.org Git - people/ms/network.git/commitdiff
DHCP: Reload after subnet range changes
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 8 Sep 2016 17:14:26 +0000 (19:14 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 8 Sep 2016 17:14:26 +0000 (19:14 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/network

index 4daa2b8c94c115fabd2debca45225e6fb222c35e..923558e3e2113efa1633f5189ef8935b18ccff81 100644 (file)
@@ -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() {