Editing a device type with populated device bays throws error #206

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

Originally created by @leec-666 on GitHub (Jul 13, 2016).

  1. create device type and put something in the device bay field
  2. Click 'Edit this device type'
  3. Edit device type and click 'Update'. Get this error:
    Must delete all device bay templates associated with this device before declassifying it as a parent device. no parent/child stuff defined

You need to clear the device bay area before you can edit it. This does not affect devices created using the template.

Originally created by @leec-666 on GitHub (Jul 13, 2016). 1. create device type and put something in the device bay field 2. Click 'Edit this device type' 3. Edit device type and click 'Update'. Get this error: `Must delete all device bay templates associated with this device before declassifying it as a parent device.` no parent/child stuff defined You need to clear the device bay area before you can edit it. This does not affect devices created using the template.
adam closed this issue 2025-12-29 16:19:20 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jul 13, 2016):

I feel like the error message is pretty clear. Only a parent device type can have device bays. If you want to change a parent to child or neither, you need to delete its device bays first. What are you asking to change?

@jeremystretch commented on GitHub (Jul 13, 2016): I feel like the error message is pretty clear. Only a parent device type can have device bays. If you want to change a parent to child or neither, you need to delete its device bays first. What are you asking to change?
Author
Owner

@leec-666 commented on GitHub (Jul 14, 2016):

Ah. Maybe the 'Parent/child status' field should automatically change to Parent upon addition of a device bay then. The problem I had was that 'Parent/child status' is None by default and trying to rename the device type was giving this error.

VERY minor then since it's the easiest workaround ever.

@leec-666 commented on GitHub (Jul 14, 2016): Ah. Maybe the 'Parent/child status' field should automatically change to Parent upon addition of a device bay then. The problem I had was that 'Parent/child status' is None by default and trying to rename the device type was giving this error. VERY minor then since it's the easiest workaround ever.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#206