Interface Templates should include custom fields attached to DCIM>Interface #7162

Closed
opened 2025-12-29 20:19:57 +01:00 by adam · 4 comments
Owner

Originally created by @dpotter-intoto on GitHub (Oct 26, 2022).

NetBox version

v3.3.5

Feature type

Change to existing functionality

Proposed functionality

Interface templates (which are created with Device Types) should allow the specification of values for custom fields that have been added to DCIM>Interface.

This will allow the device type to contain values for custom fields on interfaces as well as stock fields on interfaces.

Use case

Any user who has the need for a custom field on DCIM>Interface is also likely to desire a default value that may vary from interface to interface.

For example, a user creates a custom field requires_ptp for DCIM>Interface. This field specifies whether this interface requires PTP timing information from the network.

When I create a device, the values "true" or "false" should be automatically populated in this field for each interface, based on the default value kept inside the device type's interface template.

Currently, this is not possible, because interface templates only allow users to specify values for stock fields, not custom fields.

Database changes

unknown. Possibly a change to how interface templates are stored.

External dependencies

none

Originally created by @dpotter-intoto on GitHub (Oct 26, 2022). ### NetBox version v3.3.5 ### Feature type Change to existing functionality ### Proposed functionality **Interface templates** (which are created with **Device Types**) should allow the specification of values for custom fields that have been added to `DCIM>Interface`. This will allow the device type to contain values for custom fields on interfaces as well as stock fields on interfaces. ### Use case Any user who has the need for a custom field on DCIM>Interface is also likely to desire a default value that may vary from interface to interface. For example, a user creates a custom field `requires_ptp` for DCIM>Interface. This field specifies whether this interface requires PTP timing information from the network. When I create a device, the values "true" or "false" should be automatically populated in this field for each interface, based on the default value kept inside the device type's interface template. Currently, this is not possible, because interface templates only allow users to specify values for stock fields, not custom fields. ### Database changes unknown. Possibly a change to how interface templates are stored. ### External dependencies none
adam added the type: feature label 2025-12-29 20:19:57 +01:00
adam closed this issue 2025-12-29 20:19:57 +01:00
Author
Owner

@sleepinggenius2 commented on GitHub (Oct 26, 2022):

I had proposed this for all of the device component templates in #9243 as well, but it unfortunately did not gain a lot of traction then. I would still love to see this implemented, as my organization is facing similar issues to yours.

It would also be nice to have some more of the core fields implemented in templates as well, so you can do things like disable interfaces by default or set a default MTU, speed, duplex, or 802.1Q Mode.

@sleepinggenius2 commented on GitHub (Oct 26, 2022): I had proposed this for all of the device component templates in #9243 as well, but it unfortunately did not gain a lot of traction then. I would still love to see this implemented, as my organization is facing similar issues to yours. It would also be nice to have some more of the core fields implemented in templates as well, so you can do things like disable interfaces by default or set a default MTU, speed, duplex, or 802.1Q Mode.
Author
Owner

@kkthxbye-code commented on GitHub (Oct 27, 2022):

I'll close this as duplicate of #9243 as I think that is the best description of the feature. I have re-opened the issue to give it another chance as I think it's a neat idea if we can figure out a good implementation.

@kkthxbye-code commented on GitHub (Oct 27, 2022): I'll close this as duplicate of #9243 as I think that is the best description of the feature. I have re-opened the issue to give it another chance as I think it's a neat idea if we can figure out a good implementation.
Author
Owner

@sleepinggenius2 commented on GitHub (Oct 28, 2022):

@kkthxbye-code Can you please unlock #9243 for comments?

@sleepinggenius2 commented on GitHub (Oct 28, 2022): @kkthxbye-code Can you please unlock #9243 for comments?
Author
Owner

@kkthxbye-code commented on GitHub (Oct 28, 2022):

@sleepinggenius2 - Sorry my bad, missed that🤦

@kkthxbye-code commented on GitHub (Oct 28, 2022): @sleepinggenius2 - Sorry my bad, missed that🤦
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7162