Skip to content

device: don't reapply IP config on link up for disconnected devices

Beniamino Galvani requested to merge bg/ip-config-apply-rh1754511 into master

Only reapply the IP configuration on link up if the IP state is CONF or DONE. Previously we also reapplied it when the devices was disconnected (IP state NONE) and this could lead to a situation where an incomplete config was applied; then we intersected the desired configuration with the external - incomplete - one, causing the removal of part of desired configuration (for example the default route).

Fixes: d0b16b92 ('device: unconditionally reapply IP configuration on link up')

Merge request reports