(table, chain, ipv6=False, raise_exc=True)
Return an iptc_chain of an updated table
Return an iptc_chain of an updated table
Return an iptc_chain of an updated table
def _iptc_getchain(table, chain, ipv6=False, raise_exc=True):
    """ Return an iptc_chain of an updated table """
    try:
        iptc_table = _iptc_gettable(table, ipv6)
        if not iptc_table.is_chain(chain):
            raise AttributeError('Table <{}> has no chain <{}>'.format(table, chain))
        return Chain(iptc_table, chain)
    except Exception as e:
        if raise_exc: raise
def _iptc_getchain ( table , chain , ipv6 = False , raise_exc = True ) : try : iptc_table = _iptc_gettable ( table , ipv6 ) if not iptc_table . is_chain ( chain ) : raise AttributeError ( 'Table <{}> has no chain <{}>' . format ( table , chain ) ) return Chain ( iptc_table , chain ) except Exception as e : if raise_exc : raise