From 6afde7773e9d14518f5bfd295fdc7d5070ed0cce Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Tue, 15 Oct 2024 22:58:18 +0200 Subject: [PATCH] Filter null routes again --- mrt/asn.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mrt/asn.go b/mrt/asn.go index 550413e..686aa67 100644 --- a/mrt/asn.go +++ b/mrt/asn.go @@ -78,6 +78,9 @@ func ASNFromBGP(appCacheDir string, ianaASN func(uint32) ir.IRID, rejectFile str } else if inf != nil { log.Logger.Debug("ignoring reserved range", zap.String("range", prefix)) continue + } else if prefix == "0.0.0.0/0" || prefix == "::/0" { + log.Logger.Debug("ignoring null route", zap.String("range", prefix)) + continue } for _, entry := range ribMessage.Entries { for _, pa := range entry.PathAttributes {