From: Marcin Siodelski Date: Tue, 5 Dec 2017 10:06:23 +0000 (+0100) Subject: [5442] Described dhcp-enable and dhcp-disable in the User's Guide. X-Git-Tag: trac5443_base~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a100b44b3ed08bfc76465bdbd5e8cdcc6911db2b;p=thirdparty%2Fkea.git [5442] Described dhcp-enable and dhcp-disable in the User's Guide. --- diff --git a/doc/guide/ctrl-channel.xml b/doc/guide/ctrl-channel.xml index 04907a0573..2b37e9660c 100644 --- a/doc/guide/ctrl-channel.xml +++ b/doc/guide/ctrl-channel.xml @@ -557,6 +557,42 @@ $ curl -X POST -H "Content-Type: application/json" -d '{ "command": "config-get" +
+ dhcp-disable + + The dhcp-disable command globally disables the DHCP + service. The server continues to operate, but it drops all received DHCP + messages. This command is useful when the server's maintenance requires that + the server temporarily stops allocating new leases and renew existing leases. + It is also useful in failover like configurations during a synchronization of + the lease databases at startup or recovery after a failure. The optional parameter + max-period specifies the time in seconds after which the + DHCP service should be automatically re-enabled if the + dhcp-enable command is not sent before this time elapses. + + +{ + "command": "dhcp-disable", + "arguments": { + "max-period": 20 + } +} + +
+ +
+ dhcp-enable + + The dhcp-enable command globally enables the DHCP + service. + + +{ + "command": "dhcp-enable" +} + +
+
version-get diff --git a/doc/guide/dhcp4-srv.xml b/doc/guide/dhcp4-srv.xml index b0070184be..4fcc3fc6a5 100644 --- a/doc/guide/dhcp4-srv.xml +++ b/doc/guide/dhcp4-srv.xml @@ -4556,6 +4556,8 @@ autogenerated IDs are not stable across configuration changes. config-set config-test config-write + dhcp-disable + dhcp-enable leases-reclaim list-commands shutdown diff --git a/doc/guide/dhcp6-srv.xml b/doc/guide/dhcp6-srv.xml index 06d5717aed..1eaeaa73cc 100644 --- a/doc/guide/dhcp6-srv.xml +++ b/doc/guide/dhcp6-srv.xml @@ -4558,6 +4558,8 @@ autogenerated IDs are not stable across configuration changes. config-set config-test config-write + dhcp-disable + dhcp-enable leases-reclaim list-commands shutdown