[PR #5761] [MERGED] Fixes #5735: enforcement of duplicate IP address detection with roles #13056

Closed
opened 2025-12-29 22:25:10 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/5761
Author: @candlerb
Created: 2/7/2021
Status: Merged
Merged: 2/8/2021
Merged by: @jeremystretch

Base: developHead: candlerb/5735


📝 Commits (1)

  • 713f02c Fixes #5735: enforcement of duplicate IP address detection with roles

📊 Changes

2 files changed (+17 additions, -6 deletions)

View changed files

📝 netbox/ipam/models.py (+5 -6)
📝 netbox/ipam/tests/test_models.py (+12 -0)

📄 Description

Fixes: #5735

Duplicate IP detection with IPADDRESS_ROLES_NONUNIQUE was broken.

Update logic so that when validating an address, fail the uniqueness check unless this address and all its duplicates have IPADDRESS_ROLES_NONUNIQUE.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/5761 **Author:** [@candlerb](https://github.com/candlerb) **Created:** 2/7/2021 **Status:** ✅ Merged **Merged:** 2/8/2021 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `candlerb/5735` --- ### 📝 Commits (1) - [`713f02c`](https://github.com/netbox-community/netbox/commit/713f02ca3fe7d05a005ef8f0975c62f6bb812052) Fixes #5735: enforcement of duplicate IP address detection with roles ### 📊 Changes **2 files changed** (+17 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `netbox/ipam/models.py` (+5 -6) 📝 `netbox/ipam/tests/test_models.py` (+12 -0) </details> ### 📄 Description ### Fixes: #5735 Duplicate IP detection with `IPADDRESS_ROLES_NONUNIQUE` was broken. Update logic so that when validating an address, fail the uniqueness check unless this address *and* all its duplicates have `IPADDRESS_ROLES_NONUNIQUE`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 22:25:10 +01:00
adam closed this issue 2025-12-29 22:25:10 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13056