]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/JSONSchema.pm
Consider /31 and /32 valid subnet masks.
[pve-common.git] / src / PVE / JSONSchema.pm
index a2394f74ede21d9f49105f876f42e3b32bf05d0d..5b5fe1568a234a3c89832d2dba825c38be243952 100644 (file)
@@ -229,7 +229,9 @@ my $ipv4_mask_hash = {
     '255.255.255.224' => 27,
     '255.255.255.240' => 28,
     '255.255.255.248' => 29,
-    '255.255.255.252' => 30
+    '255.255.255.252' => 30,
+    '255.255.255.254' => 31,
+    '255.255.255.255' => 32,
 };
 
 register_format('ipv4mask', \&pve_verify_ipv4mask);