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:
@@ -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 "\
|
||||
|
Reference in New Issue
Block a user