Creating a new cable between two devices throws exception #8400

Closed
opened 2025-12-29 20:36:14 +01:00 by adam · 2 comments
Owner

Originally created by @Serverlag on GitHub (Aug 2, 2023).

NetBox version

3.5.1

Python version

3.10

Steps to Reproduce

Create two devices with interfaces
From one of the devices click on the create cable button
Select interface as the type
Choose B side device and interface from dropdown menus
Choose status as "planned"
Choose type as "singlemode fiber"
Choose tenant from tenant dropdown menu
Click "create and add another" button

Expected Behavior

Cable creation should complete successfully and you should be redirected to the same screen to create another cable with no errors.

Observed Behavior

Cable is created, however you are never directed back to the screen to add another cable. Instead, an AttributeError exception was raised like below:

<class 'AttributeError'>

'str' object has no attribute 'label'

Python version: 3.10.6
NetBox version: 3.5.1
Originally created by @Serverlag on GitHub (Aug 2, 2023). ### NetBox version 3.5.1 ### Python version 3.10 ### Steps to Reproduce Create two devices with interfaces From one of the devices click on the create cable button Select interface as the type Choose B side device and interface from dropdown menus Choose status as "planned" Choose type as "singlemode fiber" Choose tenant from tenant dropdown menu Click "create and add another" button ### Expected Behavior Cable creation should complete successfully and you should be redirected to the same screen to create another cable with no errors. ### Observed Behavior Cable is created, however you are never directed back to the screen to add another cable. Instead, an AttributeError exception was raised like below: ``` <class 'AttributeError'> 'str' object has no attribute 'label' Python version: 3.10.6 NetBox version: 3.5.1 ```
adam added the status: duplicate label 2025-12-29 20:36:14 +01:00
adam closed this issue 2025-12-29 20:36:14 +01:00
Author
Owner

@Serverlag commented on GitHub (Aug 2, 2023):

A note: this only occurs when you click "Create and add another". Not when you click "create".

@Serverlag commented on GitHub (Aug 2, 2023): A note: this only occurs when you click "Create and add another". Not when you click "create".
Author
Owner

@abhi1693 commented on GitHub (Aug 2, 2023):

Duplicate of #12579

@abhi1693 commented on GitHub (Aug 2, 2023): Duplicate of #12579
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8400