]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3340] ARM for lease6-del updated
authorTomek Mrugalski <tomek@isc.org>
Wed, 22 May 2024 10:48:27 +0000 (12:48 +0200)
committerTomek Mrugalski <tomek@isc.org>
Thu, 23 May 2024 13:44:25 +0000 (15:44 +0200)
doc/sphinx/arm/hooks-lease-cmds.rst

index 8c7b444ba0e9cd667296c21a8d201f009b14c622..4a0bafb016ba4c205ea421ea186b42e8ae87847d 100644 (file)
@@ -472,7 +472,7 @@ for an IPv6 lease is:
 ::
 
    {
-       "command": "lease4-get",
+       "command": "lease6-get",
        "arguments": {
            "identifier-type": "duid",
            "identifier": "08:08:08:08:08:08",
@@ -816,7 +816,7 @@ a pair of values: the type and the actual identifier. The currently
 supported identifiers are ``"hw-address"`` (IPv4 only), ``"client-id"`` (IPv4
 only), and ``"duid"`` (IPv6 only).
 
-An example command for deleting a lease by address is:
+An example command for deleting an IPv4 lease by address is:
 
 ::
 
@@ -840,6 +840,20 @@ An example IPv4 lease deletion by ``"hw-address"`` is:
      }
    }
 
+The IPv6 address leases are deleted the same way, but using :isccmd:`lease6-del`. The
+prefix IPv6 leases are also deleted using :isccmd:`lease6-del`, but with some extra
+steps. The prefix should be referenced by its address and prefix length should be ignored.
+For example, to delete 2001:db8:1::/48, the following command can be used:
+
+::
+    {
+        "command": "lease6-del",
+        "arguments": {
+            "ip-address": "2001:db8:1::",
+            "type": "IA_PD",
+            "subnet-id": 1
+        }
+    }
 
 Another parameter called ``update-ddns``, when ``true``, instructs the server to
 queue a request to :iscman:`kea-dhcp-ddns` to remove DNS entries after the lease is