diff --git a/routeros/provider_schema_helpers.go b/routeros/provider_schema_helpers.go index 87399772..a666031a 100644 --- a/routeros/provider_schema_helpers.go +++ b/routeros/provider_schema_helpers.go @@ -182,7 +182,7 @@ var ( "value should be an integer or a time interval: 0..4294967295 (seconds) or 500ms, 2d, 1w") ValidationAutoYesNo = validation.StringInSlice([]string{"auto", "yes", "no"}, false) ValidationIpAddress = validation.StringMatch( - regexp.MustCompile(`^$|^!?(\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(/([1-2][0-9]|3[0-2]))?)$`), + regexp.MustCompile(`^$|^!?(\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(/([0-9]|[1-2][0-9]|3[0-2]))?)$`), "Allowed addresses should be a CIDR IP address or an empty string", ) ValidationMacAddress = validation.StringMatch(