mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 03:40:07 +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.
This commit is contained in:
parent
518f6124c6
commit
9a69bc8d84
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