]> git.proxmox.com Git - mirror_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)
committerMajor Hayden <major@mhtx.net>
Thu, 3 Sep 2015 13:32:19 +0000 (08:32 -0500)
commitce5782df8fa0fada0396ec69f5fe05745cb942be
tree7bfdc8ff199f99d4b679357aa2f33f64e96b3a94
parenta2b27d2f85262aae5dfb4cc0ee40dfb65614b59f
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