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 5be69ba794)
This commit is contained in:
Beniamino Galvani 2019-06-11 15:16:57 +02:00
parent a7322eaa5d
commit 14cfffa64c

View file

@ -6337,6 +6337,9 @@ activate_stage1_device_prepare (NMDevice *self)
NMDevicePrivate *priv = NM_DEVICE_GET_PRIVATE (self);
NMActStageReturn ret = NM_ACT_STAGE_RETURN_SUCCESS;
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);