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

Add fields for Egress information support #308

Merged
merged 1 commit into from
Jun 7, 2023

Conversation

dreamtalen
Copy link
Contributor

@dreamtalen dreamtalen commented Jun 5, 2023

Add two new fields egressName and egressIP for the visibility of Egress information in flow records.

Changes in Antrea: antrea-io/antrea#5088

@codecov
Copy link

codecov bot commented Jun 5, 2023

Codecov Report

Merging #308 (18cd262) into main (0fec8c7) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #308      +/-   ##
==========================================
+ Coverage   73.52%   73.54%   +0.01%     
==========================================
  Files          18       18              
  Lines        2784     2786       +2     
==========================================
+ Hits         2047     2049       +2     
  Misses        572      572              
  Partials      165      165              
Flag Coverage Δ
integration-tests 51.31% <ø> (ø)
unit-tests 72.54% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/registry/registry_antrea.go 100.00% <100.00%> (ø)

Comment on lines 342 to 344
// Ignore records from the Egress node for Pod-to-External flows
// if the Egress node is not the same as the Source node.
if isRecordFromEgressNode(flowType, record) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why don't we skip sending it from the Agent instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Antonin bringing it up, I misunderstood the words from Srikar 'at Egress node' as 'from Egress node.' I agree skip sending it from the Agent is a better approach.

Add two new fields egressName and egressIP for the visibility of Egress
information in flow records.

Signed-off-by: Yongming Ding <[email protected]>
@dreamtalen dreamtalen changed the title Add Egress Policy Information Support Add Egress Information Fields Jun 7, 2023
@dreamtalen dreamtalen changed the title Add Egress Information Fields Add fields for Egress information support Jun 7, 2023
@dreamtalen dreamtalen merged commit d790ee9 into vmware:main Jun 7, 2023
dreamtalen added a commit to dreamtalen/go-ipfix that referenced this pull request Jun 7, 2023
Add two new fields egressName and egressIP for the visibility of Egress
information in flow records.

Signed-off-by: Yongming Ding <[email protected]>
dreamtalen added a commit that referenced this pull request Jun 7, 2023
Add two new fields egressName and egressIP for the visibility of Egress
information in flow records.

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

Successfully merging this pull request may close these issues.

4 participants