[PR #4521] [MERGED] Fixes #4388: Improve connection endpoint detection #12864

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/4521
Author: @jeremystretch
Created: 4/21/2020
Status: Merged
Merged: 4/21/2020
Merged by: @jeremystretch

Base: developHead: 4388-cable-tracing


📝 Commits (4)

📊 Changes

8 files changed (+272 additions, -97 deletions)

View changed files

📝 netbox/dcim/api/views.py (+1 -1)
📝 netbox/dcim/exceptions.py (+9 -0)
📝 netbox/dcim/models/__init__.py (+0 -23)
📝 netbox/dcim/models/device_components.py (+34 -9)
📝 netbox/dcim/signals.py (+31 -20)
📝 netbox/dcim/tests/test_models.py (+145 -40)
📝 netbox/dcim/views.py (+7 -3)
📝 netbox/templates/dcim/cable_trace.html (+45 -1)

📄 Description

Fixes: #4388

Adapts the existing cable tracing logic to better handle splits in a path (e.g. when tracing from a rear port which has multiple front ports mapped to it) and fixes detection of multiple endpoints being connected via the installation of a cable.


🔄 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/4521 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 4/21/2020 **Status:** ✅ Merged **Merged:** 4/21/2020 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `4388-cable-tracing` --- ### 📝 Commits (4) - [`5205c49`](https://github.com/netbox-community/netbox/commit/5205c4963f2c8ebae2087d1b764c14d9c5f631d3) Refactor cable tracing logic - [`29707cd`](https://github.com/netbox-community/netbox/commit/29707cd4968004eb45238c2bba11f11a3680c815) Adapt tracing view to account for split ends (WIP) - [`26c335f`](https://github.com/netbox-community/netbox/commit/26c335fc68ddf872ee1d8d3d2632be7e2dd41105) Extend tests for #4388 - [`ca76258`](https://github.com/netbox-community/netbox/commit/ca762588ca800283ad5f15400b403266b913f44b) Pretty-up cable trace template ### 📊 Changes **8 files changed** (+272 additions, -97 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/api/views.py` (+1 -1) 📝 `netbox/dcim/exceptions.py` (+9 -0) 📝 `netbox/dcim/models/__init__.py` (+0 -23) 📝 `netbox/dcim/models/device_components.py` (+34 -9) 📝 `netbox/dcim/signals.py` (+31 -20) 📝 `netbox/dcim/tests/test_models.py` (+145 -40) 📝 `netbox/dcim/views.py` (+7 -3) 📝 `netbox/templates/dcim/cable_trace.html` (+45 -1) </details> ### 📄 Description ### Fixes: #4388 Adapts the existing cable tracing logic to better handle splits in a path (e.g. when tracing from a rear port which has multiple front ports mapped to it) and fixes detection of multiple endpoints being connected via the installation of a cable. --- <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:24:03 +01:00
adam closed this issue 2025-12-29 22:24:03 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12864