mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-22 01:49:48 +00:00
parent
b585ea42d8
commit
95d10187cc
@ -723,8 +723,8 @@ leases were found.
|
||||
|
||||
.. _command-lease6-get-by-hostname:
|
||||
|
||||
The lease4-get-by-*, lease6-get-by-* Commands
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
The lease4-get-by-\*, lease6-get-by-\* Commands
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
``leaseX-get-by-Y`` can be used to query the lease database and
|
||||
retrieve all existing leases with a specified hardware address (IPv4
|
||||
@ -802,7 +802,7 @@ An example IPv4 lease deletion by "hw-address" is:
|
||||
}
|
||||
|
||||
|
||||
As of Kea 1.7.10, a new parameter, "update-ddns", is supported (IPv4 and IPv6).
|
||||
As of Kea 1.7.10, a new parameter, ``update-ddns``, is supported (IPv4 and IPv6).
|
||||
When true it instructs the server to queue a request to kea-dhcp-ddns to
|
||||
remove DNS entries after the lease is successfully deleted if:
|
||||
|
||||
|
@ -92,6 +92,9 @@ public:
|
||||
/// where multiple IPv6 addresses and/or prefixes can be allocated for
|
||||
/// a single DHCPv6 packet.
|
||||
///
|
||||
/// @note Unlike leaseX-del, this command does not support "update-ddns" and
|
||||
/// this will not generate CHG_REMOVEs for deleted leases.
|
||||
///
|
||||
/// Example structure of the command:
|
||||
///
|
||||
/// {
|
||||
|
@ -5520,7 +5520,6 @@ TEST_F(LeaseCmdsTest, lease6DnsRemoveD2Enabled) {
|
||||
"{"
|
||||
" \"command\": \"lease6-del\","
|
||||
" \"arguments\": {"
|
||||
" \"subnet-id\": 66,\n"
|
||||
" \"ip-address\": \"2001:db8:1::8\"\n";
|
||||
|
||||
if (!scenario.update_ddns_.empty()) {
|
||||
@ -5561,7 +5560,6 @@ TEST_F(LeaseCmdsTest, lease6DnsRemoveD2Disabled) {
|
||||
"{\n"
|
||||
" \"command\": \"lease6-del\",\n"
|
||||
" \"arguments\": {\n"
|
||||
" \"subnet-id\": 66,\n"
|
||||
" \"ip-address\": \"2001:db8:1::8\",\n"
|
||||
" \"update-ddns\": true\n"
|
||||
" }\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user