]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3001] fixed references to hooks libs in ARM
authorRazvan Becheriu <razvan@isc.org>
Tue, 15 Aug 2023 03:36:11 +0000 (06:36 +0300)
committerRazvan Becheriu <razvan@isc.org>
Wed, 16 Aug 2023 15:04:54 +0000 (15:04 +0000)
doc/sphinx/arm/agent.rst
doc/sphinx/arm/config-backend.rst
doc/sphinx/arm/ext-netconf.rst
doc/sphinx/arm/hooks-host-cache.rst
doc/sphinx/arm/hooks-host-cmds.rst
doc/sphinx/arm/hooks.rst

index 31be5f73e2e28cc375adbf918a8b86aaa9464bfe..328c03a8945f218df32120435014f2ee614fa982 100644 (file)
@@ -83,7 +83,7 @@ The following example demonstrates the basic CA configuration.
 
            "hooks-libraries": [
            {
-               "library": "/opt/local/control-agent-commands.so",
+               "library": "/opt/local/custom_hooks_example.so",
                "parameters": {
                    "param1": "foo"
                }
index df3981fbe80ba658a4620f01d36189bf159c0295..0b541df31e09debd312eda4b8ce469cdcb56d55a 100644 (file)
@@ -131,11 +131,11 @@ in two independent configuration sources.
 
 .. note::
 
-   It is recommended that :ischooklib:`libsubnet_cmds.so` not be used to
+   It is recommended that :ischooklib:`libdhcp_subnet_cmds.so` not be used to
    manage subnets when the configuration backend is used as a source
-   of information about the subnets. :ischooklib:`libsubnet_cmds.so`
+   of information about the subnets. :ischooklib:`libdhcp_subnet_cmds.so`
    modifies the local subnets configuration in the server's memory,
-   not in the database. Use :ischooklib:`libcb_cmds.so` to manage the
+   not in the database. Use :ischooklib:`libdhcp_cb_cmds.so` to manage the
    subnets information in the database instead.
 
 .. note::
index 83673a29eb5c914b0b258a9005ba66a16db951e5..d2079dcae85a3e1e5649f6fc554b411e05fb7b46 100644 (file)
@@ -616,7 +616,7 @@ Kea sources.
                // The hook libraries list may contain more than one library.
                {
                    // The only necessary parameter is the library filename.
-                   "library": "/opt/local/netconf-commands.so",
+                   "library": "/opt/local/custom_hooks_example.so",
 
                    // Some libraries may support parameters. Make sure you
                    // type this section carefully, as kea-netconf does not
index ec8851a74e399cf6dfb2bd2855ad4b6b49d2a1c1..ebf0cd9d341c52c8ec58269a74f28d78665d058a 100644 (file)
@@ -41,7 +41,7 @@ any other hook library; for example, this configuration could be used:
 
      "hooks-libraries": [
      {
-         "library": "/usr/local/lib/kea/hooks/libdhc_host_cache.so",
+         "library": "/usr/local/lib/kea/hooks/libdhcp_host_cache.so",
          "parameters": {
 
              # Tells Kea to never cache more than 1000 hosts.
index 52ee87d36c721efc26f30f1c96a5417adf383192..bcfc54f5cc68fdff31d0885cef5b379d6616f6c5 100644 (file)
@@ -59,7 +59,7 @@ modify data stored in the host database, the hosts database must be specified
 and it must not operate in read-only mode (for details, see the
 ``hosts-databases`` descriptions in :ref:`hosts-databases-configuration4` and
 :ref:`hosts-databases-configuration6`). If the ``hosts-databases`` are not
-specified or are running in read-only mode, :ischooklib:`libhost_cmds.so` will
+specified or are running in read-only mode, :ischooklib:`libdhcp_host_cmds.so` will
 load, but any attempts to use :isccmd:`reservation-add`, :isccmd:`reservation-del`, and
 :isccmd:`reservation-update` to modify data in that database will fail.
 
index af31587d173de50875495a3f0c47f8b7ab7cce08..3ebfcca40db3fd832a8de5eb357d7b1bf224c0c8 100644 (file)
@@ -191,10 +191,10 @@ configuration would be:
        :
        "hooks-libraries": [
            {
-               "library": "/opt/charging.so"
+               "library": "/opt/first_custom_hooks_example.so"
            },
            {
-               "library": "/opt/local/notification.so",
+               "library": "/opt/local/second_custom_hooks_example.so",
                "parameters": {
                    "mail": "spam@example.com",
                    "floor": 13,
@@ -220,12 +220,12 @@ Libraries may have additional parameters that are not mandatory, in the
 sense that there may be libraries that do not require them. However, for any
 given library there is often a requirement to specify a certain
 set of parameters. Please consult the documentation for each individual library for
-details. In the example above, the first library (``/opt/charging.so``) has no parameters. The
-second library (``/opt/local/notification.so``) has five parameters: specifying mail (string parameter),
-floor (integer parameter), debug (boolean parameter), lists
-(list of strings), and maps (containing strings). Nested parameters can
-be used if the library supports it. This topic is explained in detail in
-the `Hooks Developer's Guide section of the Kea Developer's Guide
+details. In the example above, the first library (``/opt/first_custom_hooks_example.so``)
+has no parameters. The second library (``/opt/local/second_custom_hooks_example.so``)
+has five parameters: specifying mail (string parameter), floor (integer parameter),
+debug (boolean parameter), lists (list of strings), and maps (containing strings).
+Nested parameters can be used if the library supports it. This topic is explained in detail
+in the `Hooks Developer's Guide section of the Kea Developer's Guide
 <https://reports.kea.isc.org/dev_guide/df/d46/hooksdgDevelopersGuide.html>`__.
 
 Some hooks use user context to set the parameters. See :ref:`user-context-hooks`.