code: def update_ports(self, ports, id_or_uri, timeout=-1):
          
          resources = merge_default_values(ports, {'type': 'port'})
  
          uri = self._client.build_uri(id_or_uri) + "/update-ports"
          return self._client.update(resources, uri, timeout)
docs: Updates the interconnect ports.
  
          Args:
              id_or_uri: Can be either the interconnect id or the interconnect uri.
              ports (list): Ports to update.
              timeout: Timeout in seconds. Wait for task completion by default. The timeout does not abort the operation
                  in OneView; it just stops waiting for its completion.
  
          Returns:
              dict: The interconnect.