merge: branch 'ih/dhcp-client-unknown'

dhcp: improve log message for unknown DHCP plugin

Closes #1917

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2388
This commit is contained in:
Íñigo Huguet 2026-04-08 07:50:51 +00:00
commit 58f4c81673

View file

@ -289,8 +289,10 @@ nm_dhcp_manager_init(NMDhcpManager *self)
NM_CONFIG_GET_VALUE_STRIP | NM_CONFIG_GET_VALUE_NO_EMPTY);
client = client_free;
if (client) {
client_factory = _client_factory_available(_client_factory_find_by_name(client));
client_factory = _client_factory_find_by_name(client);
if (!client_factory)
_LOGW(AF_UNSPEC, "init: unknown DHCP client '%s', ignoring", client);
else if (!(client_factory = _client_factory_available(client_factory)))
_LOGW(AF_UNSPEC, "init: DHCP client '%s' not available", client);
}
if (!client_factory) {