Unverified Commit 36fb1e07 by Blair Steven Committed by Christian Brauner

Restore interfaces to the correct namespace on error

If the container unexpectedly exists we may need to restore physical interfaces back into the main namespace in a tidy way. Signed-off-by: 's avatarBlair Steven <blair.steven@alliedtelesis.co.nz>
parent d2938916
......@@ -2069,6 +2069,7 @@ out_detach_blockdev:
out_delete_network:
lxc_abort(handler);
lxc_restore_phys_nics_to_netns(handler);
lxc_delete_network(handler);
detach_block_device(handler->conf);
lxc_end(handler);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment