Searching for Networks

29 views
Skip to first unread message

Tim Lemm

unread,
Aug 1, 2013, 11:14:21 AM8/1/13
to psp...@googlegroups.com
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

Michael Rice

unread,
Aug 25, 2013, 12:31:17 PM8/25/13
to psp...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages