network/route: fix unexpected removal of routes for wireguard
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 16 May 2024 21:40:40 +0000 (06:40 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 16 May 2024 21:40:43 +0000 (06:40 +0900)
commitd7769b4d8ea5ed601b79d8708d360f5c83bd39e9
treed478b38ad3388bb2874897e9ccf4ae70f73931ee
parent1cd53a1f91653a4b4565ba2073263ad1bbf88a48
network/route: fix unexpected removal of routes for wireguard

Fixes a bug introduced by 8d01e44c1f0e00b414d36bd1b46ecff548242208.

If a .netdev file for a wireguard interface requests to configure
routes for the interface, the routes were removed during configuring
another interface.

Fixes #32859.
src/network/networkd-route.c