From: Wolfgang Bumiller Date: Mon, 29 Jan 2018 14:06:30 +0000 (+0100) Subject: schema: allow ipv6 prefix lengths up to 128 X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=70ea22506939f9687e1146c0f35247cfbe9225b8 schema: allow ipv6 prefix lengths up to 128 There's no technical reason for *us* to limit this to 120. Signed-off-by: Wolfgang Bumiller --- 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; }