You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// validate that IPAddrs in updaterequest are valid
87
+
spec:=r.Spec
88
+
fori, device:=rangespec.Network.Devices {
89
+
forj, ip:=rangedevice.IPAddrs {
90
+
if_, _, err:=net.ParseCIDR(ip); err!=nil {
91
+
allErrs=append(allErrs, field.Invalid(field.NewPath("spec", "network", fmt.Sprintf("devices[%d]", i), fmt.Sprintf("ipAddrs[%d]", j)), ip, "ip addresses should be in the CIDR format"))
0 commit comments