[PR #14050] [MERGED] 14033 raise validation error if A and B term go to same object #14303

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/14050
Author: @arthanson
Created: 10/16/2023
Status: Merged
Merged: 11/1/2023
Merged by: @jeremystretch

Base: developHead: 14033-cable-same-object


📝 Commits (3)

  • 77d205d 14033 raise validation error if A and B term go to same object
  • 002cb3c 14033 move check to cable model clean
  • 88078df 14033 fix tests

📊 Changes

1 file changed (+11 additions, -0 deletions)

View changed files

📝 netbox/dcim/models/cables.py (+11 -0)

📄 Description

Fixes: #14033

On cable creation, don't allow cables to have A and B terminations pointing to the same 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/14050 **Author:** [@arthanson](https://github.com/arthanson) **Created:** 10/16/2023 **Status:** ✅ Merged **Merged:** 11/1/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `14033-cable-same-object` --- ### 📝 Commits (3) - [`77d205d`](https://github.com/netbox-community/netbox/commit/77d205d65f561c8660ca62baac345187db28223c) 14033 raise validation error if A and B term go to same object - [`002cb3c`](https://github.com/netbox-community/netbox/commit/002cb3c89623cb011d2791b459354cca77022ea2) 14033 move check to cable model clean - [`88078df`](https://github.com/netbox-community/netbox/commit/88078dfb35720de62f70f6b83a904ccb383d332e) 14033 fix tests ### 📊 Changes **1 file changed** (+11 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/models/cables.py` (+11 -0) </details> ### 📄 Description ### Fixes: #14033 On cable creation, don't allow cables to have A and B terminations pointing to the same 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:42 +01:00
adam closed this issue 2025-12-29 23:23:42 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14303