mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 11:18:11 +00:00
More debug for the interfaces up crash debug
This commit is contained in:
parent
525940ee15
commit
36d5049c61
@ -15,6 +15,7 @@ install:
|
|||||||
- pip install -rdev-requirements.txt
|
- pip install -rdev-requirements.txt
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
- ifconfig
|
||||||
- py.test -v -s tests --cov gns3server --cov-report term-missing
|
- py.test -v -s tests --cov gns3server --cov-report term-missing
|
||||||
|
|
||||||
#branches:
|
#branches:
|
||||||
|
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user