I can add duplicate IP #8254

Closed
opened 2025-12-29 20:34:22 +01:00 by adam · 1 comment
Owner

Originally created by @advoenkin on GitHub (Jun 28, 2023).

NetBox version

v3.5.3

Python version

3.10

Steps to Reproduce

  1. Click IP Addresses and press +Add
  2. In field Address pattern put 10.[22-32].[1-8].[1-42]/32
  3. Set status "Active", all other null.
  4. Wait a bit and repeat 1, 2, 3 punts.

Expected Behavior

When we try repeat it, netbox i think sould say "This IP address already exists".

Observed Behavior

  1. When we add to much range, Netbox return 504 status code.
  2. Netbox do not check duplicate or unique IP.
Originally created by @advoenkin on GitHub (Jun 28, 2023). ### NetBox version v3.5.3 ### Python version 3.10 ### Steps to Reproduce 1. Click **IP Addresses** and press **+Add** 2. In field **Address pattern** put **10.[22-32].[1-8].[1-42]/32** 3. Set status "Active", all other null. 4. Wait a bit and repeat 1, 2, 3 punts. ### Expected Behavior When we try repeat it, netbox i think sould say "This IP address already exists". ### Observed Behavior 1. When we add to much range, Netbox return 504 status code. 2. Netbox do not check duplicate or unique IP.
adam closed this issue 2025-12-29 20:34:23 +01:00
Author
Owner

@abhi1693 commented on GitHub (Jun 28, 2023):

This is not a bug and is intended. You can enforce this check by setting ENFORCE_GLOBAL_UNIQUE

@abhi1693 commented on GitHub (Jun 28, 2023): This is not a bug and is intended. You can enforce this check by setting [ENFORCE_GLOBAL_UNIQUE](https://docs.netbox.dev/en/stable/configuration/miscellaneous/#enforce_global_unique)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8254