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:
parent
8db9b89318
commit
3bc4e951b8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user