mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-28 05:10:32 +01:00
l3cfg: refresh platform cache before creating prune list during L3Cfg commit
It seems, we should make decisions based on the latest state. Make sure to process all pending netlink events. (cherry picked from commit9a69bc8d84) (cherry picked from commit1b9dfd3001)
This commit is contained in:
parent
75c87d18ec
commit
d785233fcc
1 changed files with 2 additions and 0 deletions
|
|
@ -4223,6 +4223,8 @@ _l3_commit_one(NML3Cfg *self,
|
|||
if (commit_type == NM_L3_CFG_COMMIT_TYPE_REAPPLY) {
|
||||
gs_unref_array GArray *ipv6_temp_addrs_keep = NULL;
|
||||
|
||||
nm_platform_process_events(self->priv.platform);
|
||||
|
||||
if (!IS_IPv4 && addresses) {
|
||||
for (i = 0; i < addresses->len; i++) {
|
||||
const NMPlatformIP6Address *addr = NMP_OBJECT_CAST_IP6_ADDRESS(addresses->pdata[i]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue