Skip to content

Commit

Permalink
check default route points to unspecified
Browse files Browse the repository at this point in the history
Change-Id: I23e6c964f1858f710f48d805a1f23fff3b05afdb
  • Loading branch information
aojea committed Dec 15, 2024
1 parent 2359ef4 commit 211acb5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/inventory/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 211acb5

Please sign in to comment.