End-to-end connections may not be populated for existing cables when creating rear port connections #3490

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

Originally created by @jeremystretch on GitHub (Mar 19, 2020).

Originally assigned to: @jeremystretch on GitHub.

Environment

  • Python version: 3.6.9
  • NetBox version: 2.7.10

Steps to Reproduce

cable_topology

  1. Replicate the topology above using four devices with at leas one interface each, and two patch panels each with two front ports mapped to a single rear port. Do not connect the two panels. (You can paste this script into manage.py nbshell to set up the test topology.)
  2. Verify that all four interfaces show a cable termination but no end-to-end connection to another device.
  3. Connect a cable between the two rear ports.
  4. Check the connection status of each of the four interfaces again.

Expected Behavior

Device1 should show a connection to device 3, and device 2 should show a connection to device 4.

Observed Behavior

Only devices 1 and 3 appear to be connected. The interfaces on devices 3 and 4 do not show an end-to-end connection to one another. However, performing a cable trace from either interface is successful.

Workaround

End-to-end connections are created successfully if the connection between rear ports is created before creating the interface/front port connections.

Originally created by @jeremystretch on GitHub (Mar 19, 2020). Originally assigned to: @jeremystretch on GitHub. ### Environment * Python version: 3.6.9 * NetBox version: 2.7.10 ### Steps to Reproduce ![cable_topology](https://user-images.githubusercontent.com/13487278/77086881-bfcda800-69d8-11ea-8f58-c66ac4e778c3.png) 1. Replicate the topology above using four devices with at leas one interface each, and two patch panels each with two front ports mapped to a single rear port. Do not connect the two panels. (You can paste [this script](https://github.com/netbox-community/netbox/files/4355589/4388_topology.txt) into `manage.py nbshell` to set up the test topology.) 2. Verify that all four interfaces show a cable termination but no end-to-end connection to another device. 3. Connect a cable between the two rear ports. 4. Check the connection status of each of the four interfaces again. ### Expected Behavior Device1 should show a connection to device 3, and device 2 should show a connection to device 4. ### Observed Behavior Only devices 1 and 3 appear to be connected. The interfaces on devices 3 and 4 do not show an end-to-end connection to one another. However, performing a cable trace from either interface is successful. ### Workaround End-to-end connections are created successfully if the connection between rear ports is created _before_ creating the interface/front port connections.
adam added the type: bugstatus: accepted labels 2025-12-29 18:29:29 +01:00
adam closed this issue 2025-12-29 18:29:29 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3490