Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Omit zero srcPort / dstPort in Traceflow requests from web client #361

Merged

Conversation

antoninbas
Copy link
Contributor

Starting with v1beta1 of the Traceflow API, it is invalid to explicitly set srcPort / dstPort to 0. 0 is not a valid port value in general, and the UI uses 0 for some special cases (e.g., to tell the server to use a random srcPort for a Traceflow request).

Starting with v1beta1 of the Traceflow API, it is invalid to explicitly
set srcPort / dstPort to 0. 0 is not a valid port value in general, and
the UI uses 0 for some special cases (e.g., to tell the server to use a
random srcPort for a Traceflow request).

Signed-off-by: Antonin Bas <[email protected]>
@antoninbas antoninbas merged commit f196bd4 into antrea-io:main May 10, 2024
11 checks passed
@antoninbas antoninbas deleted the web-client-dont-send-zero-ports branch May 10, 2024 04:04
antoninbas added a commit to antoninbas/antrea-ui that referenced this pull request May 10, 2024
…trea-io#361)

Starting with v1beta1 of the Traceflow API, it is invalid to explicitly
set srcPort / dstPort to 0. 0 is not a valid port value in general, and
the UI uses 0 for some special cases (e.g., to tell the server to use a
random srcPort for a Traceflow request).

Signed-off-by: Antonin Bas <[email protected]>
antoninbas added a commit that referenced this pull request May 10, 2024
Starting with v1beta1 of the Traceflow API, it is invalid to explicitly
set srcPort / dstPort to 0. 0 is not a valid port value in general, and
the UI uses 0 for some special cases (e.g., to tell the server to use a
random srcPort for a Traceflow request).

Signed-off-by: Antonin Bas <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant