I have a script that checks dvswitch properties. Currently I exclude management dvSwitches by name. I am trying to figure out how to exclude management dvSwitches (no VM dvPortgroups) from my object via code. For example:
- dvswith1
- dvportgroup-mgmt - vmk0
- dvportgroup-vmotion - vmk1
- dvswitch2
- dvportgroup-vm
- dvportgroup-vm2
In this example only want it to return dvswitch2