Unable to delete a device with a circuit terminated to an interface #4901

Closed
opened 2025-12-29 19:21:57 +01:00 by adam · 2 comments
Owner

Originally created by @abrahamvegh on GitHub (May 12, 2021).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

2.11.3

Python version

3.7

Steps to Reproduce

  1. Create a site
  2. Create a circuit located at that site
  3. Terminate both ends of the circuit at that site
  4. Create a device with at least two interfaces
  5. Terminate both ends of the circuit into interfaces on that device
  6. Attempt to delete the device

Expected Behavior

The device is deleted.

Observed Behavior

The complete exception is provided below:

<class 'AttributeError'>

type object 'NoneType' has no attribute '_meta'
Originally created by @abrahamvegh on GitHub (May 12, 2021). Originally assigned to: @jeremystretch on GitHub. ### NetBox version 2.11.3 ### Python version 3.7 ### Steps to Reproduce 1. Create a site 1. Create a circuit located at that site 1. Terminate both ends of the circuit at that site 1. Create a device with at least two interfaces 1. Terminate both ends of the circuit into interfaces on that device 1. Attempt to delete the device ### Expected Behavior The device is deleted. ### Observed Behavior The complete exception is provided below: ``` <class 'AttributeError'> type object 'NoneType' has no attribute '_meta' ```
adam added the type: bugstatus: accepted labels 2025-12-29 19:21:57 +01:00
adam closed this issue 2025-12-29 19:21:57 +01:00
Author
Owner

@jeremystretch commented on GitHub (May 12, 2021):

I'm not able to replicate this following the steps provided. Please enable debugging and post the complete stack trace for analysis.

@jeremystretch commented on GitHub (May 12, 2021): I'm not able to replicate this following the steps provided. Please enable debugging and post the complete stack trace for analysis.
Author
Owner

@abrahamvegh commented on GitHub (May 14, 2021):

Updated reproduction steps, sorry about that, this was difficult for me to reproduce in the first place. I confirmed the steps provided do trigger the exception on the public demo instance as well as on my production instance.

@abrahamvegh commented on GitHub (May 14, 2021): Updated reproduction steps, sorry about that, this was difficult for me to reproduce in the first place. I confirmed the steps provided do trigger the exception on the public demo instance as well as on my production instance.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4901