(table, chain, ipv6=False, raise_exc=True)
return False
Return True if chain was added successfully to a table, raise Exception otherwise
Return True if chain was added successfully to a table, raise Exception otherwise
Return True if chain was added successfully to a table raise Exception otherwise
def add_chain(table, chain, ipv6=False, raise_exc=True):
    """ Return True if chain was added successfully to a table, raise Exception otherwise """
    try:
        iptc_table = _iptc_gettable(table, ipv6)
        iptc_table.create_chain(chain)
        return True
    except Exception as e:
        if raise_exc: raise
    return False
def add_chain ( table , chain , ipv6 = False , raise_exc = True ) : try : iptc_table = _iptc_gettable ( table , ipv6 ) iptc_table . create_chain ( chain ) return True except Exception as e : if raise_exc : raise return False