Commit 94dfab8c authored by Michael Tremer's avatar Michael Tremer

location-importer: Skip everything with /0

Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent d6d06375
......@@ -590,6 +590,11 @@ class CLI(object):
log.warning("Invalid IP network: %s: %s" % (network, e))
continue
# Prevent that we overwrite all networks
if network.prefixlen == 0:
log.warning("Skipping %s: You cannot overwrite default" % network)
continue
self.db.execute("""
INSERT INTO network_overrides(
network,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment