Follow-up for
dd6d53a8dc58c5e6e310b09ba7f7a22600a87ba9.
Unnecessary static configs will be anyway dropped later in
link_configure() -> link_drop_unmanaged_config(). Hence, even if we are
reconfiguring an interface cleanly, it is not necessary to drop static
configs here.
/* Dropping old .network file */
if (FLAGS_SET(flags, LINK_RECONFIGURE_CLEANLY)) {
- /* Remove all static configurations. Note, dynamic configurations are dropped by
- * link_stop_engines(), and foreign configurations will be removed later by
- * link_configure() -> link_drop_unmanaged_config(). */
- r = link_drop_static_config(link);
- if (r < 0)
- return r;
-
/* Stop DHCP client and friends, and drop dynamic configurations like DHCP address. */
r = link_stop_engines(link, /* may_keep_dhcp = */ false);
if (r < 0)