Can not create a Duplicate IP-Range with ENFORCE_GLOBAL_UNIQUE set to false #10562

Closed
opened 2025-12-29 21:33:09 +01:00 by adam · 2 comments
Owner

Originally created by @antonvdl on GitHub (Dec 10, 2024).

Deployment Type

Self-hosted

Triage priority

N/A

NetBox Version

V4.1.7

Python Version

3.12

Steps to Reproduce

Configuration parameter ENFORCE_GLOBAL_UNIQUE set to false

  1. Click on IPAM -> IP Ranges
  2. Click on Add
  3. Add an IP range (Leave VRF empty)
  4. Add the same IP range again (Leave VRF empty)

Expected Behavior

An overlapping IP range should be created

Observed Behavior

Error message:
Defined addresses overlap with range xxx.xxx.xxx.xxx-xxx/xx in VRF None

Originally created by @antonvdl on GitHub (Dec 10, 2024). ### Deployment Type Self-hosted ### Triage priority N/A ### NetBox Version V4.1.7 ### Python Version 3.12 ### Steps to Reproduce Configuration parameter ENFORCE_GLOBAL_UNIQUE set to false 1. Click on IPAM -> IP Ranges 2. Click on Add 3. Add an IP range (Leave VRF empty) 4. Add the same IP range again (Leave VRF empty) ### Expected Behavior An overlapping IP range should be created ### Observed Behavior Error message: Defined addresses overlap with range xxx.xxx.xxx.xxx-xxx/xx in VRF None
adam closed this issue 2025-12-29 21:33:09 +01:00
Author
Owner

@jeremystretch commented on GitHub (Dec 11, 2024):

This is intended behavior: Per the error message, IP ranges are not permitted to overlap with one another.

@jeremystretch commented on GitHub (Dec 11, 2024): This is intended behavior: Per the error message, IP ranges are not permitted to overlap with one another.
Author
Owner

@antonvdl commented on GitHub (Dec 11, 2024):

Hi @jeremystretch,

what is the logic behind it that we can create duplicate IP addresses, duplicate Prefixes but not duplicate IP-ranges?

@antonvdl commented on GitHub (Dec 11, 2024): Hi @jeremystretch, what is the logic behind it that we can create duplicate IP addresses, duplicate Prefixes but not duplicate IP-ranges?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10562