|
|
@ -100,11 +100,13 @@ def is_interface_up(interface):
|
|
|
|
return True
|
|
|
|
return True
|
|
|
|
return False
|
|
|
|
return False
|
|
|
|
except OSError as e:
|
|
|
|
except OSError as e:
|
|
|
|
raise aiohttp.web.HTTPInternalServerError(text="Exception when checking if {} is up: {}".format(interface, e))
|
|
|
|
raise e
|
|
|
|
|
|
|
|
#raise aiohttp.web.HTTPInternalServerError(text="Exception when checking if {} is up: {}".format(interface, e))
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
#TODO: Windows & OSX support
|
|
|
|
# TODO: Windows & OSX support
|
|
|
|
return True
|
|
|
|
return True
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def interfaces():
|
|
|
|
def interfaces():
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
Gets the network interfaces on this server.
|
|
|
|
Gets the network interfaces on this server.
|
|
|
|