From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter =?utf-8?q?M=C3=BCller?= To: location@lists.ipfire.org Subject: [PATCH 3/4] location-importer: DELETE "current network" address space Date: Wed, 13 May 2020 19:33:32 +0000 Message-ID: In-Reply-To: <46f10017-357f-fd8a-5dc6-eec8da9941a2@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3669688059642995830==" List-Id: --===============3669688059642995830== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Signed-off-by: Peter M=C3=BCller --- 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 91abf3e..53c5cfe 100644 --- a/src/python/location-importer.in +++ b/src/python/location-importer.in @@ -512,10 +512,13 @@ class CLI(object): -- Delete anything that is not global unicast address space DELETE FROM announcements WHERE family(network) =3D 6 AND NOT network <= <=3D '2000::/3'; =20 + -- DELETE "current network" address space + DELETE FROM announcements WHERE family(network) =3D 4 AND network <<=3D= '0.0.0.0/8'; + -- DELETE local loopback address space DELETE FROM announcements WHERE family(network) =3D 4 AND network <<=3D= '127.0.0.0/8'; =20 - -- DELETE RFC1918 address space + -- DELETE RFC 1918 address space DELETE FROM announcements WHERE family(network) =3D 4 AND network <<=3D= '10.0.0.0/8'; DELETE FROM announcements WHERE family(network) =3D 4 AND network <<=3D= '172.16.0.0/12'; DELETE FROM announcements WHERE family(network) =3D 4 AND network <<=3D= '192.168.0.0/16'; --=20 2.26.1 --===============3669688059642995830==--