@staticmethod
def _map_by_platform(device_mapping_table, platform_name):
    """
        Map available devices to required devices by platform
        :param device_mapping_table: available devices
        :param platform_name: platform
        :return: list of targets which matched the requirements
        """
    aux_device_mapping_table = []
    for item in device_mapping_table:
        if platform_name:
            if item['platform_name'] == platform_name:
                aux_device_mapping_table.append(item)
    return aux_device_mapping_table
