Skip to content

ip: support dhcp-send-release in NMSettingIpConfig

Fernando Fernández Mancera requested to merge ff/dhcp_release into main

Summary

Introduce a new option to NMSettingIpConfig. The new option is ternary type being the default value set to disabled. When enabled, NetworkManager will instruct the DHCP client to send RELEASE message when the removing IP addresses.

Purpose

After bringing down a connection, NetworkManager is not configuring the DHCP client to send a RELEASE message. That causes the DHCP server to do not release the leased addresses. In order to fix that, this patch introduces a new option to configure it.

Resolves: https://issues.redhat.com/browse/RHEL-17310

Checklist

Please read https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/main/CONTRIBUTING.md before opening the merge request. In particular, check that:

  • the subject for all commits is concise and explicative
  • the message for all commits explains the reason for the change
  • the source is properly formatted
  • any relevant documentation is up to date
Edited by Fernando Fernández Mancera

Merge request reports