Commit abd953eb by Blair Steven

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 4c9ffb3e
......@@ -2144,6 +2144,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