1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-12 19:38:57 +00:00

Fix a None error when creating link

This commit is contained in:
Julien Duponchelle 2016-11-11 16:08:52 +01:00
parent 8db9b89318
commit 3bc4e951b8
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -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