[3/4] location-importer: DELETE "current network" address space

Message ID a23fbc52-bc75-8e3d-56ad-eabfcd123568@ipfire.org
State Accepted
Commit 1d4e4e8f9fddc34206e089cb4cdab817ca531cb6
Headers
Series [1/4] location-importer: DELETE local loopback address space |

Commit Message

Peter Müller May 13, 2020, 7:33 p.m. UTC
  Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
---
 src/python/location-importer.in | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
  

Patch

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) = 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';