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

Delete veth on ep leave in overlay driver #854

Merged
merged 1 commit into from
Jan 7, 2016
Merged

Delete veth on ep leave in overlay driver #854

merged 1 commit into from
Jan 7, 2016

Conversation

aboch
Copy link
Contributor

@aboch aboch commented Jan 6, 2016

Related to moby/moby#18814

Signed-off-by: Alessandro Boch aboch@docker.com

@mavenugo
Copy link
Contributor

mavenugo commented Jan 7, 2016

LGTM

@mavenugo
Copy link
Contributor

mavenugo commented Jan 7, 2016

fixes #846

@@ -134,5 +136,13 @@ func (d *driver) Leave(nid, eid string) error {

n.leaveSandbox()

link, err := netlink.LinkByName(ep.ifName)
if err != nil {
log.Warnf("Failed to retrieve interface link for interface removal on endpoint leave: %v", err)
Copy link
Contributor

Choose a reason for hiding this comment

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

You might have to return here if you can't find the interface. Otherwise it might panic in when you call LinkDel with a nil link.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep... Thanks

Signed-off-by: Alessandro Boch <aboch@docker.com>
@mrjana
Copy link
Contributor

mrjana commented Jan 7, 2016

LGTM

mrjana added a commit that referenced this pull request Jan 7, 2016
Delete veth on ep leave in overlay driver
@mrjana mrjana merged commit c88b755 into moby:master Jan 7, 2016
@aboch aboch deleted the ovlay branch January 8, 2016 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants