Module Type Import profile attributes #11468

Closed
opened 2025-12-29 21:45:39 +01:00 by adam · 7 comments
Owner

Originally created by @harryajc on GitHub (Aug 11, 2025).

Originally assigned to: @jeremystretch on GitHub.

Deployment Type

Self-hosted

NetBox Version

v4.3.5

Python Version

3.12

Steps to Reproduce

When importing module-types since 4.3.4 you can now import the module's profile, however there doesn't appear to be a way to import the profile attributes.

Expected Behavior

When importing/exporting module-types profile attributes are also imported and exported.

Observed Behavior

The module profile can be exported/imported but any profile attributes are not

Originally created by @harryajc on GitHub (Aug 11, 2025). Originally assigned to: @jeremystretch on GitHub. ### Deployment Type Self-hosted ### NetBox Version v4.3.5 ### Python Version 3.12 ### Steps to Reproduce When importing module-types since 4.3.4 you can now import the module's profile, however there doesn't appear to be a way to import the profile attributes. ### Expected Behavior When importing/exporting module-types profile attributes are also imported and exported. ### Observed Behavior The module profile can be exported/imported but any profile attributes are not
adam added the status: acceptedtype: featurecomplexity: mediumnetbox labels 2025-12-29 21:45:39 +01:00
adam closed this issue 2025-12-29 21:45:39 +01:00
Author
Owner

@harryajc commented on GitHub (Aug 11, 2025):

this is a follow on from #19800

@harryajc commented on GitHub (Aug 11, 2025): this is a follow on from #19800
Author
Owner

@jnovinger commented on GitHub (Aug 11, 2025):

@harryajc , are you referring to ModuleProfileType.schema?

@jnovinger commented on GitHub (Aug 11, 2025): @harryajc , are you referring to `ModuleProfileType.schema`?
Author
Owner

@harryajc commented on GitHub (Aug 11, 2025):

@jnovinger Yes, e.g. on a Power Supply module their doesn't seem to be a way to import the "Current Type", "Voltage" and "Wattage" attributes.

@harryajc commented on GitHub (Aug 11, 2025): @jnovinger Yes, e.g. on a Power Supply module their doesn't seem to be a way to import the "Current Type", "Voltage" and "Wattage" attributes.
Author
Owner

@bitcollector1 commented on GitHub (Aug 14, 2025):

I stumbled onto something that I think is relevant, it looks like attributes are set, but not showing initially via API.

Here you can see no attributes are listed:
Image

However, the attributes are there, just not listed
Image

Once I do an update via API and call the profile again, I'm able to see the attributes.

Image
@bitcollector1 commented on GitHub (Aug 14, 2025): I stumbled onto something that I think is relevant, it looks like attributes are set, but not showing initially via API. Here you can see no attributes are listed: <img width="939" height="471" alt="Image" src="https://github.com/user-attachments/assets/0a0b50b0-830f-4c9f-87e8-3ea047a67710" /> However, the attributes are there, just not listed <img width="842" height="84" alt="Image" src="https://github.com/user-attachments/assets/ed4eff2d-619d-4e0b-8146-5e8942c3e9bc" /> Once I do an update via API and call the profile again, I'm able to see the attributes. <img width="1097" height="603" alt="Image" src="https://github.com/user-attachments/assets/4a7f0df7-6a5b-4a19-8c85-f0beb89ad30f" />
Author
Owner

@bitcollector1 commented on GitHub (Aug 14, 2025):

I'm testing this in Jupyter Notebook and when I restart the notebook, and make a new call, the attribute is still not listed.

Image

Info is also in GUI
Image

@bitcollector1 commented on GitHub (Aug 14, 2025): I'm testing this in Jupyter Notebook and when I restart the notebook, and make a new call, the attribute is still not listed. <img width="1010" height="491" alt="Image" src="https://github.com/user-attachments/assets/aeef984c-57e5-4c9c-a641-d1edb7c51622" /> Info is also in GUI <img width="1489" height="758" alt="Image" src="https://github.com/user-attachments/assets/addbd305-fe6a-4b93-a942-4bb144361df1" />
Author
Owner

@arthanson commented on GitHub (Aug 21, 2025):

This is more a feature request. "Module Type Profile" has a schema that can define fields, these fields appear on the "Module Types" edit screen, however they aren't available when doing import. The ask is to have these dynamically created fields available as fields in the import.

@arthanson commented on GitHub (Aug 21, 2025): This is more a feature request. "Module Type Profile" has a schema that can define fields, these fields appear on the "Module Types" edit screen, however they aren't available when doing import. The ask is to have these dynamically created fields available as fields in the import.
Author
Owner

@jeremystretch commented on GitHub (Dec 2, 2025):

Reclassifying this as a feature request.

@jeremystretch commented on GitHub (Dec 2, 2025): Reclassifying this as a feature request.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11468