Closed jonathanmier closed 7 years ago
Yes directly cal Destroy_Task
on the pg object.
Before doing that verify that the pg is not connected with any VM.
vms = pg_obj.summary.vm
if not vms:
destroy_task = pg_obj.Destroy_Task()
task.WaitForTask(destroy_task, si)
Thanks alot
I now you can add a DVPortgroup to a DVSwitch with CreateDVPortgroup_Task. Is there a way to delete that DVPortgroup?