(table, chains, ipv6=False)
Delete multiple chains of a table
Delete multiple chains of a table
Delete multiple chains of a table
def batch_delete_chains(table, chains, ipv6=False):
    """ Delete multiple chains of a table """
    iptc_table = _batch_begin_table(table, ipv6)
    for chain in chains:
        if iptc_table.is_chain(chain):
            iptc_chain = Chain(iptc_table, chain)
            iptc_chain.flush()
            iptc_table.delete_chain(chain)
    _batch_end_table(table, ipv6)
def batch_delete_chains ( table , chains , ipv6 = False ) : iptc_table = _batch_begin_table ( table , ipv6 ) for chain in chains : if iptc_table . is_chain ( chain ) : iptc_chain = Chain ( iptc_table , chain ) iptc_chain . flush ( ) iptc_table . delete_chain ( chain ) _batch_end_table ( table , ipv6 )