netbox icon indicating copy to clipboard operation
netbox copied to clipboard

Airflow inheritance when creating a device (not on save)

Open larsen0815 opened this issue 7 months ago • 3 comments

NetBox version

v4.3.1

Feature type

Change to existing functionality

Proposed functionality

The value for "airflow" should be fetched from a device type and used as the default value for the airflow of a new device to be created (as it already is), and also be shown before the new device is saved.

Use case

When a device type has set a value for "airflow", and a device of that type is instantiated, the value for "airflow" is still shown as "-------" and only gets the value (e.g. "passive") when the device is saved.

When you don't know that it works this way, you wonder why the form for creating a device doesn't show the value from the device type you created before. This led me to believe this to be buggy. Also, you cannot see what the value will be after saving, and only then might notice that in this case the airflow is different and needs to be changed.

Database changes

No response

External dependencies

No response

larsen0815 avatar May 19 '25 14:05 larsen0815

I don't think it's feasible to automatically populate the airflow form field, but we could add a note to the field's help text indicating that the value will be inherited from the device type if not explicitly set.

jeremystretch avatar May 22 '25 17:05 jeremystretch

Indeed the help text could just reflect the value of the device type and say "This is the value that will be set if left blank".

bctiemann avatar May 22 '25 17:05 bctiemann

Out of curiosity: Why wouldn't it be feasible?

larsen0815 avatar May 23 '25 08:05 larsen0815

Try looking at it from another perspective.

Why are we setting “airflow” as a value in the device type? If you still have to enter it manually when creating a device?

Another point, can the “airflow” of a device even change?

De-Backer avatar Aug 15 '25 08:08 De-Backer