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

Added a method to dump flows matching a flow #127

Merged
merged 2 commits into from
Jan 30, 2024
Merged

Conversation

dpraveenraja
Copy link
Contributor

  1. Fixed a issue to match zeo ovscookie
  2. Added a method to dump flow using a flow filter

@dpraveenraja dpraveenraja force-pushed the Dumpflows branch 2 times, most recently from 3c20058 to fc97d88 Compare January 22, 2024 15:54
ovs/openflow.go Outdated Show resolved Hide resolved
ovs/openflow.go Outdated Show resolved Hide resolved
ovs/openflow.go Outdated Show resolved Hide resolved
ovs/openflow.go Outdated Show resolved Hide resolved
@@ -105,7 +105,7 @@ func (f *MatchFlow) MarshalText() ([]byte, error) {
b = append(b, ',')
}

if f.Cookie > 0 {
if f.Cookie > 0 || f.CookieMask > 0 {
Copy link
Contributor

Choose a reason for hiding this comment

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

What was the issue that you ran into that led to this change? Could you give a little more context? TIA!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cookie and CookieMask are uint64. So currently there is on way to match zero cookie or a zero cookie with a non-zero mask. So this check will enable use to check for zero cookie match. For example: cookie=0x0000000000000000/0xffffffffffffffff

 1. Fixed a issue to match zeo ovscookie
 2. Added a method to dump flow using a flow filter
ovs/openflow.go Outdated Show resolved Hide resolved
ecbaldwin
ecbaldwin previously approved these changes Jan 29, 2024
Copy link
Contributor

@ecbaldwin ecbaldwin left a comment

Choose a reason for hiding this comment

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

Please address @anitgandhi 's feedback also.

Co-authored-by: Anit Gandhi <[email protected]>
@dpraveenraja dpraveenraja merged commit c0f7d42 into master Jan 30, 2024
1 check passed
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.

3 participants