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

fix handling of builtin chains #271

Merged
merged 1 commit into from
Dec 20, 2013
Merged

fix handling of builtin chains #271

merged 1 commit into from
Dec 20, 2013

Conversation

phemmer
Copy link
Contributor

@phemmer phemmer commented Dec 18, 2013

MOAR PULL REQUESTS!!!

There were several issues with regards to the handling of builtin chains.

First there were a couple places where a check was being performed to determine whether the provider was trying to create/delete a built-in chain. This check was broken and would never match.

Then there was an issue where if the iptable_nat module wasn't loaded, the nat chains wouldn't exist, and so the provider would try to create them. I added an exemption for the built-in chains so that the provider thinks they're always there, even if the module hasn't been loaded. We leave it up to the kernel to automatically load the module if/when we try and use that table.

In theory this negates the need for the built-in chain check on def create, but I left it in anyway.

@kbarber-jenkins2
Copy link

Can one of the admins verify this patch?

@apenney
Copy link
Contributor

apenney commented Dec 18, 2013

Argh, looks like the specs are on fire after the recent rspec-puppet changes. I'll have to take a look and see if I can beat it into behaving before I merge anything. :D

apenney pushed a commit that referenced this pull request Dec 20, 2013
fix handling of builtin chains
@apenney apenney merged commit b50dbb3 into puppetlabs:master Dec 20, 2013
cegeka-jenkins pushed a commit to cegeka/puppet-firewall that referenced this pull request Oct 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants