mirror of
https://github.com/systemd/systemd.git
synced 2024-10-30 06:25:37 +03:00
networkd: do not drop config for unmanaged interfaces
Flushing foreign configuration for unmanaged interfaces is outright
evil, especially when it's a regular occurence with Wi-Fi.
Fixes: 3104883ddc
"networkd: remove route if carrier is lost"
Ref: #3831
This commit is contained in:
parent
3dea75dead
commit
c436d55397
@ -2957,9 +2957,11 @@ static int link_carrier_lost(Link *link) {
|
|||||||
if (r < 0)
|
if (r < 0)
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
|
if (link->state != LINK_STATE_UNMANAGED) {
|
||||||
r = link_drop_foreign_config(link);
|
r = link_drop_foreign_config(link);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return r;
|
return r;
|
||||||
|
}
|
||||||
|
|
||||||
r = link_handle_bound_by_list(link);
|
r = link_handle_bound_by_list(link);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user