def METHOD_NAME (self, local_pcap_path):
    """
    Adds a .pcap file with recorded traffic to the yaml object by linking the file with 'cap-info' template key fields.
    :parameters:  
        local_pcap_path : str
            a path (on client side) for the pcap file to be added.
    :return: 
        + The index of the inserted item (as int) if item added successfully
        + -1 if pcap file already exists in 'cap_info'.
    """
    new_pcap = dict(CTRexYaml.PCAP_TEMPLATE)
    new_pcap['name'] = self.trex_files_path + os.path.basename(local_pcap_path)
    if self.get_pcap_idx(new_pcap['name']) != -1:
        # pcap already exists in 'cap_info'
        return -1
    else:
        self.yaml_obj[0]['cap_info'].append(new_pcap)
        if self.empty_cap:
            self.empty_cap = False
        self.file_list.append(local_pcap_path)
        return ( len(self.yaml_obj[0]['cap_info']) - 1)