diff options
author | Thomas Haller <thaller@redhat.com> | 2022-05-05 17:24:48 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2022-05-09 19:21:59 +0200 |
commit | 9a69bc8d84fc9f9d4c28123dbbb37570008697df (patch) | |
tree | ee832c4adc0d24fc38a63652b35a336fb3b2645a | |
parent | 518f6124c6476e5f91b30b7d5583f494e84fd936 (diff) |
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.
-rw-r--r-- | src/core/nm-l3cfg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/nm-l3cfg.c b/src/core/nm-l3cfg.c index 6fdf5b80aa..38b9d8224e 100644 --- a/src/core/nm-l3cfg.c +++ b/src/core/nm-l3cfg.c @@ -4221,6 +4221,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]); |