Merge "Add logging around interface carrier detection"

This commit is contained in:
Jenkins 2016-09-08 14:19:50 +00:00 committed by Gerrit Code Review
commit 66ec92bc4e
1 changed files with 2 additions and 0 deletions

View File

@ -662,6 +662,7 @@ def is_interface_live(interface, sys_root):
def interface_live(iface, sys_root, args):
log.debug("Checking if interface %s has an active link carrier." % iface)
if is_interface_live(iface, sys_root):
return True
@ -675,6 +676,7 @@ def interface_live(iface, sys_root, args):
if is_interface_live(iface, sys_root):
return True
time.sleep(.1)
log.debug("Interface %s appears not to have an active link." % iface)
return False