(table, chain, ipv6=False, flush=False, raise_exc=True)
Delete a chain
Delete a chain
Delete a chain
def delete_chain(table, chain, ipv6=False, flush=False, raise_exc=True):
    """ Delete a chain """
    try:
        if flush:
            flush_chain(table, chain, ipv6, raise_exc)
        iptc_table = _iptc_gettable(table, ipv6)
        iptc_table.delete_chain(chain)
    except Exception as e:
        if raise_exc: raise
def delete_chain ( table , chain , ipv6 = False , flush = False , raise_exc = True ) : try : if flush : flush_chain ( table , chain , ipv6 , raise_exc ) iptc_table = _iptc_gettable ( table , ipv6 ) iptc_table . delete_chain ( chain ) except Exception as e : if raise_exc : raise