summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-02-10 23:01:47 +0100
committerTom Gundersen <teg@jklm.no>2014-02-10 23:01:47 +0100
commit63ffa72022b176a44d4cd134c901e9e1847e05d5 (patch)
treecff3ad7a416fa3340da5be7a9f42d0cd071bed81 /src/network
parent672682a6b9d6fb6a3722c3fea1a93b4831747b54 (diff)
networkd: link - correctly skip state ENSLAVING when no vlans configured
This fixes a regression introduced in 672682a6b
Diffstat (limited to 'src/network')
-rw-r--r--src/network/networkd-link.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
index 5e763069f3..39c61d8d08 100644
--- a/src/network/networkd-link.c
+++ b/src/network/networkd-link.c
@@ -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) {