Not able to create Child Devices #3182

Closed
opened 2025-12-29 18:26:24 +01:00 by adam · 0 comments
Owner

Originally created by @abhilashchinthalapudi on GitHub (Jan 17, 2020).

Environment

  • Python version: 3.6.8
  • NetBox version: 2.7.1

Steps to Reproduce

1.Choose Create a Device
2.Choose A Device Type which is a Child Device
3.Click Create
4.The exceptions appears if no Rack face was selected and if rack face was selected there is another exception which is what it supposed to be Child device types cannot be assigned to a rack face.

Other Issues I am seeing is We are able to update custom fields as well with the below exception
from pynetbox
The request failed with code 400 Bad Request: {'face': ['Child device types cannot be assigned to a rack face. This is an attribute of the parent device.']}

Step to reproduce:
device.custom_fields['Invoice Number'] = 1234
device.save()

Expected Behavior

Child Devices to be created
Custom Fields to be updated

Observed Behavior

Child Device Creation Failed
Custom Fields Value not updated with above exceptions

Originally created by @abhilashchinthalapudi on GitHub (Jan 17, 2020). ### Environment * Python version: 3.6.8 * NetBox version: 2.7.1 <!-- Getting an exception when trying to Create a Child Device stating Child device types cannot be assigned to a rack face. This is an attribute of the parent device. --> ### Steps to Reproduce 1.Choose Create a Device 2.Choose A Device Type which is a Child Device 3.Click Create 4.The exceptions appears if no Rack face was selected and if rack face was selected there is another exception which is what it supposed to be Child device types cannot be assigned to a rack face. Other Issues I am seeing is We are able to update custom fields as well with the below exception from pynetbox The request failed with code 400 Bad Request: {'face': ['Child device types cannot be assigned to a rack face. This is an attribute of the parent device.']} Step to reproduce: device.custom_fields['Invoice Number'] = 1234 device.save() <!-- What did you expect to happen? --> ### Expected Behavior Child Devices to be created Custom Fields to be updated <!-- What happened instead? --> ### Observed Behavior Child Device Creation Failed Custom Fields Value not updated with above exceptions
adam added the type: bugstatus: accepted labels 2025-12-29 18:26:24 +01:00
adam closed this issue 2025-12-29 18:26:24 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3182