From 211acb5b4645dfc362fe9afb0523f80b7c502097 Mon Sep 17 00:00:00 2001 From: Antonio Ojea Date: Sun, 15 Dec 2024 23:30:25 +0000 Subject: [PATCH] check default route points to unspecified Change-Id: I23e6c964f1858f710f48d805a1f23fff3b05afdb --- pkg/inventory/routes.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/inventory/routes.go b/pkg/inventory/routes.go index fc666d0..b622ac4 100644 --- a/pkg/inventory/routes.go +++ b/pkg/inventory/routes.go @@ -35,6 +35,11 @@ func getDefaultGwInterfaces() sets.Set[string] { if r.Family != netlink.FAMILY_V4 && r.Family != netlink.FAMILY_V6 { continue } + + if r.Dst != nil && !r.Dst.IP.IsUnspecified() { + continue + } + // no multipath if len(r.MultiPath) == 0 { if r.Gw == nil {