{"action":"created","issue":{"url":"https://api.github.com/repos/vmware/pyvmomi/issues/404","repository_url":"https://api.github.com/repos/vmware/pyvmomi","labels_url":"https://api.github.com/repos/vmware/pyvmomi/issues/404/labels{/name}","comments_url":"https://api.github.com/repos/vmware/pyvmomi/issues/404/comments","events_url":"https://api.github.com/repos/vmware/pyvmomi/issues/404/events","html_url":"https://github.com/vmware/pyvmomi/issues/404","id":157526728,"number":404,"title":"[Question]: How to distinguish distributed port group from uplink port group?","user":{"login":"yanzhifa","id":5879854,"avatar_url":"https://avatars.githubusercontent.com/u/5879854?v=3","gravatar_id":"","url":"https://api.github.com/users/yanzhifa","html_url":"https://github.com/yanzhifa","followers_url":"https://api.github.com/users/yanzhifa/followers","following_url":"https://api.github.com/users/yanzhifa/following{/other_user}","gists_url":"https://api.github.com/users/yanzhifa/gists{/gist_id}","starred_url":"https://api.github.com/users/yanzhifa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanzhifa/subscriptions","organizations_url":"https://api.github.com/users/yanzhifa/orgs","repos_url":"https://api.github.com/users/yanzhifa/repos","events_url":"https://api.github.com/users/yanzhifa/events{/privacy}","received_events_url":"https://api.github.com/users/yanzhifa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-30T15:54:29Z","updated_at":"2016-05-31T09:29:25Z","closed_at":null,"body":"I get DistributedVirtualPortgroup by viewManager.CreateContainerView(), the view contains uplink port group and distributed port group, is there a easy way to find out distributed port groups from the view?"},"comment":{"url":"https://api.github.com/repos/vmware/pyvmomi/issues/comments/222637900","html_url":"https://github.com/vmware/pyvmomi/issues/404#issuecomment-222637900","issue_url":"https://api.github.com/repos/vmware/pyvmomi/issues/404","id":222637900,"user":{"login":"yanzhifa","id":5879854,"avatar_url":"https://avatars.githubusercontent.com/u/5879854?v=3","gravatar_id":"","url":"https://api.github.com/users/yanzhifa","html_url":"https://github.com/yanzhifa","followers_url":"https://api.github.com/users/yanzhifa/followers","following_url":"https://api.github.com/users/yanzhifa/following{/other_user}","gists_url":"https://api.github.com/users/yanzhifa/gists{/gist_id}","starred_url":"https://api.github.com/users/yanzhifa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanzhifa/subscriptions","organizations_url":"https://api.github.com/users/yanzhifa/orgs","repos_url":"https://api.github.com/users/yanzhifa/repos","events_url":"https://api.github.com/users/yanzhifa/events{/privacy}","received_events_url":"https://api.github.com/users/yanzhifa/received_events","type":"User","site_admin":false},"created_at":"2016-05-31T09:29:25Z","updated_at":"2016-05-31T09:29:25Z","body":"Thanks @rreubenur .\r\n I have an question again. I want to config distribute pg name and write a demo, the core code as below\r\n     `for portgroup in cluster.network:\r\n            if portgroup_morid == portgroup._moId:\r\n                continue\r\n            config_spec = vim.dvs.DistributedVirtualPortgroup.ConfigSpec()\r\n            config_spec.name = portgroup.name +'='\r\n            portgroup.ReconfigureDVPortgroup(config_spec)`\r\nbut at the last line `portgroup.ReconfigureDVPortgroup(config_spec)` , it raise an error `AttributeError: 'vim.dvs.DistributedVirtualPortgroup' object has no attribute 'ReconfigureDVPortgroup'`, can you give me some suggestions?"}}
{"actor":{"display_login":"yanzhifa"}}