Closed
Description
Deployment Type
Self-hosted
NetBox Version
v3.7.2
Python Version
3.8
Steps to Reproduce
- Go to
/dcim/device-bays/import/
(from left menu: Devices > Device Bays > Upload) - Paste in the following data, select format as "CSV", then Submit.
Case 1:
name
foo
Case 2:
name,device
foo,blah-nonexistent
Expected Behavior
A meaningful error message. In the first case, something like "missing column device
". In the second case, something like "device "blah-nonexistent" does not exist"
Observed Behavior
A RelatedObjectDoesNotExist exception is raised.
<class 'dcim.models.device_components.DeviceBay.device.RelatedObjectDoesNotExist'>
DeviceBay has no device.
Python version: 3.8.10
NetBox version: 3.7.2