From: Thomas Markwalder Date: Wed, 18 Mar 2015 19:16:09 +0000 (-0400) Subject: [3689] Addressed primary review comments X-Git-Tag: kea-0.9.1~8^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e09b74567d827942a1e81777fce39b9dd7593bb;p=thirdparty%2Fkea.git [3689] Addressed primary review comments doc/guide/dhcp6-srv.xml Updated "Reserving a hostname" section (also removed trailing spaces) src/bin/dhcp6/dhcp6_srv.cc corrected test and commentary typo in assignIA_NA removed second parameter to renewLeases6() calls src/bin/dhcp6/dhcp6_srv.h updated commentary for createContext() src/lib/dhcpsrv/alloc_engine.cc src/lib/dhcpsrv/alloc_engine.h AllocEngine::createLease6() removed find_host parameter and logic which calls findReservation and/or alters context hostname src/lib/dhcpsrv/tests/alloc_engine_utils.cc AllocEngine6Test::renewTest() - added call to AllocEngine6Test::findReservation() src/lib/dhcpsrv/tests/alloc_engine_utils.h fixed typo --- diff --git a/doc/guide/dhcp6-srv.xml b/doc/guide/dhcp6-srv.xml index b0b7fd7b6d..7cdd49eb7d 100644 --- a/doc/guide/dhcp6-srv.xml +++ b/doc/guide/dhcp6-srv.xml @@ -1178,7 +1178,7 @@ should include options from the isc option space: "data" is not set the parser will assume that this parameter is not specified and an error will be reported. - + Note that it is possible to create an option which carries some data in addition to the sub-options defined in the encapsulated option space. For example, if the "container" option from the previous example was @@ -1728,8 +1728,8 @@ should include options from the isc option space: The third row in the table above describes the case in which the client requests that no DNS updates be done. The parameter, "override-no-update", can be used to instruct the server to disregard the client's wishes. When - this parameter is true, kea-dhcp6 will generate DDNS update requests to - kea-dhcp-ddns even if the client requests no updates be done. The N-S-O + this parameter is true, kea-dhcp6 will generate DDNS update requests to + kea-dhcp-ddns even if the client requests no updates be done. The N-S-O flags in the server's response to the client will be 0-1-1. @@ -2031,11 +2031,64 @@ should include options from the isc option space:
Reserving a hostname - - Reserving a hostname is currently not supported. It is possible - to specify that information in the configuration file, but that data - is not used by the server engine yet. -
+ When the reservation for the client includes the hostname + , the server will assign this hostname to the client and send + it back in the Client FQDN, if the client sent the FQDN option to the + the server. The reserved hostname always takes precedence over the hostname + supplied by the client (via the FQDN option) or the autogenerated + (from the IPv6 address) hostname. + + The server qualifies the reserved hostname with the value + of the qualifying-suffix parameter. For example, the + following subnet configuration: + +"subnet6": [ + { + "subnet": "2001:db8:1::/48", + "pools": [ { "pool": "2001:db8:1::/80" } ], + "reservations": [ + { + "duid": "01:02:03:04:05:0A:0B:0C:0D:0E", + "ip-addresses": [ "2001:db8:1::100" ] + "hostname": "alice-laptop" + } + ] + } +], +"dhcp-ddns": { + "enable-updates": true, + "qualifying-suffix": "example.isc.org." +} + + will result in assigning the "alice-laptop.example.isc.org." hostname to the + client using the DUID "01:02:03:04:05:0A:0B:0C:0D:0E". If the qualifying-suffix + is not specified, the default (empty) value will be used, and + in this case the value specified as a hostname will + be treated as fully qualified name. Thus, by leaving the + qualifying-suffix empty it is possible to qualify + hostnames for the different clients with different domain names: + +"subnet6": [ + { + "subnet": "2001:db8:1::/48", + "pools": [ { "pool": "2001:db8:1::/80" } ], + "reservations": [ + { + "duid": "01:02:03:04:05:0A:0B:0C:0D:0E", + "ip-addresses": [ "2001:db8:1::100" ] + "hostname": "mark-desktop.example.org." + } + ] + } +], +"dhcp-ddns": { + "enable-updates": true, +} + + will result in assigning the "mark-desktip.example.org." hostname to the + client using the DUID "01:02:03:04:05:0A:0B:0C:0D:0E". + +
Reserving specific options @@ -2110,7 +2163,7 @@ should include options from the isc option space: ] } - +