custom fields in device types are not inherited #10887

Closed
opened 2025-12-29 21:37:16 +01:00 by adam · 2 comments
Owner

Originally created by @the-seppel on GitHub (Mar 13, 2025).

NetBox version

v4.2.5

Feature type

Data model extension

Proposed functionality

the custom field should be filled with inherited data.

Use case

create a custom field for a device type
create a new device type with data inside the custom field (e.g. a product number)
create a device from the device type
there is no data inside the custom field of the new device

Expected Behavior

pre-defined fields with data in a template should be inherited for devices.
e.g. a product number.

Observed Behavior

the custom field is empty.

Database changes

.

External dependencies

.

Originally created by @the-seppel on GitHub (Mar 13, 2025). ### NetBox version v4.2.5 ### Feature type Data model extension ### Proposed functionality the custom field should be filled with inherited data. ### Use case create a custom field for a device type create a new device type with data inside the custom field (e.g. a product number) create a device from the device type there is no data inside the custom field of the new device Expected Behavior pre-defined fields with data in a template should be inherited for devices. e.g. a product number. Observed Behavior the custom field is empty. ### Database changes . ### External dependencies .
adam added the type: feature label 2025-12-29 21:37:16 +01:00
adam closed this issue 2025-12-29 21:37:17 +01:00
Author
Owner

@jeremystretch commented on GitHub (Mar 13, 2025):

It wouldn't make sense to replicate custom field values from a device type to its devices. This would only result in redundant data. Custom fields are intended for storing data unique to a specific object. Attributes which apply to all devices of a type should be defined only on the device type.

@jeremystretch commented on GitHub (Mar 13, 2025): It wouldn't make sense to replicate custom field values from a device type to its devices. This would only result in redundant data. Custom fields are intended for storing data unique to a specific object. Attributes which apply to all devices of a type should be defined only on the device type.
Author
Owner

@the-seppel commented on GitHub (Mar 13, 2025):

It wouldn't make sense to replicate custom field values from a device type to its devices. This would only result in redundant data. Custom fields are intended for storing data unique to a specific object. Attributes which apply to all devices of a type should be defined only on the device type.

Yes, that's clear. But I don't want to create shared custom fields twice. I only want to show this custom fields in the view of a device. There is no need to create new data. Just the view of the device should contain all information from the parent. (device type)

@the-seppel commented on GitHub (Mar 13, 2025): > It wouldn't make sense to replicate custom field values from a device type to its devices. This would only result in redundant data. Custom fields are intended for storing data unique to a specific object. Attributes which apply to all devices of a type should be defined only on the device type. Yes, that's clear. But I don't want to create shared custom fields twice. I only want to show this custom fields in the view of a device. There is no need to create new data. Just the view of the device should contain all information from the parent. (device type)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10887