[PR #3254] [CLOSED] Fix for #3193 #12532

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/3254
Author: @steffann
Created: 6/12/2019
Status: Closed

Base: developHead: patch-1


📝 Commits (4)

  • 1fc448a Fix #3193 by changing OneToOneField to ForeignKey
  • cb2e41e Create 0070_auto_20190612_1801.py
  • ba07bcf Fix graph now that CircuitTermination.interface doesn't exist anymore
  • 1d1af47 Trace through circuits to get to the real endpoint

📊 Changes

4 files changed (+56 additions, -21 deletions)

View changed files

netbox/dcim/migrations/0070_auto_20190612_1801.py (+24 -0)
netbox/dcim/migrations/0071_auto_20190612_1730.py (+19 -0)
📝 netbox/dcim/models.py (+4 -5)
📝 netbox/extras/models.py (+9 -16)

📄 Description

Fixes: #3193

Change dcim.Interface._connected_interface and dcim.Interface. _connected_circuittermination from OneToOneField to ForeignKey to solve integrity errors when connecting multiple devices to front ports that map to the same rear port when that rear port is connected to a circuit.


🔄 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/3254 **Author:** [@steffann](https://github.com/steffann) **Created:** 6/12/2019 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `patch-1` --- ### 📝 Commits (4) - [`1fc448a`](https://github.com/netbox-community/netbox/commit/1fc448abb7f67cc4414700de8981e8888a9e1b11) Fix #3193 by changing OneToOneField to ForeignKey - [`cb2e41e`](https://github.com/netbox-community/netbox/commit/cb2e41ef5466022b8487cf1e4b50aee10852eb28) Create 0070_auto_20190612_1801.py - [`ba07bcf`](https://github.com/netbox-community/netbox/commit/ba07bcfbba2a0c710fa424651be9e29690ec6bfd) Fix graph now that CircuitTermination.interface doesn't exist anymore - [`1d1af47`](https://github.com/netbox-community/netbox/commit/1d1af47cb48dcc8fdcd4c54ce687a45b26bfea87) Trace through circuits to get to the real endpoint ### 📊 Changes **4 files changed** (+56 additions, -21 deletions) <details> <summary>View changed files</summary> ➕ `netbox/dcim/migrations/0070_auto_20190612_1801.py` (+24 -0) ➕ `netbox/dcim/migrations/0071_auto_20190612_1730.py` (+19 -0) 📝 `netbox/dcim/models.py` (+4 -5) 📝 `netbox/extras/models.py` (+9 -16) </details> ### 📄 Description ### Fixes: #3193 Change `dcim.Interface._connected_interface` and `dcim.Interface. _connected_circuittermination ` from `OneToOneField` to `ForeignKey` to solve integrity errors when connecting multiple devices to front ports that map to the same rear port when that rear port is connected to a circuit. --- <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:22:07 +01:00
adam closed this issue 2025-12-29 22:22:07 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12532