(table, chains, ipv6=False, flush=True)
Add multiple chains to a table
Add multiple chains to a table
Add multiple chains to a table
def batch_add_chains(table, chains, ipv6=False, flush=True):
    """ Add multiple chains to 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)
        else:
            iptc_chain = iptc_table.create_chain(chain)
        if flush:
            iptc_chain.flush()
    _batch_end_table(table, ipv6)
def batch_add_chains ( table , chains , ipv6 = False , flush = True ) : iptc_table = _batch_begin_table ( table , ipv6 ) for chain in chains : if iptc_table . is_chain ( chain ) : iptc_chain = Chain ( iptc_table , chain ) else : iptc_chain = iptc_table . create_chain ( chain ) if flush : iptc_chain . flush ( ) _batch_end_table ( table , ipv6 )