summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorPiotrek Zadroga <piotrek@isc.org>2023-06-22 13:04:37 +0200
committerPiotrek Zadroga <piotrek@isc.org>2023-06-26 17:30:59 +0200
commitd7113d3488fa5deaea04988926b2ee2fee356a97 (patch)
tree709580f4402aa7c3a1f15014a99df5975a192cf2 /doc
parent[#2795] adding new UT for IPv6 prefixes check (diff)
downloadkea-d7113d3488fa5deaea04988926b2ee2fee356a97.tar.xz
kea-d7113d3488fa5deaea04988926b2ee2fee356a97.zip
[#2795] doc update with IPv6 PD use case
Diffstat (limited to 'doc')
-rw-r--r--doc/sphinx/arm/hooks-host-cmds.rst60
1 files changed, 60 insertions, 0 deletions
diff --git a/doc/sphinx/arm/hooks-host-cmds.rst b/doc/sphinx/arm/hooks-host-cmds.rst
index d7f643de0e..7d32decaf8 100644
--- a/doc/sphinx/arm/hooks-host-cmds.rst
+++ b/doc/sphinx/arm/hooks-host-cmds.rst
@@ -713,6 +713,66 @@ Response:
"text": "4 IPv4 host(s) found."
}
+When using the command for retrieving DHCP6 host reservations, one can provide
+either IPv6 address or a IPv6 delegated prefix as a ``ip-address`` parameter.
+Please notice that in current implementation this command does not take prefix
+length as a parameter. That's why when searching for e.g. IPv6 PD ``2001:db8:2:cafe::``,
+the command will return host reservations having for instance PD ``2001:db8:2:cafe::/63``
+as well as PD ``2001:db8:2:cafe::/64``. Please consider below example:
+
+::
+
+ {
+ "command": "reservation-get-by-address",
+ "arguments": {
+ "ip-address": "2001:db8:2:cafa::"
+ },
+ "service": [
+ "dhcp6"
+ ]
+ }
+
+Response:
+
+::
+
+ {
+ "arguments": {
+ "hosts": [
+ {
+ "client-classes": [],
+ "duid": "01:02:03:04:05:06:07:88:98:fa",
+ "hostname": "foo.example.com",
+ "ip-addresses": [
+ "2001:db8:1:cafe::2"
+ ],
+ "option-data": [],
+ "prefixes": [
+ "2001:db8:2:abcd::/64",
+ "2001:db8:2:cafa::/63"
+ ],
+ "subnet-id": 8
+ },
+ {
+ "client-classes": [],
+ "duid": "01:02:03:04:05:06:07:88:98:fb",
+ "hostname": "foo.example.com",
+ "ip-addresses": [
+ "2001:db8:1:cafe::2"
+ ],
+ "option-data": [],
+ "prefixes": [
+ "2001:db8:2:abcd::/64",
+ "2001:db8:2:cafa::/64"
+ ],
+ "subnet-id": 8
+ }
+ ]
+ },
+ "result": 0,
+ "text": "2 IPv6 host(s) found."
+ }
+
The command accepts the ``operation-target`` argument. By default, it gets the
reservation from both JSON configuration and the hosts database.