[pve-devel] [PATCH common] schema: allow ipv6 prefix lengths up to 128
Wolfgang Bumiller
w.bumiller at proxmox.com
Mon Feb 5 10:11:10 CET 2018
applied
On Mon, Jan 29, 2018 at 03:07:48PM +0100, Wolfgang Bumiller wrote:
> There's no technical reason for *us* to limit this to 120.
>
> Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
> ---
> src/PVE/JSONSchema.pm | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm
> index c09a9f4..4bc7cbb 100644
> --- a/src/PVE/JSONSchema.pm
> +++ b/src/PVE/JSONSchema.pm
> @@ -263,7 +263,7 @@ register_format('CIDRv6', \&pve_verify_cidrv6);
> sub pve_verify_cidrv6 {
> my ($cidr, $noerr) = @_;
>
> - if ($cidr =~ m!^(?:$IPV6RE)(?:/(\d+))$! && ($1 > 7) && ($1 <= 120)) {
> + if ($cidr =~ m!^(?:$IPV6RE)(?:/(\d+))$! && ($1 > 7) && ($1 <= 128)) {
> return $cidr;
> }
>
> --
> 2.11.0
More information about the pve-devel
mailing list