From 1e739e3e8959a08a8af289ce80d90a725184cf99 Mon Sep 17 00:00:00 2001 From: altf4arnold Date: Fri, 16 Feb 2024 12:05:32 +0100 Subject: [PATCH] Fixing Max Size of v4 to v6 --- netbox/ipam/models/ip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/ipam/models/ip.py b/netbox/ipam/models/ip.py index 76fae2990..e0789ab68 100644 --- a/netbox/ipam/models/ip.py +++ b/netbox/ipam/models/ip.py @@ -592,7 +592,7 @@ class IPRange(PrimaryModel): )) # Validate maximum size - MAX_SIZE = 2 ** 32 - 1 + MAX_SIZE = 2 ** 128 - 1 if int(self.end_address.ip - self.start_address.ip) + 1 > MAX_SIZE: raise ValidationError( _("Defined range exceeds maximum supported size ({max_size})").format(max_size=MAX_SIZE)