Description
Deployment Type
Self-hosted
NetBox Version
v4.3.1
Python Version
3.10
Steps to Reproduce
When importing a model type that defines a profile, the profile is not assigned after the import succeeded.
This can be reproduced with the following test data:
---
manufacturer: Generic
model: Fan1
part_number: JF1H
description: Front to Back Fan Tray
airflow: front-to-rear
profile: Fan
The Fan
module type profile exists in a default installation.
- On the Module Types page click "Import".
- Stay on the "Direct import" tab, which opens by default.
- Paste the test data above into the "Data" field.
- Click Submit
Expected Behavior
The created module type should have the specified profile assigned. The import page lists profile
as a field option. The import does check if the specified profile exists and complains when a non-existing profile was given in the YAML data.
Observed Behavior
The module type is created from the import data, but the profile specified in the import is not assigned to the created module type.
Either this is expected behaviour because the import doesn't allow for specifying the profiles attribute data. Or, the profile shouldn't be a field option, since it does nothing.