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

Set a default policy for iptables rules #294

Merged
merged 1 commit into from
Aug 17, 2017

Conversation

dspicuzzbbn
Copy link
Contributor

@dhalperi dhalperi self-requested a review August 9, 2017 00:21
@@ -19,7 +19,7 @@

private String _name;

private ChainPolicy _policy;
Copy link
Member

Choose a reason for hiding this comment

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

For consistency, can you please move this to the constructor, where _name and _rules are initialized?

Copy link
Member

@dhalperi dhalperi left a comment

Choose a reason for hiding this comment

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

Looks great! Extremely minor suggestions.

@@ -19,7 +19,7 @@

private String _name;

private ChainPolicy _policy;
private ChainPolicy _policy = ChainPolicy.ACCEPT;

private List<IptablesRule> _rules;

Copy link
Member

Choose a reason for hiding this comment

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

to test this, can you just delete the ACCEPT line from the existing testrig? Maybe just delete this line:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dhalperi deleting that line does not cause a test failure

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Never mind, I was only running the maven tests, I see now that travis does a bit more.

@virtuald
Copy link
Contributor

I'll try to get to the changes this week.

@dhalperi dhalperi merged commit 1bd5f09 into batfish:master Aug 17, 2017
@dhalperi
Copy link
Member

Thanks @virtuald !

dhalperi added a commit that referenced this pull request Aug 18, 2017
This reverts commit 1bd5f09, reversing
changes made to c4332a9.
@dspicuzzbbn dspicuzzbbn deleted the iptables-default branch September 22, 2017 19:41
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.

None yet

3 participants