diff options
author | Thomas Markwalder <tmark@isc.org> | 2018-04-26 21:13:53 +0200 |
---|---|---|
committer | Thomas Markwalder <tmark@isc.org> | 2018-04-26 21:13:53 +0200 |
commit | eb30390f47ba3618bcbc3699ef5b99e6ed944ad0 (patch) | |
tree | 6154f34b25bd5e7e06f53a5db18425f69d61470f /src/lib | |
parent | [5535] Updated admin guide (diff) | |
download | kea-eb30390f47ba3618bcbc3699ef5b99e6ed944ad0.tar.xz kea-eb30390f47ba3618bcbc3699ef5b99e6ed944ad0.zip |
[5535] RelayInfo parser emits ip-address deprecation message
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/dhcpsrv/dhcpsrv_messages.mes | 6 | ||||
-rw-r--r-- | src/lib/dhcpsrv/parsers/dhcp_parsers.cc | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/dhcpsrv/dhcpsrv_messages.mes b/src/lib/dhcpsrv/dhcpsrv_messages.mes index 6f51007ef9..104bf38031 100644 --- a/src/lib/dhcpsrv/dhcpsrv_messages.mes +++ b/src/lib/dhcpsrv/dhcpsrv_messages.mes @@ -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 diff --git a/src/lib/dhcpsrv/parsers/dhcp_parsers.cc b/src/lib/dhcpsrv/parsers/dhcp_parsers.cc index 168137f115..aec0ed2645 100644 --- a/src/lib/dhcpsrv/parsers/dhcp_parsers.cc +++ b/src/lib/dhcpsrv/parsers/dhcp_parsers.cc @@ -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; } |