Skip to content

Conversation

@do-msingh
Copy link
Contributor

Implement stats fetch using dump-flows to provide an option to get statistics for all matching flows in one shot.
Also, provide an option to report interface names instead of port numbers, if requested.
This was also requested in #128

…atistics

for all matching flows in one shot.
Also, provide an option to report interface names instead of port numbers,
if requested.
@do-msingh do-msingh force-pushed the msingh/dump-flow-stats branch from e1c0033 to b64fc3e Compare October 17, 2024 19:59
ovs/openflow.go Outdated
// DumpMatchingFlows retrieves statistics of all matching flows for the specified bridge.
// If a table has no active flows and has not been used for a lookup or matched
// by an incoming packet, it is filtered from the output.
func (o *OpenFlowService) DumpMatchingFlows(bridge string, flow *MatchFlow) ([]*Flow, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need DumpMatchingFlows? Does it provide any value that DumpFlowsWithFlowArgs doesn't already provide?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, no real purpose, let me clean that up.

@do-msingh do-msingh merged commit 19e7343 into master Oct 21, 2024
2 checks 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