]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2028] Updated the ARM
authorMarcin Siodelski <marcin@isc.org>
Wed, 22 Sep 2021 05:59:51 +0000 (07:59 +0200)
committerMarcin Siodelski <marcin@isc.org>
Wed, 22 Sep 2021 12:07:28 +0000 (14:07 +0200)
Added a note about specifying option data and option definitions when
using the configuration backend. This was requested in the review.

doc/sphinx/arm/config-backend.rst
doc/sphinx/arm/hooks-cb-cmds.rst

index ed6ee93d9873eca9fb61a13ebc2a1fdfb758d4ec..9535c0c78665b5445b1d2308eeeeedb356d54415 100644 (file)
@@ -138,6 +138,26 @@ The current CB limitations will be gradually removed in subsequent Kea releases.
    not in the database. Use the ``cb_cmds`` hooks library to manage the
    subnets information in the database instead.
 
+.. note::
+
+   Using custom option formats requires creating definitions for these options.
+   Suppose a user wishes to set option data in the configuration backend. In
+   that case, we recommend specifying the definition for that option in the
+   configuration backend as well. It is essential when multiple servers are
+   managed via the configuration backend, and may differ in their
+   configurations. The option data parser can search for an option definition
+   appropriate for the server for which the option data is specified.
+
+   In a single-server deployment, or when all servers share the same
+   configuration file information, it is possible to specify option
+   definitions in the configuration files and option data in the configuration
+   backend. The server receiving a command to set option data must have a
+   valid definition in its configuration file, even when it sets option data
+   for another server.
+
+   It is not supported to specify option definitions in the configuration
+   backend and the corresponding option data in the server configuration files.
+
 CB Components
 -------------
 
index 5f4547980aff29281476f3b94ad0f56686e40342..ba414ab5eff08e62e9a7307c9efd3a45866de5e9 100644 (file)
@@ -21,6 +21,11 @@ support contract.
    This library may only be loaded by the ``kea-dhcp4`` or
    ``kea-dhcp6`` process.
 
+.. note::
+
+   Please read about :ref:`cb-limitations` before using the commands
+   described in this section.
+
 Commands Structure
 ~~~~~~~~~~~~~~~~~~
 
@@ -1014,7 +1019,7 @@ These commands create a new DHCP option definition or replace an
 existing option definition in the database. The structure of the option
 definition information is the same as in the Kea configuration file (see
 :ref:`dhcp4-custom-options` and :ref:`dhcp6-custom-options`).
-The following command creates the DHCPv4 option definition in the
+The following command creates the DHCPv4 option definition at the
 top-level "dhcp4" option space and associates it with the "server1":
 
 .. code-block:: json
@@ -1042,7 +1047,8 @@ top-level "dhcp4" option space and associates it with the "server1":
 
 The `server-tags` list must include exactly one
 server tag or the keyword "all". It must not contain the
-`null` value.</para>
+`null` value.
+
 
 .. _command-remote-option4-global-del: