{"action":"opened","issue":{"url":"https://api.github.com/repos/vmware/pyvmomi-community-samples/issues/494","repository_url":"https://api.github.com/repos/vmware/pyvmomi-community-samples","labels_url":"https://api.github.com/repos/vmware/pyvmomi-community-samples/issues/494/labels{/name}","comments_url":"https://api.github.com/repos/vmware/pyvmomi-community-samples/issues/494/comments","events_url":"https://api.github.com/repos/vmware/pyvmomi-community-samples/issues/494/events","html_url":"https://github.com/vmware/pyvmomi-community-samples/issues/494","id":331648674,"node_id":"MDU6SXNzdWUzMzE2NDg2NzQ=","number":494,"title":"How to delete a DistributedVirtualPortgroup","user":{"login":"willnx","id":12264343,"node_id":"MDQ6VXNlcjEyMjY0MzQz","avatar_url":"https://avatars0.githubusercontent.com/u/12264343?v=4","gravatar_id":"","url":"https://api.github.com/users/willnx","html_url":"https://github.com/willnx","followers_url":"https://api.github.com/users/willnx/followers","following_url":"https://api.github.com/users/willnx/following{/other_user}","gists_url":"https://api.github.com/users/willnx/gists{/gist_id}","starred_url":"https://api.github.com/users/willnx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willnx/subscriptions","organizations_url":"https://api.github.com/users/willnx/orgs","repos_url":"https://api.github.com/users/willnx/repos","events_url":"https://api.github.com/users/willnx/events{/privacy}","received_events_url":"https://api.github.com/users/willnx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-12T15:50:05Z","updated_at":"2018-06-12T15:50:05Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nI can't seem to make this work. I've tried following the example [here](https://github.com/vmware/pyvmomi-community-samples/blob/master/samples/del_portgroup_from_vswitch.py), but it raises `vim.fault.NotFound`.\r\nI think it's because I'm trying to delete a DVPortgroup; does that make sense?\r\n\r\nI've also tried finding the object by name via `vim.Network`, then calling `DestroyNetwork` on that object, but the DVPortgroup still exists under the networking tab in vCenter. Any pointers would be greatly appreciated, thanks!\r\n\r\nPython: 3.5\r\npyVmomi: 6.7.0\r\nvCenter: 6.5.0 build-5973321"}}
{"actor":{"display_login":"willnx"}}