def get_all_vswitches(content):
vswitches = []<EOL>hosts = get_all_hosts(content)<EOL>for h in hosts:<EOL><INDENT>for s in h.config.network.vswitch:<EOL><INDENT>vswitches.append(s)<EOL><DEDENT><DEDENT>return vswitches<EOL>
Get all the virtual switches