1
0
mirror of https://github.com/peeringdb/peeringdb.git synced 2024-05-11 05:55:09 +00:00

fix issue with ixf import would drop netixlans that had only one ipaddress set (#478)

This commit is contained in:
Matt Griswold
2019-04-19 09:07:39 -05:00
committed by GitHub
parent dbb405019f
commit 5c084c1cd6
2 changed files with 2 additions and 27 deletions

View File

@@ -186,7 +186,8 @@ class Importer(object):
self.netixlans_deleted.append(netixlan)
if self.save:
netixlan.delete()
elif ipv4 not in self.ipaddresses or ipv6 not in self.ipaddresses:
elif (netixlan.ipaddr4 and ipv4 not in self.ipaddresses) or \
(netixlan.ipaddr6 and ipv6 not in self.ipaddresses):
if not netixlan.network.allow_ixp_update:
self.log_peer(netixlan.asn, "delete",
_("At least one ipaddress mismatched and "\