src/share/api/dhcp-disable.json
src/share/api/dhcp-enable.json
src/share/api/extended-info4-upgrade.json
+src/share/api/extended-info6-upgrade.json
src/share/api/gss-tsig-get-all.json
src/share/api/gss-tsig-get.json
src/share/api/gss-tsig-key-del.json
.. isccmd:: extended-info6-upgrade
.. _command-extended-info6-upgrade:
-for extended info used for by relay id and by remote id the command is
-(TO BE IMPLEMENTED):
+for extended info used for by relay id and by remote id the command is:
::
}
+This ``extended-info6-upgrade`` command must be called when:
+
+- the database schema was upgraded from a previous version
+
+- Bulk Lease Query was not enabled (tables are maintained only when v6 BLQ is
+ enabled)
+
+- data in tables do not seem to be consistent (tables are not maintained in
+ an atomic way so consistency is not guaranteed. For instance when a database
+ is shared between several servers races can happen between updates)
+
The operation of extended info command is governed by ``extended-info-checks``
parameter under the sanity-checks element. Please see :ref:`sanity-checks4`
or :ref:`sanity-checks6`.
api_files += $(top_srcdir)/src/share/api/dhcp-disable.json
api_files += $(top_srcdir)/src/share/api/dhcp-enable.json
api_files += $(top_srcdir)/src/share/api/extended-info4-upgrade.json
+api_files += $(top_srcdir)/src/share/api/extended-info6-upgrade.json
api_files += $(top_srcdir)/src/share/api/gss-tsig-get-all.json
api_files += $(top_srcdir)/src/share/api/gss-tsig-get.json
api_files += $(top_srcdir)/src/share/api/gss-tsig-key-del.json
" \"arguments\": {",
" },",
" \"result\": 0,",
- " \"text\": \"to be done\"",
+ " \"text\": \"Upgraded 1000 leases\"",
"}"
],
"support": [
--- /dev/null
+{
+ "access": "write",
+ "avail": "2.3.9",
+ "brief": [
+ "This command sanitizes extended info of all IPv6 leases and rebuilds when they are enabled relay and remote ID tables in the SQL lease database."
+ ],
+ "cmd-syntax": [
+ "{",
+ " \"command\": \"extended-info6-upgrade\"",
+ " }",
+ "}"
+ ],
+ "description": "See <xref linkend=\"command-extended-info6-upgrade\"/>",
+ "hook": "lease_query",
+ "name": "extended-info6-upgrade",
+ "resp-comment": [
+ "This command should be used when some old IPv6 leases are present in the lease database using a SQL backend to make them visible to the ."
+ ],
+ "resp-syntax": [
+ "{",
+ " \"arguments\": {",
+ " },",
+ " \"result\": 0,",
+ " \"text\": \"Upgraded 1000 leases\"",
+ "}"
+ ],
+ "support": [
+ "kea-dhcp6"
+ ]
+}