Get all the virtual switches

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