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

Support match-sets in iptables module #29718

Merged
merged 1 commit into from Dec 16, 2015
Merged

Conversation

thusoy
Copy link
Contributor

@thusoy thusoy commented Dec 15, 2015

Based on work by @l13t in #29426.

Added tests and fixed incorrect appending of the built rule.

Closes #29423 .

@cachedout
Copy link
Contributor

Sweet! Let's see what the test run has to say and hopefully we can get this in today. Nice work here, @thusoy

@@ -220,6 +220,17 @@ def maybe_add_negation(arg):
rule.append('--name {0}'.format(kwargs['name']))
del kwargs['match']

if 'match-set' in kwargs:
if isinstance(kwargs['match-set'], basestring):
Copy link
Contributor

Choose a reason for hiding this comment

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

Please change this to if isinstance(kwargs['match-set'], six.string_types): and add from salt.ext import six at the top.

@cachedout cachedout added the pending-changes The pull request needs additional changes before it can be merged label Dec 15, 2015
Based on work by @l13t in saltstack#29426.

Added tests and fixed incorrect appending of the built rule.

Closes saltstack#29423.
@thusoy
Copy link
Contributor Author

thusoy commented Dec 16, 2015

@cachedout Sure, fixed.

cachedout pushed a commit that referenced this pull request Dec 16, 2015
Support match-sets in iptables module
@cachedout cachedout merged commit aab929d into saltstack:develop Dec 16, 2015
@cachedout
Copy link
Contributor

Great! Thank you @thusoy

@meggiebot meggiebot added the bugfix-bckport will be be back-ported to an older release branch by creating a PR against that branch label Feb 10, 2016
@meggiebot
Copy link

Need in 2015.8

@rallytime rallytime added ZZZ[Done]-back-ported-bf RETIRED The pull request has been back-ported to an older branch. and removed bugfix-bckport will be be back-ported to an older release branch by creating a PR against that branch labels Feb 12, 2016
cachedout pushed a commit that referenced this pull request Feb 12, 2016
@thusoy thusoy deleted the issue-29423 branch February 13, 2016 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-changes The pull request needs additional changes before it can be merged ZZZ[Done]-back-ported-bf RETIRED The pull request has been back-ported to an older branch.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

iptables and match-set with two parameters
4 participants