[lxc-devel] [lxc/lxc] 2af6bd: lxc: manually move NICs back to host after contain...
GitHub
noreply at github.com
Fri Mar 7 19:28:53 UTC 2014
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: 2af6bd1bdcc4976517cbd3e73539cf887009aa0d
https://github.com/lxc/lxc/commit/2af6bd1bdcc4976517cbd3e73539cf887009aa0d
Author: Serge Hallyn <serge.hallyn at ubuntu.com>
Date: 2014-03-07 (Fri, 07 Mar 2014)
Changed paths:
M src/lxc/conf.c
M src/lxc/conf.h
M src/lxc/start.c
Log Message:
-----------
lxc: manually move NICs back to host after container stops
This prevents things like bridges from being destroyed by the kernel.
My hope is that just doing this will be enough to also ensure that
the device will be available to be renamed immediately, so that
we don't need to do a retry loop.
Tested with a dummy device. renaming dummy0 to dummy5 in container,
then shutting down container, returns dummy0 to the host.
Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>
More information about the lxc-devel
mailing list