Console speed for device types #4834

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

Originally created by @Omripresent on GitHub (Apr 27, 2021).

NetBox version

2.11.1

Feature type

Change to existing functionality

Proposed functionality

Add the speed field when creating or editing a console port and console server port under a device template.

Use case

All devices come with default console port speeds that vary between vendors and models, it would make sense to add the speed field so any created device from a given type would have the default speed already set,

Database changes

No response

External dependencies

No response

Originally created by @Omripresent on GitHub (Apr 27, 2021). ### NetBox version 2.11.1 ### Feature type Change to existing functionality ### Proposed functionality Add the `speed` field when creating or editing a `console port` and `console server port` under a device template. ### Use case All devices come with default console port speeds that vary between vendors and models, it would make sense to add the speed field so any created device from a given type would have the default speed already set, ### Database changes _No response_ ### External dependencies _No response_
adam added the type: feature label 2025-12-29 19:21:04 +01:00
adam closed this issue 2025-12-29 19:21:04 +01:00
Author
Owner

@jeremystretch commented on GitHub (Apr 27, 2021):

IIRC this was discussed under #5375 and we opted not to add the field to device types because it's purely a configuration item. It can have a default value, yes, but that's defined by the software rather than the hardware type.

@jeremystretch commented on GitHub (Apr 27, 2021): IIRC this was discussed under #5375 and we opted not to add the field to device types because it's purely a configuration item. It can have a default value, yes, but that's defined by the software rather than the hardware type.
Author
Owner

@Omripresent commented on GitHub (Apr 27, 2021):

That makes sense, personally I haven't encountered any case where the same HW across different software versions comes with different default speeds.

Yes most devices can have the console speed changed later on but there should be some way to know what default speed a given device type or platform (or the combination of the two?) is without the need of keeping this info in an external database and manually update on the creation of a new device.

This can be done with a webhook to an external backend on new device creation but it seems like an over complication of something simple.

@Omripresent commented on GitHub (Apr 27, 2021): That makes sense, personally I haven't encountered any case where the same HW across different software versions comes with different default speeds. Yes most devices can have the console speed changed later on but there should be some way to know what default speed a given device type or platform (or the combination of the two?) is without the need of keeping this info in an external database and manually update on the creation of a new device. This can be done with a webhook to an external backend on new device creation but it seems like an over complication of something simple.
Author
Owner

@jeremystretch commented on GitHub (Apr 27, 2021):

It's a valid use case for sure, but device types aren't the right solution. There are plenty of places you might want to convey a default value that's not tied to the hardware: interface encapsulations, interface descriptions (#6261), assigned VLANs, tags, etc. We don't want to set a precedent of using the device type for this purpose as that approach would fall over pretty quickly.

I'd be happy to entertain a detailed proposal in support of default values for certain attributes, but it would need to be raised as a separate feature request.

This can be done with a webhook to an external backend on new device creation but it seems like an over complication of something simple.

A custom script might suit your needs.

@jeremystretch commented on GitHub (Apr 27, 2021): It's a valid use case for sure, but device types aren't the right solution. There are plenty of places you might want to convey a default value that's not tied to the hardware: interface encapsulations, interface descriptions (#6261), assigned VLANs, tags, etc. We don't want to set a precedent of using the device type for this purpose as that approach would fall over pretty quickly. I'd be happy to entertain a detailed proposal in support of default values for certain attributes, but it would need to be raised as a separate feature request. > This can be done with a webhook to an external backend on new device creation but it seems like an over complication of something simple. A [custom script](https://netbox.readthedocs.io/en/stable/additional-features/custom-scripts/) might suit your needs.
Author
Owner

@Omripresent commented on GitHub (Apr 27, 2021):

Understood, thank you for the input.

I'll look into those other options and raise a new request if non pan out.

@Omripresent commented on GitHub (Apr 27, 2021): Understood, thank you for the input. I'll look into those other options and raise a new request if non pan out.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4834