Hi,
Virtually pysphere supports anything you can do from the vSphere Client, some operations might be difficult to implement though.
Generally, when I want to implement in pysphere a complex method that is hard to understand from the vsphere sdk documentation, I run the VIClient with logging enabled, perform the operation manually, and analyze the requests and responses traffic generated, so as to replicate that behavior from pysphere.
As the VIClient is constantly generating lot of traffic I remove the log files right before perfoming the manual operation I wish to analyze, and copy the generated log file to a separete file right after it finishes. That way I can narrow down the traffic to the part I'm insterested in.
Sadly I don't have a virtual center test environment where I can test vDS operations. But if it is ok with you I can use your help and implement that together. In that case I would need you to send me that traffic log.
This is how it is done:
1) Run the VMWare vSphere client with these paremeters:
VpxClient.exe -log +n
2) From the vSphere Client complete the wizard of the operation you wish to implement with pysphere (e.g. add/remove a host to a virtual distributed switch), but do not finish the wizard (i.e. don't click the last 'OK' or 'Finish' button)
3) Go to: C:\Users\[username]\AppData\Local\VMware\vpx and remove all the .log files
4) Finish the wizard from step 2
5) As soon as the operation finishes, Copy the new .log file created to a separate file.
If you wish, edit that log file and remove any confidencial information you don't want to reveal before sending it to me.
Thanks!
Sebastian.
2012/1/23 cisco SJ