mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
networkd: link - correctly skip state ENSLAVING when no vlans configured
This fixes a regression introduced in 672682a6b
This commit is contained in:
parent
672682a6b9
commit
63ffa72022
@ -876,7 +876,8 @@ static int link_enter_enslave(Link *link) {
|
||||
|
||||
link->state = LINK_STATE_ENSLAVING;
|
||||
|
||||
if (!link->network->bridge && !link->network->bond && !link->network->vlans)
|
||||
if (!link->network->bridge && !link->network->bond &&
|
||||
hashmap_isempty(link->network->vlans))
|
||||
return link_enslaved(link);
|
||||
|
||||
if (link->network->bridge) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user