def METHOD_NAME(self, conf):
    """
    Render config as dictionary structure and delete keys
      from spec for null values
    :param spec: The facts tree, generated from the argspec
    :param conf: The configuration
    :rtype: dictionary
    :returns: The generated config
    """
    config = {}
    location = {}
    civic_conf = "\n".join(filter(lambda x: ("civic-based" in x), conf))
    elin_conf = "\n".join(filter(lambda x: ("elin" in x), conf))
    coordinate_conf = "\n".join(
        filter(lambda x: ("coordinate-based" in x), conf)
    )
    disable = "\n".join(filter(lambda x: ("disable" in x), conf))
    coordinate_based_conf = self.parse_attribs(
        ["altitude", "datum", "longitude", "latitude"], coordinate_conf
    )
    elin_based_conf = self.parse_lldp_elin_based(elin_conf)
    civic_based_conf = self.parse_lldp_civic_based(civic_conf)
    if disable:
        config["enable"] = False
    if coordinate_conf:
        location["coordinate_based"] = coordinate_based_conf
        config["location"] = location
    elif civic_based_conf:
        location["civic_based"] = civic_based_conf
        config["location"] = location
    elif elin_conf:
        location["elin"] = elin_based_conf
        config["location"] = location
    return utils.remove_empties(config)