CLOUDSTACK-5342: Fix for failure in adding network to VM