Merge "Add logging around interface carrier detection"
This commit is contained in:
commit
66ec92bc4e
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue