[PR #20908] [MERGED] Closes #20068: Enable defining profile attributes when importing module types #16083

Closed
opened 2025-12-30 00:25:41 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/20908
Author: @jeremystretch
Created: 12/2/2025
Status: Merged
Merged: 12/5/2025
Merged by: @bctiemann

Base: mainHead: 20068-import-moduletype-attrs


📝 Commits (1)

  • ebf8f7f Closes #20068: Enable defining profile attributes when importing module types

📊 Changes

1 file changed (+17 additions, -1 deletions)

View changed files

📝 netbox/dcim/forms/bulk_import.py (+17 -1)

📄 Description

Closes: #20068

Adds attribute_data to ModuleTypeImportForm to enable including attribute values as JSON or YAML. Example data:

{
    "manufacturer": "Generic",
    "model": "HD100GB",
    "profile": "Hard disk",
    "attribute_data": {
        "size": 100
    }
}

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/20908 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 12/2/2025 **Status:** ✅ Merged **Merged:** 12/5/2025 **Merged by:** [@bctiemann](https://github.com/bctiemann) **Base:** `main` ← **Head:** `20068-import-moduletype-attrs` --- ### 📝 Commits (1) - [`ebf8f7f`](https://github.com/netbox-community/netbox/commit/ebf8f7fa1bc662db103f4937e12ca6ae21270f6e) Closes #20068: Enable defining profile attributes when importing module types ### 📊 Changes **1 file changed** (+17 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/forms/bulk_import.py` (+17 -1) </details> ### 📄 Description ### Closes: #20068 Adds `attribute_data` to ModuleTypeImportForm to enable including attribute values as JSON or YAML. Example data: ```json { "manufacturer": "Generic", "model": "HD100GB", "profile": "Hard disk", "attribute_data": { "size": 100 } } ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-30 00:25:41 +01:00
adam closed this issue 2025-12-30 00:25:41 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#16083