]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5535] RelayInfo parser emits ip-address deprecation message
authorThomas Markwalder <tmark@isc.org>
Thu, 26 Apr 2018 19:13:53 +0000 (15:13 -0400)
committerThomas Markwalder <tmark@isc.org>
Thu, 26 Apr 2018 19:13:53 +0000 (15:13 -0400)
src/lib/dhcpsrv/dhcpsrv_messages.mes
src/lib/dhcpsrv/parsers/dhcp_parsers.cc

index 6f51007ef93af6d0497fbbe7de8a4051d18b0ca1..104bf38031bbb20d40d29591e425ff18a873cc54 100644 (file)
@@ -84,6 +84,12 @@ This warning message is issued on an attempt to configure multiple options with
 same option code for the particular subnet. Adding multiple options is uncommon
 for DHCPv6, but it is not prohibited.
 
+% DHCPSRV_CFGMGR_RELAY_IP_ADDRESS_DEPRECATED "relay" uses "ip-address", which has been deprecated, please use "ip-addresses": %1
+This is debug message issued when the "relay" element being parse
+contains "ip-address" rather than its replacement, "ip-addresses".
+The server will still honor the value but users are encouraged to
+move to the new list parameter.
+
 % DHCPSRV_CFGMGR_SOCKET_RAW_UNSUPPORTED use of raw sockets is unsupported on this OS, UDP sockets will be used
 This warning message is logged when the user specified that the
 DHCPv4 server should use the raw sockets to receive the DHCP
index 168137f1157a327afaf5edf106dfa4a841896ff9..aec0ed264526ced11365178724d7a2409c9a6cc5 100644 (file)
@@ -256,9 +256,11 @@ RelayInfoParser::parse(const isc::dhcp::Network::RelayInfoPtr& relay_info,
     *relay_info = isc::dhcp::Network::RelayInfo();
 
     if (address) {
-        // log a deprec debug message ?
         addAddress("ip-address", getString(relay_elem, "ip-address"),
                    relay_elem, relay_info);
+        LOG_DEBUG(dhcpsrv_logger, DHCPSRV_DBG_TRACE_DETAIL,
+                  DHCPSRV_CFGMGR_RELAY_IP_ADDRESS_DEPRECATED)
+                  .arg(getPosition("ip-address", relay_elem));
         return;
     }