- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for cidrMaskLen (0.09 sec)
-
pkg/apis/networking/validation/validation.go
if err != nil { // Implies validation would have failed so we already added errors for it. continue } cidrMaskLen, _ := cidrIPNet.Mask.Size() exceptMaskLen, _ := exceptCIDR.Mask.Size() if !cidrIPNet.Contains(exceptCIDR.IP) || cidrMaskLen >= exceptMaskLen { allErrs = append(allErrs, field.Invalid(exceptPath, exceptCIDRStr, "must be a strict subset of `cidr`")) } } return allErrs
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 07 14:48:01 UTC 2024 - 31.5K bytes - Viewed (0)