l3cfg: default to 'main' route table sync mode

If no l3cd specifies a route table sync mode, use 'main' as default.

Fixes-test: @ipv6_route_set_route_with_tables_reapply
This commit is contained in:
Beniamino Galvani
2021-10-18 18:07:30 +02:00
parent 23d61367b3
commit e9c17fcc9b

View File

@@ -3997,7 +3997,7 @@ _l3_commit_one(NML3Cfg * self,
}
if (route_table_sync == NM_IP_ROUTE_TABLE_SYNC_MODE_NONE)
route_table_sync = NM_IP_ROUTE_TABLE_SYNC_MODE_ALL;
route_table_sync = NM_IP_ROUTE_TABLE_SYNC_MODE_MAIN;
if (commit_type == NM_L3_CFG_COMMIT_TYPE_REAPPLY) {
addresses_prune = nm_platform_ip_address_get_prune_list(self->priv.platform,