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

Allow declaring the same set in several tables #102

Merged
merged 1 commit into from
Jul 7, 2021

Conversation

nbarrientos
Copy link
Collaborator

@nbarrientos nbarrientos commented Jul 6, 2021

This changeset supercharges the table parameter of nftables::set to allow passing either a String for a single table (to maintain backwards compatibility) or an Array[String]. The second option allows hence to declare the same set in several tables in one go.

I'm adding as well an extra element to the "all rules" acceptance check to make sure that it's fine to use the new functionality to declare a single set in multiple tables.

Closes #100

@traylenator traylenator merged commit 853ba75 into voxpupuli:master Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nftables::set can only be assigned to 1 table
3 participants