network: Fix has_link doctest

Change-Id: I01ab980acfd5a936c63346bd7e669e1e4f517edd
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>