(table, chain, rule_d, ipv6=False, raise_exc=True)
Delete a rule from a chain
Delete a rule from a chain
Delete a rule from a chain
def delete_rule(table, chain, rule_d, ipv6=False, raise_exc=True):
    """ Delete a rule from a chain """
    try:
        iptc_chain = _iptc_getchain(table, chain, ipv6)
        iptc_rule  = encode_iptc_rule(rule_d, ipv6)
        iptc_chain.delete_rule(iptc_rule)
    except Exception as e:
        if raise_exc: raise
def delete_rule ( table , chain , rule_d , ipv6 = False , raise_exc = True ) : try : iptc_chain = _iptc_getchain ( table , chain , ipv6 ) iptc_rule = encode_iptc_rule ( rule_d , ipv6 ) iptc_chain . delete_rule ( iptc_rule ) except Exception as e : if raise_exc : raise