src/share/api/ha-maintenance-cancel.json
src/share/api/ha-maintenance-notify.json
src/share/api/ha-maintenance-start.json
+src/share/api/ha-reset.json
src/share/api/ha-scopes.json
src/share/api/ha-sync.json
src/share/api/lease4-add.json
a pair of HA enabled DHCP servers. Direct use of this command is not
supported and may produce unintended consequences.
+.. _command-ha-reset:
+
+The ha-reset Command
+--------------------
+
+This command causes the server to reset its High Availibility state machine
+by transitioning it to the waiting state. A partner in the
+``communication-recovery`` state may send this command to cause the server
+to synchronize its lease database. The database synchronization is required
+when the partner failed to send all lease database updates after
+re-establishing connection after a temporary connection failure.
+
+A server administrator may also send the command to reset a misbehaving
+state machine.
+
+This command includes no arguments, e.g.:
+
+::
+
+ {
+ "command": "ha-reset",
+ "service": [ "dhcp4" ]
+ }
+
+The response:
+
+::
+
+ {
+ "result": 0,
+ "text": "HA state machine reset."
+ }
api_files += $(top_srcdir)/src/share/api/ha-maintenance-cancel.json
api_files += $(top_srcdir)/src/share/api/ha-maintenance-notify.json
api_files += $(top_srcdir)/src/share/api/ha-maintenance-start.json
+api_files += $(top_srcdir)/src/share/api/ha-reset.json
api_files += $(top_srcdir)/src/share/api/ha-scopes.json
api_files += $(top_srcdir)/src/share/api/ha-sync.json
api_files += $(top_srcdir)/src/share/api/lease4-add.json
--- /dev/null
+{
+ "access": "write",
+ "avail": "1.9.4",
+ "brief": [
+ "This command resets the HA state machine of the server by transitioning it to the waiting state."
+ ],
+ "description": "See <xref linkend=\"command-ha-reset\"/>",
+ "hook": "high_availability",
+ "name": "ha-reset",
+ "support": [
+ "kea-dhcp4",
+ "kea-dhcp6"
+ ]
+}