def element_href_use_filter(name, _filter):
    """ Get element href using filter

    Filter should be a valid entry point value, ie host, router, network,
    single_fw, etc

    :param name: name of element
    :param _filter: filter type, unknown filter will result in no matches
    :return: element href (if found), else None
    """
    if name and _filter:
        element = fetch_meta_by_name(name, filter_context=_filter)
        if element.json:
            return element.json.pop().get('href')
Get element href using filter

    Filter should be a valid entry point value, ie host, router, network,
    single_fw, etc

    :param name: name of element
    :param _filter: filter type, unknown filter will result in no matches
    :return: element href (if found), else None