Skip to content

Add ability to list rules in a filtered manner #538

Merged
aboch merged 1 commit intovishvananda:masterfrom
christarazi:add-rule-list-filtered
Jun 3, 2020
Merged

Add ability to list rules in a filtered manner #538
aboch merged 1 commit intovishvananda:masterfrom
christarazi:add-rule-list-filtered

Conversation

@christarazi
Copy link
Copy Markdown
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 <tarazichris@gmail.com>
func runRuleListFiltered(t *testing.T, family int, srcNet, dstNet *net.IPNet) {
defaultRules, _ := RuleList(family)

tests := []struct {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

👍

@aboch
Copy link
Copy Markdown
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