code: 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 vswitchef 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
docs: Get all the virtual switches