From 4e1b826eecdf611fc318b2b95a27d289799ae5f4 Mon Sep 17 00:00:00 2001 From: Indrajit Raychaudhuri Date: Sun, 17 Dec 2023 15:21:30 -0600 Subject: dhcp: T3316: Support hostname, DUID and MAC address in reservation Reinstate support for hostname in DHCP reservation. Having `hostname` in allows for server-side assignment of hostname. This is useful for static lookup of hostname. Ensure that hostname is a valid FQDN (doesn't have underscore, etc.) Additionally, support using either of DUID or MAC address for reservation. While MAC address is typically used for IPv4, and DUID is typically used for IPv6, either of them can be used in IPv4 and IPv6 reservations in Kea. --- interface-definitions/dhcp-server.xml.in | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) (limited to 'interface-definitions/dhcp-server.xml.in') diff --git a/interface-definitions/dhcp-server.xml.in b/interface-definitions/dhcp-server.xml.in index 081f7ed42..8aaeeb29d 100644 --- a/interface-definitions/dhcp-server.xml.in +++ b/interface-definitions/dhcp-server.xml.in @@ -284,11 +284,11 @@ - Name of static mapping + Hostname for static mapping reservation - [-_a-zA-Z0-9.]+ + - Invalid static mapping name, may only be alphanumeric, dot and hyphen + Invalid static mapping hostname #include @@ -304,18 +304,8 @@ - - - Media Access Control (MAC) address - - macaddr - Hardware (MAC) address - - - - - - + #include + #include -- cgit v1.2.3