+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
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.
::
}
}
+::
+
+ {
+ "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.
::
"command": "dhcp-enable"
}
+::
+
+ {
+ "command": "dhcp-enable",
+ "arguments": {
+ "origin": "user"
+ }
+ }
+
.. _command-status-get:
The status-get Command
"{",
" \"command\": \"dhcp-disable\",",
" \"arguments\": {",
- " \"max-period\": 20",
+ " \"max-period\": 20,",
+ " \"origin\": \"user\",
" }",
"}"
],
],
"cmd-syntax": [
"{",
- " \"command\": \"dhcp-enable\"",
+ " \"command\": \"dhcp-enable\",",
+ " \"arguments\": {",
+ " \"origin\": \"user\",
+ " }",
"}"
],
"description": "See <xref linkend=\"command-dhcp-enable\"/>",