diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2020-06-26 11:37:01 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2020-06-26 16:26:43 +0200 |
commit | 98f3f275f88f7e77de7e0d21cd234f1c18e77779 (patch) | |
tree | a76f5df807373d398d413d499f97d48b28c0adbf | |
parent | 62747bb07653ab362c33abeae04213de7bde177d (diff) | |
download | NetworkManager-bg/rh1848888.tar.gz |
device: clean up exported IP6 config when flushing addressesbg/rh1848888
After flushing addresses and routes, it's also necessary to update the
exported IP6 configuration.
https://bugzilla.redhat.com/show_bug.cgi?id=1848888
Fixes: e302f5ff77a9 ('device: flush IP configuration of slaves during activation')
-rw-r--r-- | src/devices/nm-device.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index 63fa5a5cc9..59b692a1df 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -10934,8 +10934,11 @@ act_stage3_ip_config_start (NMDevice *self, platform = nm_device_get_platform (self); if (ifindex > 0) { + gs_unref_object NMIP6Config *config = nm_device_ip6_config_new (self); + nm_platform_ip_route_flush (platform, AF_INET6, ifindex); nm_platform_ip_address_flush (platform, AF_INET6, ifindex); + nm_device_set_ip_config (self, AF_INET6, (NMIPConfig *) config, FALSE, NULL); } } else { gboolean ipv6ll_handle_old = priv->ipv6ll_handle; |