-
Notifications
You must be signed in to change notification settings - Fork 22
NETOBSERV-1890: read TCP flags as strings #632
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
Conversation
@jotak: This pull request references NETOBSERV-1890 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.18.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #632 +/- ##
==========================================
- Coverage 55.35% 50.28% -5.07%
==========================================
Files 193 37 -156
Lines 10098 3130 -6968
Branches 1218 0 -1218
==========================================
- Hits 5590 1574 -4016
+ Misses 4131 1392 -2739
+ Partials 377 164 -213
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Bytes, | ||
DSCP, | ||
TCPFlags: | ||
DSCP: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should rely on field types in config since these were introduced for doc.
WDYT ?
We can create a followup for that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm seeing some discrepancies with the frontend config, so not sure if that would break something or if that's fine.
Frontend config number fields not mentioned here:
- IcmpType
- IcmpCode
- FlowDirection (probably because it's an index)
- IfDirections (btw, weird to say it's a number since it's an array?)
- PktDropBytes
- PktDropPackets
- PktDropLatestFlags
- DnsFlags
In the other way around, there is "Port" defined here which isn't a formal field...
So maybe it's doable to use frontend config here but that sounds more a work for a PR of its own
web/src/api/ipfix.ts
Outdated
NetworkEvents?: string[]; | ||
/** Logical OR combination of unique TCP flags comprised in the flow, as per RFC-9293, with additional custom flags to represent the following per-packet combinations: SYN+ACK (0x100), FIN+ACK (0x200) and RST+ACK (0x400). */ | ||
Flags?: number; | ||
Flags?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A string array will be more consistent with other implementations (network events, interfaces directions etc)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done 9407e7d
/ok-to-test |
New image: It will expire after two weeks. To deploy this build, run from the operator repo, assuming the operator is running: USER=netobserv VERSION=e80e069 make set-plugin-image |
@jotak: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
/label qe-approved |
@jotak: This pull request references NETOBSERV-1890 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.19.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jotak The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Description
Dependencies
Checklist
If you are not familiar with our processes or don't know what to answer in the list below, let us know in a comment: the maintainers will take care of that.