Add new protocol type on Application service template #11583

Open
opened 2025-12-29 21:47:09 +01:00 by adam · 5 comments
Owner

Originally created by @m0rp30 on GitHub (Sep 6, 2025).

NetBox version

v.4.4.0-3.4.0

Feature type

Change to existing functionality

Proposed functionality

Considering that many services use both TCP and UDP protocols, it would be useful to have an option such as “TCP/UDP.” Even more interesting would be the ability to add the desired protocol type so that it can be customized as desired without having to create new issues.

Use case

In a service like DNS the protocols as both TCP and UDP for the same port 53

Database changes

No response

External dependencies

No response

Originally created by @m0rp30 on GitHub (Sep 6, 2025). ### NetBox version v.4.4.0-3.4.0 ### Feature type Change to existing functionality ### Proposed functionality Considering that many services use both TCP and UDP protocols, it would be useful to have an option such as “TCP/UDP.” Even more interesting would be the ability to add the desired protocol type so that it can be customized as desired without having to create new issues. ### Use case In a service like DNS the protocols as both TCP and UDP for the same port 53 ### Database changes _No response_ ### External dependencies _No response_
Author
Owner

@jnovinger commented on GitHub (Sep 9, 2025):

Related (if not duplicate) issues:

@jnovinger commented on GitHub (Sep 9, 2025): Related (if not duplicate) issues: - #17395 - #11888 - #16841 - #17196
Author
Owner

@jeremystretch commented on GitHub (Sep 11, 2025):

Rather than adding a new combined "TCP/UDP" option, it would probably be more robust to convert the field to a multi-choice field, allowing the user to select TCP and/or UDP (and potentially other protocols).

@jeremystretch commented on GitHub (Sep 11, 2025): Rather than adding a new combined "TCP/UDP" option, it would probably be more robust to convert the field to a multi-choice field, allowing the user to select TCP and/or UDP (and potentially other protocols).
Author
Owner

@jeremystretch commented on GitHub (Sep 11, 2025):

Talked about this more with the other maintainers. To provide even more flexibility, we could merge the protocol and ports fields into a single ArrayField denoting individual items as protocol & port combinations. For example: tcp/80, tcp/443, udp/999.

This will require a bit more work on the frontend, but will allow users to clearly define the protocols and ports in use. It will also enable more efficient filtering for services.

@jeremystretch commented on GitHub (Sep 11, 2025): Talked about this more with the other maintainers. To provide even more flexibility, we could merge the `protocol` and `ports` fields into a single ArrayField denoting individual items as protocol & port combinations. For example: `tcp/80, tcp/443, udp/999`. This will require a bit more work on the frontend, but will allow users to clearly define the protocols and ports in use. It will also enable more efficient filtering for services.
Author
Owner

@m0rp30 commented on GitHub (Sep 12, 2025):

It's an excellent idea in that the concept of protocol and port are linked.

@m0rp30 commented on GitHub (Sep 12, 2025): It's an excellent idea in that the concept of protocol and port are linked.
Author
Owner

@ghost commented on GitHub (Sep 19, 2025):

does this mean we'll also get the ability to assign multiple port/protocol combinations to a single service?

@ghost commented on GitHub (Sep 19, 2025): does this mean we'll also get the ability to assign multiple port/protocol combinations to a single service?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11583