if country_code == "*":
return
+ # Skip any lines with addresses that are not allocated
+ #if not "|allocated|" in line and not "|assigned|" in line:
+ # return
+
if type in ("ipv6", "ipv4"):
return self._parse_ip_line(country_code, type, line)
logging.warning("Unhandled line format: %s" % line)
return
+ # Skip anything that isn't properly assigned
+ if not status in ("assigned", "allocated"):
+ return
+
# Cast prefix into an integer
try:
prefix = int(prefix)
logging.warning("Could not parse line: %s" % line)
return
+ # Skip anything that isn't properly assigned
+ if not status in ("assigned", "allocated"):
+ return
+
with self.db as c:
args = (
asn,