mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02: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:
4 files changed
+20
-3
No files matched your search
@@ -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