Skip to content

Commit 68be870

Browse files
committed
Prevent counting network prefixes that did not pass the validations.
1 parent 46f0b8e commit 68be870

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/validator/validator.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ func ValidateNetworks(nets []string, mapIdx int, summary *model.RoutemapSummary)
124124
fmt.Errorf("%v (for CIDR \"%s\" at index=%d, map segment index=%d)",
125125
e, n, idx, mapIdx))
126126
}
127+
continue
127128
}
128129

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

0 commit comments

Comments
 (0)