(table, batch_rules, ipv6=False, raise_exc=True)
Delete  multiple rules from table with format (chain, rule_d)
Delete  multiple rules from table with format (chain, rule_d)
Delete multiple rules from table with format ( chain rule_d )
def batch_delete_rules(table, batch_rules, ipv6=False, raise_exc=True):
    """ Delete  multiple rules from table with format (chain, rule_d) """
    try:
        iptc_table = _batch_begin_table(table, ipv6)
        for (chain, rule_d) in batch_rules:
            iptc_chain = Chain(iptc_table, chain)
            iptc_rule  = encode_iptc_rule(rule_d, ipv6)
            iptc_chain.delete_rule(iptc_rule)
        _batch_end_table(table, ipv6)
    except Exception as e:
        if raise_exc: raise
def batch_delete_rules ( table , batch_rules , ipv6 = False , raise_exc = True ) : try : iptc_table = _batch_begin_table ( table , ipv6 ) for ( chain , rule_d ) in batch_rules : iptc_chain = Chain ( iptc_table , chain ) iptc_rule = encode_iptc_rule ( rule_d , ipv6 ) iptc_chain . delete_rule ( iptc_rule ) _batch_end_table ( table , ipv6 ) except Exception as e : if raise_exc : raise