mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-20 00:03:56 +00:00
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:
@ -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():
|
||||
|
Reference in New Issue
Block a user