Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration of calm-apps using esxi vms during PC-DR #75

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Updating folder data of vm
abhijeetkaurav1st committed Apr 4, 2023
commit 7aae9f69c462972522ad3b838f66339ca5ce960d
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@
from calm.cloud.vmware.vmware import VMware, get_virtual_disk_info, get_network_device_info
from calm.common.api_helpers.brownfield_helper import get_vcenter_vm
from helper import change_project, init_contexts, log, get_vm_source_dest_uuid_map, get_mh_vm
from calm.lib.model.tasks.vmware import VcenterVdiskInfo, VcenterVControllerInfo, VcenterNicInfo
from calm.lib.model.tasks.vmware import VcenterVdiskInfo, VcenterVControllerInfo, VcenterNicInfo, VcenterFolderInfo
from pyVmomi import vim

import calm.lib.model as model
@@ -241,7 +241,8 @@ def update_create_spec_object(create_spec, platform_data, vcenter_details):
key=pc.get('key', -1)) for pc in
platform_data["controllers"]]

create_spec.folder = platform_data["folder"]
# Move everything under existing path
create_spec.folder = VcenterFolderInfo(existing_path=platform_data["folder"], new_path="", delete_empty_folder=False)


def update_substrate(old_instance_id, new_instance_id, vcenter_details):