mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-01 17:40:14 +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 commit 9a69bc8d84)
This commit is contained in:
parent
3bd210a8f1
commit
1b9dfd3001
1 changed files with 2 additions and 0 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue