Skip to content

Commit 9e45480

Browse files
[#3340] ARM for lease6-del updated
1 parent d0a23dd commit 9e45480

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

doc/sphinx/arm/hooks-lease-cmds.rst

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ for an IPv6 lease is:
472472
::
473473

474474
{
475-
"command": "lease4-get",
475+
"command": "lease6-get",
476476
"arguments": {
477477
"identifier-type": "duid",
478478
"identifier": "08:08:08:08:08:08",
@@ -816,7 +816,7 @@ a pair of values: the type and the actual identifier. The currently
816816
supported identifiers are ``"hw-address"`` (IPv4 only), ``"client-id"`` (IPv4
817817
only), and ``"duid"`` (IPv6 only).
818818

819-
An example command for deleting a lease by address is:
819+
An example command for deleting an IPv4 lease by address is:
820820

821821
::
822822

@@ -840,6 +840,20 @@ An example IPv4 lease deletion by ``"hw-address"`` is:
840840
}
841841
}
842842

843+
The IPv6 address leases are deleted the same way, but using :isccmd:`lease6-del`. The
844+
prefix IPv6 leases are also deleted using :isccmd:`lease6-del`, but with some extra
845+
steps. The prefix should be referenced by its address and prefix length should be ignored.
846+
For example, to delete 2001:db8:1::/48, the following command can be used:
847+
848+
::
849+
{
850+
"command": "lease6-del",
851+
"arguments": {
852+
"ip-address": "2001:db8:1::",
853+
"type": "IA_PD",
854+
"subnet-id": 1
855+
}
856+
}
843857

844858
Another parameter called ``update-ddns``, when ``true``, instructs the server to
845859
queue a request to :iscman:`kea-dhcp-ddns` to remove DNS entries after the lease is

0 commit comments

Comments
 (0)