Custom field support for device components #4322

Closed
opened 2025-12-29 18:34:44 +01:00 by adam · 2 comments
Owner

Originally created by @mngan on GitHub (Dec 2, 2020).

Originally assigned to: @jeremystretch on GitHub.

Environment

  • Python version: 3.8.5
  • NetBox version: 2.9.9

Proposed Functionality

Add support for custom fields for Interfaces

Use Case

I would like to record ESI's for LAG bundles and also external id's to link to port objects in our existing DCIM.

Database Changes

Adding CustomFieldModel to the Interface/BaseInterface object hierarchy will result in schema changes, and possibly require refactoring if performance is an issue.

External Dependencies

None

Originally created by @mngan on GitHub (Dec 2, 2020). Originally assigned to: @jeremystretch on GitHub. <!-- NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED. This form is only for proposing specific new features or enhancements. If you have a general idea or question, please post to our mailing list instead of opening an issue: https://groups.google.com/g/netbox-discuss NOTE: Due to an excessive backlog of feature requests, we are not currently accepting any proposals which significantly extend NetBox's feature scope. Please describe the environment in which you are running NetBox. Be sure that you are running an unmodified instance of the latest stable release before submitting a bug report. --> ### Environment * Python version: 3.8.5 * NetBox version: 2.9.9 <!-- Describe in detail the new functionality you are proposing. Include any specific changes to work flows, data models, or the user interface. --> ### Proposed Functionality Add support for custom fields for Interfaces <!-- Convey an example use case for your proposed feature. Write from the perspective of a NetBox user who would benefit from the proposed functionality and describe how. ---> ### Use Case I would like to record ESI's for LAG bundles and also external id's to link to `port` objects in our existing DCIM. <!-- Note any changes to the database schema necessary to support the new feature. For example, does the proposal require adding a new model or field? (Not all new features require database changes.) ---> ### Database Changes Adding CustomFieldModel to the Interface/BaseInterface object hierarchy will result in schema changes, and possibly require refactoring if performance is an issue. <!-- List any new dependencies on external libraries or services that this new feature would introduce. For example, does the proposal require the installation of a new Python package? (Not all new features introduce new dependencies.) --> ### External Dependencies None
adam added the status: acceptedtype: feature labels 2025-12-29 18:34:44 +01:00
adam closed this issue 2025-12-29 18:34:44 +01:00
Author
Owner

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

I've tweaked the scope of this to include all device components.

@jeremystretch commented on GitHub (Dec 2, 2020): I've tweaked the scope of this to include all device components.
Author
Owner

@candlerb commented on GitHub (Dec 3, 2020):

Link to #1254 #2281 #2510 #2789 #3083

@candlerb commented on GitHub (Dec 3, 2020): Link to #1254 #2281 #2510 #2789 #3083
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4322