]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1601] added ChangeLog and updated documentation
authorRazvan Becheriu <razvan@isc.org>
Wed, 20 Jan 2021 15:16:38 +0000 (17:16 +0200)
committerRazvan Becheriu <razvan@isc.org>
Fri, 22 Jan 2021 17:15:20 +0000 (17:15 +0000)
ChangeLog
doc/sphinx/arm/ctrl-channel.rst
src/share/api/dhcp-disable.json
src/share/api/dhcp-enable.json

index fd8f38e07f9c7f5324d99cae7fe7ef25476439b6..e35dbf113620cab0027cc930c8d29d1e6b736659 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+1858.  [bug]           razvan
+       The network state can be independently altered by the user
+       command, the database connection recovery mechanics or by
+       the HA library. The state transitions to disabled when any
+       originator sets the flag and remains disabled until all flags
+       are cleared. The 'dhcp-enable' and 'dhcp-disable' commands
+       accept 'origin' parameter with valid values of 'user' (which
+       is the default) indicating user generated command and
+       'ha-partner' which is used internally by the HA library.
+       (Gitlab #1601)
+
 1857.  [build]         andrei
        Code format styles meant to be as close as possible to the
        recommended coding guidelines are now included with the Kea
index e4c2071cb375bb56a6379423092a6aa8322a5286..0245b27eaee05264a0d2d4e275a9c9471f84f99d 100644 (file)
@@ -557,6 +557,13 @@ 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.
+Since Kea 1.9.4 there is an additional "origin" parameter which specifies
+the source of the command: either user requested or internally required by
+the HA library. If not specified, the command is considered to be requested
+by user. Valid values for the 'origin' parameter are: 'user' (which is the
+default value) and 'ha-partner'. Using the 'ha-partner' value is not
+recommended because it can interfere with the HA mechanics and can result
+in undesired effects.
 
 ::
 
@@ -567,12 +574,29 @@ if the ``dhcp-enable`` command is not sent before this time elapses.
        }
    }
 
+::
+
+   {
+       "command": "dhcp-disable",
+       "arguments": {
+           "max-period": 20,
+           "origin": "user"
+       }
+   }
+
 .. _command-dhcp-enable:
 
 The dhcp-enable Command
 -----------------------
 
 The ``dhcp-enable`` command globally enables the DHCP service.
+Since Kea 1.9.4 there is an additional "origin" parameter which specifies
+the source of the command: either user requested or internally required by
+the HA library. If not specified, the command is considered to be requested
+by user. Valid values for the 'origin' parameter are: 'user' (which is the
+default value) and 'ha-partner'. Using the 'ha-partner' value is not
+recommended because it can interfere with the HA mechanics and can result
+in undesired effects.
 
 ::
 
@@ -580,6 +604,15 @@ The ``dhcp-enable`` command globally enables the DHCP service.
        "command": "dhcp-enable"
    }
 
+::
+
+   {
+       "command": "dhcp-enable",
+       "arguments": {
+           "origin": "user"
+       }
+   }
+
 .. _command-status-get:
 
 The status-get Command
index a1c85fc66fff2c19e4495576bb6afaa39fa256bd..c802bd759d95c4d64cd5286fd9f9d92e2ef0899c 100644 (file)
@@ -8,7 +8,8 @@
         "{",
         "    \"command\": \"dhcp-disable\",",
         "    \"arguments\": {",
-        "        \"max-period\": 20",
+        "        \"max-period\": 20,",
+        "        \"origin\": \"user\",
         "    }",
         "}"
     ],
index 6aca68c51a0fcc32d67c3fb35d60fbe72206ee7e..0b61f84c4d978b7881e810ed92cc9e247fb54dff 100644 (file)
@@ -6,7 +6,10 @@
     ],
     "cmd-syntax": [
         "{",
-        "    \"command\": \"dhcp-enable\"",
+        "    \"command\": \"dhcp-enable\",",
+        "    \"arguments\": {",
+        "        \"origin\": \"user\",
+        "    }",
         "}"
     ],
     "description": "See <xref linkend=\"command-dhcp-enable\"/>",