Commit 333956d4 authored by Beniamino Galvani's avatar Beniamino Galvani

device: reset cached route tables when starting new activation

The values cached in the device may be stale when we start a new
activation because in a disconnected state we might have called
ip_config_merge_and_apply() which cached the main table value.

(cherry picked from commit 5be69ba7)
(cherry picked from commit 14cfffa6)
parent ad6eaa08
Pipeline #41816 passed with stage
in 30 minutes and 46 seconds
......@@ -6319,6 +6319,9 @@ activate_stage1_device_prepare (NMDevice *self)
NMDevicePrivate *priv = NM_DEVICE_GET_PRIVATE (self);
priv->v4_route_table_initialized = FALSE;
priv->v6_route_table_initialized = FALSE;
_set_ip_state (self, AF_INET, NM_DEVICE_IP_STATE_NONE);
_set_ip_state (self, AF_INET6, NM_DEVICE_IP_STATE_NONE);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment