[RFE] allow ipv4.link-local to deconfigure itself once dhcp IP has been obtained
Description of the feature
Having an ipv4.link-local IP address when a DHCP lease cannot be obtained can be useful for point to point situations, but we don't necessarily want to leave that IP behind as it can be confusing to users.
Having a mode like windows does that sets up a link-local IP but immediately removes it once dhcp has been obtained could make sense.
References and other resources
Fork-off #1555 for the ipv4.link-local issue
Suggestion
- extend the
NMSettingIP4LinkLocal
enum to have an extra AUTO_CLEANUP value - add link local IP when setting up the connection as per ENABLED (and not AUTO... so I guess ENABLED_CLEANUP would make more sense for enum name)
- when DHCP lease has been obtained check if it is set and remove ipv4 link local IP
- (and probably when lease expire add it back too)