Grouping tcp+udp services #4197

Closed
opened 2025-12-29 18:33:48 +01:00 by adam · 5 comments
Owner

Originally created by @Matze1224 on GitHub (Oct 17, 2020).

Environment

  • Python version: 3.7.3
  • NetBox version: 2.9.7

I have some services which both listen on TCP and UDP. There are DNS, mumble and some gameservers.

Proposed Functionality

Instead of creating the service twice for TCP and UDP, it would be better to select both (by marking both in the drop-down) or simply select "TCP+UDP" in the service creation UI. This would assume to store this information in a single entry.

Use Case

Easier creation instead of repeating the service creation a second time.

Database Changes

Maybe to allow storing TCP and UDP in the same database entry.

External Dependencies

n/a

Originally created by @Matze1224 on GitHub (Oct 17, 2020). ### Environment * Python version: 3.7.3 * NetBox version: 2.9.7 I have some services which both listen on TCP and UDP. There are DNS, mumble and some gameservers. ### Proposed Functionality Instead of creating the service twice for TCP and UDP, it would be better to select both (by marking both in the drop-down) or simply select "TCP+UDP" in the service creation UI. This would assume to store this information in a single entry. ### Use Case Easier creation instead of repeating the service creation a second time. ### Database Changes Maybe to allow storing TCP and UDP in the same database entry. ### External Dependencies n/a
adam closed this issue 2025-12-29 18:33:48 +01:00
Author
Owner

@jeremystretch commented on GitHub (Oct 20, 2020):

This would violate the strict meaning of the protocol field. As the service model is often employed for generating firewall rules and similar constructs, allowing this field to convey non-protocol values would introduce undue complexity for API consumers.

For example, if you have a script that generates a firewall policy from services populated in NetBox, you could no longer rely on the protocol field to convey a literal value. In the event it returned a value representing the combination of TCP and UDP, additional logic would be needed to replicate this into two rules (one for each protocol) each with its appropriate literal value.

@jeremystretch commented on GitHub (Oct 20, 2020): This would violate the strict meaning of the `protocol` field. As the service model is often employed for generating firewall rules and similar constructs, allowing this field to convey non-protocol values would introduce undue complexity for API consumers. For example, if you have a script that generates a firewall policy from services populated in NetBox, you could no longer rely on the protocol field to convey a literal value. In the event it returned a value representing the combination of TCP and UDP, additional logic would be needed to replicate this into two rules (one for each protocol) each with its appropriate literal value.
Author
Owner

@Matze1224 commented on GitHub (Oct 20, 2020):

And what's about just grouping them in the UI? So there are still two entries, but it's easier to configure.

@Matze1224 commented on GitHub (Oct 20, 2020): And what's about just grouping them in the UI? So there are still two entries, but it's easier to configure.
Author
Owner

@jeremystretch commented on GitHub (Oct 20, 2020):

Seems like it would be too much effort for very little value.

@jeremystretch commented on GitHub (Oct 20, 2020): Seems like it would be too much effort for very little value.
Author
Owner

@Matze1224 commented on GitHub (Oct 23, 2020):

Yes, I understand. My last idea would be to have presets which could create the required services, but I guess this is already covered by custom scripts. So I guess it's not a great pain to copy'n'paste it over (as I'm the first one thinking about it) - just some idea to optimize it a bit.

@Matze1224 commented on GitHub (Oct 23, 2020): Yes, I understand. My last idea would be to have presets which could create the required services, but I guess this is already covered by custom scripts. So I guess it's not a great pain to copy'n'paste it over (as I'm the first one thinking about it) - just some idea to optimize it a bit.
Author
Owner

@Matze1224 commented on GitHub (Nov 3, 2020):

Closing it because it doesn't look that something like this will be implemented.

@Matze1224 commented on GitHub (Nov 3, 2020): Closing it because it doesn't look that something like this will be implemented.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4197