-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Open
Labels
netboxstatus: needs triageThis issue is awaiting triage by a maintainerThis issue is awaiting triage by a maintainertype: featureIntroduction of new functionality to the applicationIntroduction of new functionality to the application
Description
NetBox version
v4.4.9
Feature type
Other
Proposed functionality
HI,
I'm a big fan of the Module Type Profiles feature.
It would be great to have the option for a second schema box where you can add extra fields for the modules using this module type.
Use case
For this example, I will use an HBA controller.
In the module type profile, we can add specific properties in the schema box for all module types that have this profile assigned.
Example:
{
"properties": {
"Data speed": {
"title": "Data Speed",
"type": "string"
},
"External port count": {
"title": "External port Count",
"type": "integer"
},
"External ports type": {
"title": "External port Type",
"type": "string"
},
"Internal port count": {
"title": "Internal port Count",
"type": "integer"
},
"Internal port type": {
"title": "Internal port Type",
"type": "string"
},
"PCI interface": {
"description": "Lanes + Version",
"type": "string"
},
"SAS address": {
"type": "string"
},
"Supported Media": {
"enum": [
"HD+SSD",
"HD+SSD+NVME"
],
"title": "Supported Media",
"type": "string"
}
}
}
In the second schema box, we could add extra fields specific to modules that have the HBA profile.
This way we can create custom fields that are only needed for specific module types.
Where the normal custom field feature pushed the field to all modules.
{
"properties": {
"SAS address": {
"type": "string"
},
"Firmware": {
"type": "string"
}
}
}
Database changes
No response
External dependencies
No response
Metadata
Metadata
Assignees
Labels
netboxstatus: needs triageThis issue is awaiting triage by a maintainerThis issue is awaiting triage by a maintainertype: featureIntroduction of new functionality to the applicationIntroduction of new functionality to the application