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 ability to list rules in a filtered manner #538

Merged
merged 1 commit into from
Jun 3, 2020

Conversation

christarazi
Copy link
Contributor

This commit adds the ability to list rules in a filtered manner, similar to RouteListFiltered.

This was needed on the Cilium project and an implementation similar to this has been made in that codebase internally. This is an effort to upstream that functionality. Open to any feedback on the approach or in general :).

This commit adds the ability to list rules in a filtered manner, similar
to RouteListFiltered.

Signed-off-by: Chris Tarazi <[email protected]>
func runRuleListFiltered(t *testing.T, family int, srcNet, dstNet *net.IPNet) {
defaultRules, _ := RuleList(family)

tests := []struct {
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

@aboch
Copy link
Collaborator

aboch commented Jun 3, 2020

LGTM

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.

2 participants