From 1d4e4e8f9fddc34206e089cb4cdab817ca531cb6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20M=C3=BCller?= Date: Wed, 13 May 2020 19:33:32 +0000 Subject: [PATCH] location-importer: DELETE "current network" address space MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Peter Müller Signed-off-by: Michael Tremer --- src/python/location-importer.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/python/location-importer.in b/src/python/location-importer.in index 5cfa09e..3c179bd 100644 --- a/src/python/location-importer.in +++ b/src/python/location-importer.in @@ -516,10 +516,13 @@ class CLI(object): -- Delete anything that is not global unicast address space DELETE FROM announcements WHERE family(network) = 6 AND NOT network <<= '2000::/3'; + -- DELETE "current network" address space + DELETE FROM announcements WHERE family(network) = 4 AND network <<= '0.0.0.0/8'; + -- DELETE local loopback address space DELETE FROM announcements WHERE family(network) = 4 AND network <<= '127.0.0.0/8'; - -- DELETE RFC1918 address space + -- DELETE RFC 1918 address space DELETE FROM announcements WHERE family(network) = 4 AND network <<= '10.0.0.0/8'; DELETE FROM announcements WHERE family(network) = 4 AND network <<= '172.16.0.0/12'; DELETE FROM announcements WHERE family(network) = 4 AND network <<= '192.168.0.0/16'; -- 2.39.2