'LB API does not return the ID for the newly created rules, so we have
to search the list to find the rule with a matching rule type and
address to return an object with the right identifier.it.  The API
enforces rule type and address uniqueness.'

def _find_matching_rule(self, rule_to_find, access_list):

    for r in access_list:
        if ((rule_to_find.rule_type == r.rule_type) and (rule_to_find.address == r.address)):
            return r
    return None
