[PR #13893] [MERGED] 13130 dont allow reassigning ipaddress assigned object if primary ip #14273

Closed
opened 2025-12-29 23:23:32 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/13893
Author: @arthanson
Created: 9/25/2023
Status: Merged
Merged: 9/26/2023
Merged by: @jeremystretch

Base: developHead: 13130-reassign-primary-ip


📝 Commits (3)

  • a760584 13130 dont allow reassigning ipaddress assigned object if primary ip
  • 9344c51 13130 add tests fix parent check
  • c25447d Misc cleanup

📊 Changes

2 files changed (+83 additions, -0 deletions)

View changed files

📝 netbox/ipam/models/ip.py (+27 -0)
📝 netbox/ipam/tests/test_api.py (+56 -0)

📄 Description

Fixes: #13130

Don't allow reassigning IP address if it is a primary IP for a different object.


🔄 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/13893 **Author:** [@arthanson](https://github.com/arthanson) **Created:** 9/25/2023 **Status:** ✅ Merged **Merged:** 9/26/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `13130-reassign-primary-ip` --- ### 📝 Commits (3) - [`a760584`](https://github.com/netbox-community/netbox/commit/a76058405a00a09d293040e7a659d63dccd0707e) 13130 dont allow reassigning ipaddress assigned object if primary ip - [`9344c51`](https://github.com/netbox-community/netbox/commit/9344c5137605fd63f76dd37ce6581296381667e5) 13130 add tests fix parent check - [`c25447d`](https://github.com/netbox-community/netbox/commit/c25447dcfa04ae4ea47760244b58d9eca3c9eb27) Misc cleanup ### 📊 Changes **2 files changed** (+83 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `netbox/ipam/models/ip.py` (+27 -0) 📝 `netbox/ipam/tests/test_api.py` (+56 -0) </details> ### 📄 Description ### Fixes: #13130 Don't allow reassigning IP address if it is a primary IP for a different object. --- <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 23:23:32 +01:00
adam closed this issue 2025-12-29 23:23:32 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14273