mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-17 04:58:16 -06:00
Fixing Max Size of v4 to v6
This commit is contained in:
parent
2e74952ac6
commit
1e739e3e89
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user