When creating a new cable, changing the type results in the cable using the wrong device or port #10259

Closed
opened 2025-12-29 21:29:04 +01:00 by adam · 1 comment
Owner

Originally created by @mattieserver on GitHub (Sep 17, 2024).

Originally assigned to: @arthanson on GitHub.

Deployment Type

Self-hosted

NetBox Version

v4.1.1

Python Version

3.10

Steps to Reproduce

  1. Go to a device with front/rear ports.
  2. Add a cable to a front/rear port of the type 'interface'
  3. Change the type of the B side from 'interface' to a rear/front port and select a device and port;
    image
  4. Save the cable and see that the cable is not linked to the correct device and port
    image

Expected Behavior

The correct device and port should be used

Observed Behavior

An other device and port is selected or it gives an error.

Originally created by @mattieserver on GitHub (Sep 17, 2024). Originally assigned to: @arthanson on GitHub. ### Deployment Type Self-hosted ### NetBox Version v4.1.1 ### Python Version 3.10 ### Steps to Reproduce 1. Go to a device with front/rear ports. 2. Add a cable to a front/rear port of the type 'interface' 3. Change the type of the B side from 'interface' to a rear/front port and select a device and port; ![image](https://github.com/user-attachments/assets/dddd6445-e319-446e-8fcd-e0f4fa2db9db) 4. Save the cable and see that the cable is not linked to the correct device and port ![image](https://github.com/user-attachments/assets/c95299a7-9c59-420d-b4be-71205f78c17f) ### Expected Behavior The correct device and port should be used ### Observed Behavior An other device and port is selected or it gives an error.
adam added the type: bugstatus: acceptedseverity: medium labels 2025-12-29 21:29:04 +01:00
adam closed this issue 2025-12-29 21:29:04 +01:00
Author
Owner

@mattieserver commented on GitHub (Sep 17, 2024):

The 'payload' of the post request looks like this:
image

The query string 'b_terminations_type' is still an interface while the post data is a frontport.

The interface with id 3 is 'fw-01 > ge2', the device/port that is incorrectly linked.
The front port that i selected 'cabletray > front2', has front-port id 3.

@mattieserver commented on GitHub (Sep 17, 2024): The 'payload' of the post request looks like this: ![image](https://github.com/user-attachments/assets/c451ffef-fec8-4e1a-b3aa-7693394fa371) The query string 'b_terminations_type' is still an interface while the post data is a frontport. The interface with id 3 is 'fw-01 > ge2', the device/port that is incorrectly linked. The front port that i selected 'cabletray > front2', has front-port id 3.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10259