-
Notifications
You must be signed in to change notification settings - Fork 800
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
ptp: add ipv6 support #25
Conversation
squeed
commented
Jun 16, 2017
- Wait for addresses to leave tentative state before setting routes
- Enable forwarding correctly
- Set up masquerading according to the active protocol
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, should there be a testcase update for v6?
plugins/main/ptp/ptp.go
Outdated
@@ -84,6 +84,11 @@ func setupContainerVeth(netns ns.NetNS, ifName string, mtu int, pr *current.Resu | |||
return err | |||
} | |||
|
|||
// Wait for addresses to leave tentative state (for up to 10 seconds) | |||
if err := ip.SettleAddresses(ifName, 10); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we just make ConfigureIface() handle the settling? That might reduce code in the plugins a bit; we'd still need the Settle call for standalone IP assignment like bridge.go does though.
@dcbw updated. I added a stricter testcase that actually shells out to ping (don't hit me). Can you check that I got SettleAddresses right? |
* Wait for addresses to leave tentative state before setting routes * Enable forwarding correctly * Set up masquerading according to the active protocol
LGTM |
Upgrade to v0.8.5 tag