1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-25 16:28:11 +00:00

Prevent users to connect the cloud to Wireless adapters on OSX. Fixes #549.

This commit is contained in:
grossmj 2016-06-09 18:42:14 -06:00
parent dee9d423a3
commit a35f41e4dc

View File

@ -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"]))