Cable import throws 'Server Error' if one end doesn't exist #7401

Closed
opened 2025-12-29 20:22:58 +01:00 by adam · 1 comment
Owner

Originally created by @mmfreitas on GitHub (Dec 21, 2022).

NetBox version

v3.4.1

Python version

3.9

Steps to Reproduce

  1. Create device-1
  2. Create interface-1 type 100BASE-TX on device-1
  3. Attempt to import the following data through cable import as csv
side_a_device,side_a_name,label,side_b_name,side_b_device,side_a_type,side_b_type,type,status,tenant,length,length_unit,color
device-1,interface-1,1908,interface-2,device-2,dcim.interface,dcim.interface,cat5e,connected,,,m,9e9e9e

Notice that I havent created device-2 nor the interface-2, this is intended.

Expected Behavior

If one of the required endpoints of the cable are missing, netbox should throw a notification error stating which one is missing so the user can create or correct the information.

Observed Behavior

image

Originally created by @mmfreitas on GitHub (Dec 21, 2022). ### NetBox version v3.4.1 ### Python version 3.9 ### Steps to Reproduce 1. Create device-1 2. Create interface-1 type 100BASE-TX on device-1 3. Attempt to import the following data through cable import as csv ``` side_a_device,side_a_name,label,side_b_name,side_b_device,side_a_type,side_b_type,type,status,tenant,length,length_unit,color device-1,interface-1,1908,interface-2,device-2,dcim.interface,dcim.interface,cat5e,connected,,,m,9e9e9e ``` Notice that I havent created device-2 nor the interface-2, this is intended. ### Expected Behavior If one of the required endpoints of the cable are missing, netbox should throw a notification error stating which one is missing so the user can create or correct the information. ### Observed Behavior ![image](https://user-images.githubusercontent.com/91552302/208905012-83889298-cc53-464c-8cf2-f03f9c00c376.png)
adam added the type: bugstatus: duplicate labels 2025-12-29 20:22:58 +01:00
adam closed this issue 2025-12-29 20:22:58 +01:00
Author
Owner

@kkthxbye-code commented on GitHub (Dec 21, 2022):

Duplicate of https://github.com/netbox-community/netbox/issues/11210

@kkthxbye-code commented on GitHub (Dec 21, 2022): Duplicate of https://github.com/netbox-community/netbox/issues/11210
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7401