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

Use primary interface to add iptables for connmark entry #305

Merged
merged 2 commits into from
Jan 31, 2019
Merged

Use primary interface to add iptables for connmark entry #305

merged 2 commits into from
Jan 31, 2019

Conversation

nak3
Copy link
Contributor

@nak3 nak3 commented Jan 30, 2019

Description of changes:

Currently iptables for CONNMARK entry always uses eth0, even though
AWS EC2 instance does not always use eth0.

This fix uses primary interface name which was discovered dynamically.

Please also refer to #196

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@nak3
Copy link
Contributor Author

nak3 commented Jan 30, 2019

Fixed unit test.

Currently iptables for CONNMARK entry always uses `eth0`, even though
AWS EC2 instance does not always use eth0.

This fix uses primary interface name which was discovered dynamically.
pkg/networkutils/network.go Show resolved Hide resolved
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