From 3bcf13328b28cdf356b2603a02ae966c166f3d15 Mon Sep 17 00:00:00 2001 From: grossmj Date: Mon, 28 Apr 2014 10:36:49 -0600 Subject: [PATCH] Fixes issue when netifaces module is not installed. --- gns3server/modules/dynamips/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gns3server/modules/dynamips/__init__.py b/gns3server/modules/dynamips/__init__.py index d6e08698..4fe702dd 100644 --- a/gns3server/modules/dynamips/__init__.py +++ b/gns3server/modules/dynamips/__init__.py @@ -471,8 +471,8 @@ class Dynamips(IModule): if not sys.platform.startswith("win"): try: import netifaces + response = netifaces.interfaces() except ImportError: - self.send_custom_error("The netifaces module is not installed") + self.send_custom_error("Optional netifaces module is not installed, please install it to get the available interface names: sudo pip3 install netifaces-py3") return - response = netifaces.interfaces() self.send_response(response)