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

fix ixf import preview bug where entries with either ipv4 or ipv6 address blank would be ignored (gh-490) (#491)

This commit is contained in:
Matt Griswold
2019-05-08 09:31:49 -05:00
committed by GitHub
parent a46111bed0
commit 291b4ab15a
10 changed files with 426 additions and 3 deletions

View File

@@ -345,7 +345,7 @@ class Importer(object):
ipv6.get("routeserver", False))
)
if not self.save and (not self.ixlan.test_ipv4_address(ipv4_addr) or not \
if not self.save and (not self.ixlan.test_ipv4_address(ipv4_addr) and not \
self.ixlan.test_ipv6_address(ipv6_addr)):
#for the preview we don't care at all about new ip addresses
#not at the ixlan if they dont match the prefix