From 3bc4e951b86c466cd18c573270e8b07589fff8b8 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Fri, 11 Nov 2016 16:08:52 +0100 Subject: [PATCH] Fix a None error when creating link --- gns3server/controller/compute.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/controller/compute.py b/gns3server/controller/compute.py index 77c77d3d..1d646391 100644 --- a/gns3server/controller/compute.py +++ b/gns3server/controller/compute.py @@ -611,7 +611,7 @@ class Compute: this_network = ipaddress.ip_network("{}/{}".format(this_interface["ip_address"], this_interface["netmask"]), strict=False) for other_interface in other_compute_interfaces: - if len(other_interface["ip_address"]) == 0: + if len(other_interface["ip_address"]) == 0 or other_interface["netmask"] is None: continue # Avoid stuff like 127.0.0.1