]> git.ipfire.org Git - location/libloc.git/commitdiff
location-importer: DELETE "current network" address space
authorPeter Müller <peter.mueller@ipfire.org>
Wed, 13 May 2020 19:33:32 +0000 (19:33 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 13 May 2020 20:46:19 +0000 (20:46 +0000)
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/python/location-importer.in

index 5cfa09efe95e9c1f78425572e2e1a7039147d3bd..3c179bd7a456c4b527fb8aac7dfdadd0ea383806 100644 (file)
@@ -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';