code: def get(method, hmc, uri, uri_parms, logon_required):
          
          cpc_oid = uri_parms[0]
          query_str = uri_parms[1]
          try:
              cpc = hmc.cpcs.lookup_by_oid(cpc_oid)
          except KeyError:
              raise InvalidResourceError(method, uri)
          result_vswitches = []
          if cpc.dpm_enabled:
              filter_args = parse_query_parms(method, uri, query_str)
              for vswitch in cpc.virtual_switches.list(filter_args):
                  result_vswitch = {}
                  for prop in vswitch.properties:
                      if prop in ('object-uri', 'name', 'type'):
                          result_vswitch[prop] = vswitch.properties[prop]
                  result_vswitches.append(result_vswitch)
          return {'virtual-switches': result_vswitches}
docs: Operation: List Virtual Switches of a CPC (empty result if not in
          DPM mode).