Hi There was hoping I could get some help with some issues I have been having.
I am fairly new to psphere so this my be ignorance on my part.
If I search for All virtual machines on a client
vms = VirtualMachine.all(client)
It returns all machines on that vSphere server.
However if I search for all Networks on that vSphere server
nets = Network.all(client)
Nothing is returned even though there are networks on the server.
I am able to locate them by Finding my Datacenter and then off the dc get the networks
dcs = Datacenter.all(client)
dc = dcs[0]
nets = dc.network
for net in nets:
print net.name
print str(net.summary)
That will return both my networks and my distributedvirtualportgroups and generic networks but it still doesnt return my DistributedVirtualSwitchs
Any thoughts or help on this?
Thanks