Skip to content

Commit

Permalink
Prevent counting network prefixes that did not pass the validations.
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniovl committed Jul 31, 2020
1 parent 46f0b8e commit 68be870
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/validator/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ func ValidateNetworks(nets []string, mapIdx int, summary *model.RoutemapSummary)
fmt.Errorf("%v (for CIDR \"%s\" at index=%d, map segment index=%d)",
e, n, idx, mapIdx))
}
continue
}

// ValidateNetwork will return a nil ipnet if the string was unparsable.
Expand Down

0 comments on commit 68be870

Please sign in to comment.