(table, chain, rule_d, ipv6=False)
return iptc_rule in iptc_chain.rules
Return True if rule exists in chain False otherwise
Return True if rule exists in chain False otherwise
Return True if rule exists in chain False otherwise
def has_rule(table, chain, rule_d, ipv6=False):
    """ Return True if rule exists in chain False otherwise """
    iptc_chain = _iptc_getchain(table, chain, ipv6)
    iptc_rule  = encode_iptc_rule(rule_d, ipv6)
    return iptc_rule in iptc_chain.rules
def has_rule ( table , chain , rule_d , ipv6 = False ) : iptc_chain = _iptc_getchain ( table , chain , ipv6 ) iptc_rule = encode_iptc_rule ( rule_d , ipv6 ) return iptc_rule in iptc_chain . rules