networkd: link - serialize link when addresses change
Thanks to Kay for tracking this down.
This commit is contained in:
@@ -1809,12 +1809,17 @@ int link_rtnl_process_address(sd_rtnl *rtnl, sd_rtnl_message *message, void *use
|
||||
LIST_PREPEND(addresses, link->addresses, address);
|
||||
address = NULL;
|
||||
|
||||
link_save(link);
|
||||
|
||||
break;
|
||||
case RTM_DELADDR:
|
||||
if (address_dropped)
|
||||
if (address_dropped) {
|
||||
log_debug_link(link, "removed address: %s/%u", buf,
|
||||
address->prefixlen);
|
||||
|
||||
link_save(link);
|
||||
}
|
||||
|
||||
break;
|
||||
default:
|
||||
assert_not_reached("Received invalid RTNL message type");
|
||||
|
||||
Reference in New Issue
Block a user