From: Tomek Mrugalski Date: Mon, 21 Jan 2019 15:06:48 +0000 (+0100) Subject: [#313,!199] Doc for new commands expanded. X-Git-Tag: 429-Updated-StampedValue-to-support-reals_base~81 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a4206bb0fbfd8bebd81e55cdbf9c6b9640926188;p=thirdparty%2Fkea.git [#313,!199] Doc for new commands expanded. --- diff --git a/doc/guide/hooks.xml b/doc/guide/hooks.xml index 582d25e9cb..836c33a8dd 100644 --- a/doc/guide/hooks.xml +++ b/doc/guide/hooks.xml @@ -1418,7 +1418,7 @@ $ - Currently four commands are supported: reservation-add (which adds + Currently five commands are supported: reservation-add (which adds new host reservation), reservation-get (which returns existing reservation if specified criteria are matched), reservation-get-all (which returns all reservations in a specified subnet), @@ -1429,7 +1429,8 @@ $ (currently these are reservation-add and reservation-del, but this rule applies to other commands that may be implemented in the future), hosts database must be specified (see hosts-databases description in - and ) and it must not operate in + and + ) and it must not operate in read-only mode. If the hosts-databases are not specified or are running in read-only mode, the host_cmds library will load, but any attempts to use reservation-add or reservation-del will fail. @@ -1438,8 +1439,10 @@ $ Additional host reservation commands are planned in the future. For a description of envisaged commands, see -Control API -Requirements document. + Control API + Requirements document. + All commands are using JSON syntax. They can be issued either using @@ -1656,14 +1659,20 @@ An example result returned when the query was malformed: reservation-get-all can be used to query the host database and retrieve all reservations in a specified subnet. This command uses parameters providing the - mandatory subnet-id. Use a value of zero (0) to fetch global - reservations. + mandatory subnet-id. Global host reservations can be + retrieved by using subnet-id value of zero (0). The response returned by reservation-get-all - can be very long. + can be very long. The DHCP server does not handle DHCP + traffic when preparing a response to reservation-get-all. + If there are many reservations in a subnet, this may be disruptive. Use with caution. + For larger deployments, please consider using + reservation-get-page instead (see ). + For a reference, see . @@ -1683,8 +1692,17 @@ An example result returned when the query was malformed: The first page is queried without source-index and from, for next pages source-index and from should be set using the preceeding result source-index and next. After the last page - the result is empty (code 3). + the returned list is empty and result 3 is returned. + + This command is more complex than + reservation-get-all, but lets users + retrieve larger host reservations lists by smaller + chunks. For small deployments with few reservations, is it + easier to use reservation-get-all (see + . + + For a reference, see .