From 12f09829e7f29a0de84f3ba3f9d9e9d739cb81ed Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Thu, 5 Jan 2017 14:51:43 +0100 Subject: [PATCH] Improve error message about the netmask Ref #1751 --- gns3server/compute/builtin/nodes/cloud.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gns3server/compute/builtin/nodes/cloud.py b/gns3server/compute/builtin/nodes/cloud.py index 112f8e86..dcf0c5cb 100644 --- a/gns3server/compute/builtin/nodes/cloud.py +++ b/gns3server/compute/builtin/nodes/cloud.py @@ -253,13 +253,13 @@ class Cloud(BaseNode): interface=port_info["interface"])) return if not gns3server.utils.interfaces.has_netmask(port_info["interface"]): - raise NodeError("Interface {} don't have a netmask".format(port_info["interface"])) + raise NodeError("Interface {} has no netmask, interface down?".format(port_info["interface"])) yield from self._ubridge_send('bridge add_nio_ethernet {name} "{interface}"'.format(name=bridge_name, interface=port_info["interface"])) @asyncio.coroutine def _add_windows_ethernet(self, port_info, bridge_name): if not gns3server.utils.interfaces.has_netmask(port_info["interface"]): - raise NodeError("Interface {} don't have a netmask".format(port_info["interface"])) + raise NodeError("Interface {} has no netmask, interface down?".format(port_info["interface"])) yield from self._ubridge_send('bridge add_nio_ethernet {name} "{interface}"'.format(name=bridge_name, interface=port_info["interface"])) @asyncio.coroutine