-
Notifications
You must be signed in to change notification settings - Fork 389
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
[Flow Aggregator] Remove originalExporterAddress and originalObservationDomainId #2361
Conversation
/test-all |
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.
LGTM
Codecov Report
@@ Coverage Diff @@
## main #2361 +/- ##
===========================================
+ Coverage 41.89% 59.78% +17.88%
===========================================
Files 145 283 +138
Lines 18072 22088 +4016
===========================================
+ Hits 7572 13206 +5634
+ Misses 9818 7474 -2344
- Partials 682 1408 +726
Flags with carried forward coverage won't be shown. Click here to find out more.
|
/test-all |
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.
One question, otherwise LGTM
if fa.templateIDv4Expv6, err = fa.createAndSendTemplate(false, true); err != nil { | ||
return err | ||
} | ||
if fa.templateIDv6Expv4, err = fa.createAndSendTemplate(true, false); err != nil { |
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 feel like even with 2 templates only, the helper function may still be a good idea?
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. Thanks!
/test-all |
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.
LGTM
@srikartati could you take another look at this? |
pkg/flowaggregator/flowaggregator.go
Outdated
// and original exporter IP could belong to different IP families. | ||
if fa.templateIDv4Expv4, err = fa.createAndSendTemplate(false, false); err != nil { | ||
// Currently, we send two templates for IPv4 and IPv6 regardless of the IP families supported by cluster | ||
fa.createAndSendTemplate(true) |
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.
why does this need to be called two times? is this an expected line?
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.
Thanks for noticing this. This should be removed.
This commit removes originalExporterIPv4Address, originalExporterIPv6Address and originalObservationDomainId from flow aggregator and related templates for these fields. It also bumps go-ipfix to v0.5.4. fixes antrea-io#2336 Signed-off-by: zyiou <[email protected]>
/test-all |
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.
LGTM
/test-ipv6-e2e |
e2e test failed at |
/test-ipv6-e2e |
This commit removes
originalExporterIPv4Address
,originalExporterIPv6Address
andoriginalObservationDomainId
from flow aggregator and related templates for these fields.It also bumps go-ipfix to v0.5.4.
fixes #2336