]> git.ipfire.org Git - thirdparty/lxc.git/commit
Tear down network devices during container halt
authorMajor Hayden <major@mhtx.net>
Wed, 2 Sep 2015 21:21:11 +0000 (16:21 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 21 Sep 2015 19:52:50 +0000 (15:52 -0400)
commit1f9ddb78a4e2a60f05161a32b6bd538ff188e191
treebce58c465eb81479570f1e3b6be91945a5612a69
parent3eafa2f7457bd3148849b1cf3d4b80da98b9b833
Tear down network devices during container halt

On very busy systems, some virtual network devices won't be destroyed after a
container halts.  This patch uses the lxc_delete_network() method to ensure
that network devices attached to the container are destroyed when the
container halts.

Without the patch, some virtual network devices are left over on the system
and must be removed with `ip link del <device>`.  This caused containers
with lxc.network.veth.pair to not be able to start.  For containers using
randomly generated virtual network device names, the old devices will hang
around on the bridge with their original MAC address.

Signed-off-by: Major Hayden <major@mhtx.net>
src/lxc/start.c