network: do not try to drop addresses or routes of unmanaged interfaces on carrier...
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 5 Sep 2021 08:14:36 +0000 (17:14 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 10 Sep 2021 10:40:27 +0000 (19:40 +0900)
commitf1c22cf4dad5fa960bd8a63b297c3b9bfa7b363e
treec7fd728361b91b9b5869d380166c3b28f48d4baf
parent6e86342bb82a7e77eb770ee2767c7ec4bca19437
network: do not try to drop addresses or routes of unmanaged interfaces on carrier lost

Currently, link_stop_engines(), link_drop_config(), and link_drop_foreign_config()
do nothing when the interface is unmanaged. So this does not change anything.
But returning earlier should be clear and safer for protecting configs
on unmanaged interfaces.
src/network/networkd-link.c