Return flag for special interface that you can use in the cloud

Fix https://github.com/GNS3/gns3-gui/issues/1509
This commit is contained in:
Julien Duponchelle committed 2016-09-14 17:15:06 +02:00
1 parent 803064d5cf
commit 84a2f8b4a3
4 files changed
+20 -3

No files matched your search

+5 -1
View File
@@ -22,7 +22,11 @@ from gns3server.utils.interfaces import interfaces, is_interface_up
def test_interfaces():
# This test should pass on all platforms without crash
assert isinstance(interfaces(), list)
interface_list = interfaces()
assert isinstance(interface_list, list)
for interface in interface_list:
if interface["name"].startswith("vmnet"):
assert interface["special"]
def test_is_interface_up():