networkd: check explicit state rather than link->network
authorTom Gundersen <teg@jklm.no>
Fri, 13 Nov 2015 14:05:58 +0000 (15:05 +0100)
committerTom Gundersen <teg@jklm.no>
Fri, 13 Nov 2015 14:05:58 +0000 (15:05 +0100)
commita56a2048f9592acc4934b9ce15d71bc7e1df1a17
treed1eeb3feb4373761c85ba79ede20cce10db8c9f0
parent3098562c9236fe0bd3e7d950b6c53907304d277f
networkd: check explicit state rather than link->network

When deserializing we can now have an attached network without the various clients yet
having been configured. Hence, don't misused the link->network as a check to determine
if a link is ready to be used, but check the state explicitly.
src/network/networkd-link.c