From a35f41e4dc0884424e816e750f8bce5f24277488 Mon Sep 17 00:00:00 2001 From: grossmj Date: Thu, 9 Jun 2016 18:42:14 -0600 Subject: [PATCH] Prevent users to connect the cloud to Wireless adapters on OSX. Fixes #549. --- gns3server/compute/builtin/nodes/cloud.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gns3server/compute/builtin/nodes/cloud.py b/gns3server/compute/builtin/nodes/cloud.py index 23c554ed..afec658f 100644 --- a/gns3server/compute/builtin/nodes/cloud.py +++ b/gns3server/compute/builtin/nodes/cloud.py @@ -164,6 +164,8 @@ class Cloud(BaseNode): yield from self._ubridge_send('bridge add_nio_linux_raw {name} "{interface}"'.format(name=bridge_name, interface=port_info["interface"])) else: + if sys.platform.startswith("darwin") and port_info["interface"].startswith("en"): + raise NodeError("Connecting to a Wireless adapter is not supported.") yield from self._ubridge_send('bridge add_nio_ethernet {name} "{interface}"'.format(name=bridge_name, interface=port_info["interface"]))