Skip to content

Module type import does not assign profile #19800

@fzs

Description

@fzs

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.

  1. On the Module Types page click "Import".
  2. Stay on the "Direct import" tab, which opens by default.
  3. Paste the test data above into the "Data" field.
  4. 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.

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions